tlsfuzzer package
Library with tests and fuzzers for the TLS protocol.
Use objects in tlsfuzzer.messages to create objects that will be
sent to the other side of a SSL or TLS connection and
tlsfuzzer.expect to process
messages received from the other side. The tlsfuzzer.runner will
execute those prepared messages.
Objects that have direct effect on the state of encryption of the connection:
ExpectChangeCipherSpec,
ExpectServerHello,
ChangeCipherSpecGenerator,
ExpectFinished and
FinishedGenerator.
Subpackages
Submodules
- tlsfuzzer.analysis module
- tlsfuzzer.expect module
ExpectExpectAlertExpectApplicationDataExpectCertificateExpectCertificate._cmp_eq()ExpectCertificate._cmp_eq_list()ExpectCertificate._cmp_eq_or_in()ExpectCertificate._repr()ExpectCertificate.add_child()ExpectCertificate.get_all_siblings()ExpectCertificate.is_command()ExpectCertificate.is_expect()ExpectCertificate.is_generator()ExpectCertificate.is_match()ExpectCertificate.process()
ExpectCertificateRequestExpectCertificateRequest._cmp_eq()ExpectCertificateRequest._cmp_eq_list()ExpectCertificateRequest._cmp_eq_or_in()ExpectCertificateRequest._compare_extensions()ExpectCertificateRequest._get_autohandler()ExpectCertificateRequest._process_extensions()ExpectCertificateRequest._repr()ExpectCertificateRequest._sanity_check_cert_types()ExpectCertificateRequest.add_child()ExpectCertificateRequest.get_all_siblings()ExpectCertificateRequest.is_command()ExpectCertificateRequest.is_expect()ExpectCertificateRequest.is_generator()ExpectCertificateRequest.is_match()ExpectCertificateRequest.process()
ExpectCertificateStatusExpectCertificateStatus._cmp_eq()ExpectCertificateStatus._cmp_eq_list()ExpectCertificateStatus._cmp_eq_or_in()ExpectCertificateStatus._repr()ExpectCertificateStatus.add_child()ExpectCertificateStatus.get_all_siblings()ExpectCertificateStatus.is_command()ExpectCertificateStatus.is_expect()ExpectCertificateStatus.is_generator()ExpectCertificateStatus.is_match()ExpectCertificateStatus.process()
ExpectCertificateVerifyExpectCertificateVerify._cmp_eq()ExpectCertificateVerify._cmp_eq_list()ExpectCertificateVerify._cmp_eq_or_in()ExpectCertificateVerify._repr()ExpectCertificateVerify.add_child()ExpectCertificateVerify.get_all_siblings()ExpectCertificateVerify.is_command()ExpectCertificateVerify.is_expect()ExpectCertificateVerify.is_generator()ExpectCertificateVerify.is_match()ExpectCertificateVerify.process()
ExpectChangeCipherSpecExpectCloseExpectCompressedCertificateExpectCompressedCertificate._cmp_eq()ExpectCompressedCertificate._cmp_eq_list()ExpectCompressedCertificate._cmp_eq_or_in()ExpectCompressedCertificate._repr()ExpectCompressedCertificate.add_child()ExpectCompressedCertificate.get_all_siblings()ExpectCompressedCertificate.is_command()ExpectCompressedCertificate.is_expect()ExpectCompressedCertificate.is_generator()ExpectCompressedCertificate.is_match()ExpectCompressedCertificate.process()
ExpectEncryptedExtensionsExpectEncryptedExtensions._cmp_eq()ExpectEncryptedExtensions._cmp_eq_list()ExpectEncryptedExtensions._cmp_eq_or_in()ExpectEncryptedExtensions._compare_extensions()ExpectEncryptedExtensions._compare_extensions_in_ee()ExpectEncryptedExtensions._get_autohandler()ExpectEncryptedExtensions._process_extensions()ExpectEncryptedExtensions._repr()ExpectEncryptedExtensions.add_child()ExpectEncryptedExtensions.get_all_siblings()ExpectEncryptedExtensions.is_command()ExpectEncryptedExtensions.is_expect()ExpectEncryptedExtensions.is_generator()ExpectEncryptedExtensions.is_match()ExpectEncryptedExtensions.process()
ExpectFinishedExpectFinished._cmp_eq()ExpectFinished._cmp_eq_list()ExpectFinished._cmp_eq_or_in()ExpectFinished._repr()ExpectFinished.add_child()ExpectFinished.get_all_siblings()ExpectFinished.is_command()ExpectFinished.is_expect()ExpectFinished.is_generator()ExpectFinished.is_match()ExpectFinished.process()
ExpectHandshakeExpectHandshake._cmp_eq()ExpectHandshake._cmp_eq_list()ExpectHandshake._cmp_eq_or_in()ExpectHandshake._repr()ExpectHandshake.add_child()ExpectHandshake.get_all_siblings()ExpectHandshake.is_command()ExpectHandshake.is_expect()ExpectHandshake.is_generator()ExpectHandshake.is_match()ExpectHandshake.process()
ExpectHeartbeatExpectHeartbeat._cmp_eq()ExpectHeartbeat._cmp_eq_list()ExpectHeartbeat._cmp_eq_or_in()ExpectHeartbeat._repr()ExpectHeartbeat.add_child()ExpectHeartbeat.get_all_siblings()ExpectHeartbeat.is_command()ExpectHeartbeat.is_expect()ExpectHeartbeat.is_generator()ExpectHeartbeat.is_match()ExpectHeartbeat.process()
ExpectHelloRequestExpectHelloRequest._cmp_eq()ExpectHelloRequest._cmp_eq_list()ExpectHelloRequest._cmp_eq_or_in()ExpectHelloRequest._repr()ExpectHelloRequest.add_child()ExpectHelloRequest.get_all_siblings()ExpectHelloRequest.is_command()ExpectHelloRequest.is_expect()ExpectHelloRequest.is_generator()ExpectHelloRequest.is_match()ExpectHelloRequest.process()
ExpectHelloRetryRequestExpectHelloRetryRequest._check_against_hrr()ExpectHelloRetryRequest._check_downgrade_protection()ExpectHelloRetryRequest._cmp_eq()ExpectHelloRetryRequest._cmp_eq_list()ExpectHelloRetryRequest._cmp_eq_or_in()ExpectHelloRetryRequest._compare_extensions()ExpectHelloRetryRequest._extract_version()ExpectHelloRetryRequest._get_autohandler()ExpectHelloRetryRequest._process_extensions()ExpectHelloRetryRequest._repr()ExpectHelloRetryRequest._setup_tls13_handshake_keys()ExpectHelloRetryRequest.add_child()ExpectHelloRetryRequest.get_all_siblings()ExpectHelloRetryRequest.is_command()ExpectHelloRetryRequest.is_expect()ExpectHelloRetryRequest.is_generator()ExpectHelloRetryRequest.is_match()ExpectHelloRetryRequest.process()
ExpectKeyUpdateExpectKeyUpdate._cmp_eq()ExpectKeyUpdate._cmp_eq_list()ExpectKeyUpdate._cmp_eq_or_in()ExpectKeyUpdate._repr()ExpectKeyUpdate.add_child()ExpectKeyUpdate.get_all_siblings()ExpectKeyUpdate.is_command()ExpectKeyUpdate.is_expect()ExpectKeyUpdate.is_generator()ExpectKeyUpdate.is_match()ExpectKeyUpdate.process()
ExpectMessageExpectNewSessionTicketExpectNewSessionTicket._cmp_eq()ExpectNewSessionTicket._cmp_eq_list()ExpectNewSessionTicket._cmp_eq_or_in()ExpectNewSessionTicket._repr()ExpectNewSessionTicket.add_child()ExpectNewSessionTicket.get_all_siblings()ExpectNewSessionTicket.is_command()ExpectNewSessionTicket.is_expect()ExpectNewSessionTicket.is_generator()ExpectNewSessionTicket.is_match()ExpectNewSessionTicket.process()
ExpectNoMessageExpectSSL2AlertExpectSSL2Alert._cmp_eq()ExpectSSL2Alert._cmp_eq_list()ExpectSSL2Alert._cmp_eq_or_in()ExpectSSL2Alert._repr()ExpectSSL2Alert.add_child()ExpectSSL2Alert.get_all_siblings()ExpectSSL2Alert.is_command()ExpectSSL2Alert.is_expect()ExpectSSL2Alert.is_generator()ExpectSSL2Alert.is_match()ExpectSSL2Alert.process()
ExpectServerHelloExpectServerHello._check_against_hrr()ExpectServerHello._check_downgrade_protection()ExpectServerHello._cmp_eq()ExpectServerHello._cmp_eq_list()ExpectServerHello._cmp_eq_or_in()ExpectServerHello._compare_extensions()ExpectServerHello._extract_version()ExpectServerHello._get_autohandler()ExpectServerHello._process_extensions()ExpectServerHello._repr()ExpectServerHello._setup_tls13_handshake_keys()ExpectServerHello.add_child()ExpectServerHello.get_all_siblings()ExpectServerHello.is_command()ExpectServerHello.is_expect()ExpectServerHello.is_generator()ExpectServerHello.is_match()ExpectServerHello.process()
ExpectServerHello2ExpectServerHello2._cmp_eq()ExpectServerHello2._cmp_eq_list()ExpectServerHello2._cmp_eq_or_in()ExpectServerHello2._repr()ExpectServerHello2.add_child()ExpectServerHello2.get_all_siblings()ExpectServerHello2.is_command()ExpectServerHello2.is_expect()ExpectServerHello2.is_generator()ExpectServerHello2.is_match()ExpectServerHello2.process()
ExpectServerHelloDoneExpectServerHelloDone._cmp_eq()ExpectServerHelloDone._cmp_eq_list()ExpectServerHelloDone._cmp_eq_or_in()ExpectServerHelloDone._repr()ExpectServerHelloDone.add_child()ExpectServerHelloDone.get_all_siblings()ExpectServerHelloDone.is_command()ExpectServerHelloDone.is_expect()ExpectServerHelloDone.is_generator()ExpectServerHelloDone.is_match()ExpectServerHelloDone.process()
ExpectServerKeyExchangeExpectServerKeyExchange._checkParams()ExpectServerKeyExchange._cmp_eq()ExpectServerKeyExchange._cmp_eq_list()ExpectServerKeyExchange._cmp_eq_or_in()ExpectServerKeyExchange._repr()ExpectServerKeyExchange.add_child()ExpectServerKeyExchange.get_all_siblings()ExpectServerKeyExchange.is_command()ExpectServerKeyExchange.is_expect()ExpectServerKeyExchange.is_generator()ExpectServerKeyExchange.is_match()ExpectServerKeyExchange.process()
ExpectVerify_ExpectExtensionsMessage_ExpectExtensionsMessage._cmp_eq()_ExpectExtensionsMessage._cmp_eq_list()_ExpectExtensionsMessage._cmp_eq_or_in()_ExpectExtensionsMessage._compare_extensions()_ExpectExtensionsMessage._repr()_ExpectExtensionsMessage.add_child()_ExpectExtensionsMessage.get_all_siblings()_ExpectExtensionsMessage.is_command()_ExpectExtensionsMessage.is_expect()_ExpectExtensionsMessage.is_generator()_ExpectExtensionsMessage.is_match()_ExpectExtensionsMessage.process()
_srv_ext_handler_psk()_srv_ext_handler_record_limit()clnt_ext_handler_sig_algs()clnt_ext_handler_status_request()gen_srv_ext_handler_psk()gen_srv_ext_handler_record_limit()hrr_ext_handler_cookie()hrr_ext_handler_key_share()srv_ext_handler_alpn()srv_ext_handler_ec_point()srv_ext_handler_ems()srv_ext_handler_etm()srv_ext_handler_heartbeat()srv_ext_handler_key_share()srv_ext_handler_npn()srv_ext_handler_renego()srv_ext_handler_session_ticket()srv_ext_handler_sni()srv_ext_handler_status_request()srv_ext_handler_supp_groups()srv_ext_handler_supp_vers()
- tlsfuzzer.extract module
- tlsfuzzer.fuzzers module
- tlsfuzzer.handshake_helpers module
- tlsfuzzer.helpers module
AutoEmptyExtensionECDSA_SIG_ALLECDSA_SIG_TLS1_3_ALLEDDSA_SIG_ALLMLDSA_SIG_ALLRSA_PKCS1_ALLRSA_PSS_PSS_ALLRSA_PSS_RSAE_ALLRSA_SIG_ALLSIG_ALLclient_cert_types_to_ids()flexible_getattr()key_share_ext_gen()key_share_gen()psk_ext_gen()psk_ext_updater()psk_session_ext_gen()session_ticket_ext_gen()sig_algs_to_ids()uniqueness_check()
- tlsfuzzer.messages module
AlertGeneratorApplicationDataGeneratorApplicationDataGenerator._repr()ApplicationDataGenerator.add_child()ApplicationDataGenerator.generate()ApplicationDataGenerator.get_all_siblings()ApplicationDataGenerator.is_command()ApplicationDataGenerator.is_expect()ApplicationDataGenerator.is_generator()ApplicationDataGenerator.post_send()
CertificateGeneratorCertificateVerifyGeneratorCertificateVerifyGenerator._get_ecdsa_sig_parameters()CertificateVerifyGenerator._get_key_and_key_type()CertificateVerifyGenerator._get_rsa_sig_parameters()CertificateVerifyGenerator._make_signature()CertificateVerifyGenerator._normalise_dict()CertificateVerifyGenerator._normalise_subs_and_xors()CertificateVerifyGenerator._repr()CertificateVerifyGenerator._select_msg_alg()CertificateVerifyGenerator._sig_alg_for_certificate()CertificateVerifyGenerator._sig_alg_for_dsa_key()CertificateVerifyGenerator._sig_alg_for_ecdsa_key()CertificateVerifyGenerator._sig_alg_for_eddsa_key()CertificateVerifyGenerator._sig_alg_for_rsa_key()CertificateVerifyGenerator.add_child()CertificateVerifyGenerator.generate()CertificateVerifyGenerator.get_all_siblings()CertificateVerifyGenerator.is_command()CertificateVerifyGenerator.is_expect()CertificateVerifyGenerator.is_generator()CertificateVerifyGenerator.post_send()
ChangeCipherSpecGeneratorChangeCipherSpecGenerator._repr()ChangeCipherSpecGenerator.add_child()ChangeCipherSpecGenerator.generate()ChangeCipherSpecGenerator.get_all_siblings()ChangeCipherSpecGenerator.is_command()ChangeCipherSpecGenerator.is_expect()ChangeCipherSpecGenerator.is_generator()ChangeCipherSpecGenerator.post_send()
ClearContextClientHelloGeneratorClientHelloGenerator._generate_extensions()ClientHelloGenerator._handle_modifiers()ClientHelloGenerator._repr()ClientHelloGenerator.add_child()ClientHelloGenerator.generate()ClientHelloGenerator.get_all_siblings()ClientHelloGenerator.is_command()ClientHelloGenerator.is_expect()ClientHelloGenerator.is_generator()ClientHelloGenerator.post_send()
ClientKeyExchangeGeneratorClientKeyExchangeGenerator._encrypt_with_fuzzing()ClientKeyExchangeGenerator._repr()ClientKeyExchangeGenerator.add_child()ClientKeyExchangeGenerator.generate()ClientKeyExchangeGenerator.get_all_siblings()ClientKeyExchangeGenerator.is_command()ClientKeyExchangeGenerator.is_expect()ClientKeyExchangeGenerator.is_generator()ClientKeyExchangeGenerator.post_send()
ClientMasterKeyGeneratorClientMasterKeyGenerator._repr()ClientMasterKeyGenerator.add_child()ClientMasterKeyGenerator.generate()ClientMasterKeyGenerator.get_all_siblings()ClientMasterKeyGenerator.is_command()ClientMasterKeyGenerator.is_expect()ClientMasterKeyGenerator.is_generator()ClientMasterKeyGenerator.post_send()
CloseCloseRSTCollectNoncesCommandCompressedCertificateGeneratorCompressedCertificateGenerator._repr()CompressedCertificateGenerator.add_child()CompressedCertificateGenerator.generate()CompressedCertificateGenerator.get_all_siblings()CompressedCertificateGenerator.is_command()CompressedCertificateGenerator.is_expect()CompressedCertificateGenerator.is_generator()CompressedCertificateGenerator.post_send()
ConnectCopyVariablesFinishedGeneratorFlushMessageListFlushMessageQueueHandshakeProtocolMessageGeneratorHandshakeProtocolMessageGenerator._repr()HandshakeProtocolMessageGenerator.add_child()HandshakeProtocolMessageGenerator.generate()HandshakeProtocolMessageGenerator.get_all_siblings()HandshakeProtocolMessageGenerator.is_command()HandshakeProtocolMessageGenerator.is_expect()HandshakeProtocolMessageGenerator.is_generator()HandshakeProtocolMessageGenerator.post_send()
HeartbeatGeneratorKeyUpdateGeneratorMessageGeneratorPlaintextMessageGeneratorPopMessageFromListRawMessageGeneratorRawSocketWriteGeneratorResetHandshakeHashesResetRenegotiationInfoResetWriteConnectionStateSetMaxRecordSizeSetPaddingCallbackSetPaddingCallback._repr()SetPaddingCallback.add_child()SetPaddingCallback.add_fixed_padding_cb()SetPaddingCallback.fill_padding_cb()SetPaddingCallback.fixed_length_cb()SetPaddingCallback.get_all_siblings()SetPaddingCallback.is_command()SetPaddingCallback.is_expect()SetPaddingCallback.is_generator()SetPaddingCallback.process()
SetRecordVersionTCPBufferingDisableTCPBufferingEnableTCPBufferingFlush_apply_function()ch_cookie_handler()ch_key_share_handler()div_ceil()fuzz_encrypted_message()fuzz_mac()fuzz_message()fuzz_padding()fuzz_pkcs1_padding()fuzz_plaintext()pad_handshake()post_send_msg_sock_restore()queue_message()replace_plaintext()skip_post_send()split_message()substitute_and_xor()truncate_handshake()
- tlsfuzzer.runner module
- tlsfuzzer.scanner module
- tlsfuzzer.timing_runner module
TimingRunnerTimingRunner.analyse()TimingRunner.analyse_bit_sizes()TimingRunner.check_analysis_availability()TimingRunner.check_extraction_availability()TimingRunner.check_tcpdump()TimingRunner.create_output_directory()TimingRunner.extract()TimingRunner.generate_log()TimingRunner.run()TimingRunner.sniff()TimingRunner.tcpdump_status()
- tlsfuzzer.tree module