コード例 #1
0
 def __init__(self, host=None, port=None, **kwargs):
     self.host = "127.0.0.1"
     self._server_info = None
     BaseModule.__init__(self, **kwargs)
     if host is not None:
         self.host = host
     if port is not None:
         self.port = port
コード例 #2
0
ファイル: __init__.py プロジェクト: dbaxa/pysslscan
 def __init__(self, host=None, port=None, **kwargs):
     self.host = "127.0.0.1"
     self._server_info = None
     BaseModule.__init__(self, **kwargs)
     if host is not None:
         self.host = host
     if port is not None:
         self.port = port
コード例 #3
0
ファイル: __init__.py プロジェクト: obeleh/pysslscan
 def __init__(self, **kwargs):
     BaseModule.__init__(self, **kwargs)
コード例 #4
0
ファイル: __init__.py プロジェクト: sctf2020/pysslscan
    def __init__(self, **kwargs):
        BaseModule.__init__(self, **kwargs)
        self.build_dtls_client_hello_hooks = RecordHook()
        self.parse_dtls_server_records_hooks = RecordHook()
        self.build_tls_client_hello_hooks = RecordHook()
        self.parse_tls_server_records_hooks = RecordHook()

        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_cipher_suites, "cipher_suites")
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_compression, name="compression")
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_ec_point_formats,
            name="ec_point_formats")
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_elliptic_curves,
            name="elliptic_curves")
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_heartbeat, name="heartbeat")
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_session_ticket, "session_ticket")
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_signature_algorithms,
            name="signature_algorithms")
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_sni, name="sni")

        self.parse_dtls_server_records_hooks.connect(
            self._hook_parse_dtls_server_hello_certificate, name="certificate")
        self.parse_dtls_server_records_hooks.connect(
            self._hook_parse_dtls_server_hello_compression, name="compression")
        self.parse_dtls_server_records_hooks.connect(
            self._hook_parse_dtls_server_hello_point_formats,
            name="point_formats")

        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_cipher_suites, "cipher_suites")
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_compression, name="compression")
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_ec_point_formats,
            name="ec_point_formats")
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_elliptic_curves,
            name="elliptic_curves")
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_heartbeat, name="heartbeat")
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_session_ticket, "session_ticket")
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_signature_algorithms,
            name="signature_algorithms")
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_sni, name="sni")

        self.parse_tls_server_records_hooks.connect(
            self._hook_parse_tls_server_hello_certificate, name="certificate")
        self.parse_tls_server_records_hooks.connect(
            self._hook_parse_tls_server_hello_compression, name="compression")
        self.parse_tls_server_records_hooks.connect(
            self._hook_parse_tls_server_hello_point_formats,
            name="point_formats")
コード例 #5
0
ファイル: __init__.py プロジェクト: dbaxa/pysslscan
 def __init__(self, **kwargs):
     BaseModule.__init__(self, **kwargs)
     self._rules = {}
コード例 #6
0
 def __init__(self, **kwargs):
     BaseModule.__init__(self, **kwargs)
     self._rules = {}
コード例 #7
0
ファイル: __init__.py プロジェクト: DinoTools/pysslscan
    def __init__(self, **kwargs):
        BaseModule.__init__(self, **kwargs)
        self.build_dtls_client_hello_hooks = RecordHook()
        self.parse_dtls_server_records_hooks = RecordHook()
        self.build_tls_client_hello_hooks = RecordHook()
        self.parse_tls_server_records_hooks = RecordHook()

        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_cipher_suites,
            "cipher_suites"
        )
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_compression,
            name="compression"
        )
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_ec_point_formats,
            name="ec_point_formats"
        )
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_elliptic_curves,
            name="elliptic_curves"
        )
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_heartbeat,
            name="heartbeat"
        )
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_session_ticket,
            "session_ticket"
        )
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_signature_algorithms,
            name="signature_algorithms"
        )
        self.build_dtls_client_hello_hooks.connect(
            self._hook_dtls_client_hello_sni,
            name="sni"
        )

        self.parse_dtls_server_records_hooks.connect(
            self._hook_parse_dtls_server_hello_certificate,
            name="certificate"
        )
        self.parse_dtls_server_records_hooks.connect(
            self._hook_parse_dtls_server_hello_compression,
            name="compression"
        )
        self.parse_dtls_server_records_hooks.connect(
            self._hook_parse_dtls_server_hello_point_formats,
            name="point_formats"
        )

        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_cipher_suites,
            "cipher_suites"
        )
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_compression,
            name="compression"
        )
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_ec_point_formats,
            name="ec_point_formats"
        )
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_elliptic_curves,
            name="elliptic_curves"
        )
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_heartbeat,
            name="heartbeat"
        )
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_session_ticket,
            "session_ticket"
        )
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_signature_algorithms,
            name="signature_algorithms"
        )
        self.build_tls_client_hello_hooks.connect(
            self._hook_tls_client_hello_sni,
            name="sni"
        )

        self.parse_tls_server_records_hooks.connect(
            self._hook_parse_tls_server_hello_certificate,
            name="certificate"
        )
        self.parse_tls_server_records_hooks.connect(
            self._hook_parse_tls_server_hello_compression,
            name="compression"
        )
        self.parse_tls_server_records_hooks.connect(
            self._hook_parse_tls_server_hello_point_formats,
            name="point_formats"
        )
コード例 #8
0
ファイル: __init__.py プロジェクト: sctf2020/pysslscan
 def __init__(self, **kwargs):
     BaseModule.__init__(self, **kwargs)