544ab0de99b3d54c297c070c89817b9f17e5ce86,modules/Gyoi_Censys.py,Censys,search_censys,#Censys#,36

Before Change


            api = censys.certificates.CensysCertificates(api_id=self.api_id, api_secret=self.secret)
            fields = ["parsed.subject_dn", "parsed.fingerprint_sha256", "parsed.validity"]
            for cert in api.search("tags: trusted and parsed.names: {}".format(fqdn), fields=fields):
                self.utility.print_message(OK, "Certification info: {}".format(cert))

        self.utility.write_log(20, "[Out] Search Censys [{}].".format(self.file_name))

After Change


                    self.utility.print_message(WARNING, "Common Name {}: {}".format(idx+1, common_name))
                self.utility.print_message(WARNING, "Validity Start: {}".format(cert["parsed.validity.start"]))
                self.utility.print_message(WARNING, "Validity End  : {}".format(cert["parsed.validity.end"]))
                for idx, org_name in enumerate(cert["parsed.subject.organization"]):
                    self.utility.print_message(WARNING, "Organization {}: {}".format(idx+1, org_name))

        self.utility.write_log(20, "[Out] Search Censys [{}].".format(self.file_name))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: gyoisamurai/GyoiThon
Commit Name: 544ab0de99b3d54c297c070c89817b9f17e5ce86
Time: 2018-11-20
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_Censys.py
Class Name: Censys
Method Name: search_censys


Project Name: jazzband/django-debug-toolbar
Commit Name: 3013b5a6e4c682004207e944ebea172a39e52e8c
Time: 2012-12-11
Author: david@gasmark6.com
File Name: debug_toolbar/utils/__init__.py
Class Name:
Method Name: render_stacktrace


Project Name: stared/livelossplot
Commit Name: 9591ddce3d4b2b62f7780c9ee36e729f7676950d
Time: 2019-05-05
Author: pmigdal@gmail.com
File Name: livelossplot/core.py
Class Name:
Method Name: draw_plot