Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving away from Scapy-ssl_tls and fix tls/ tests #179

Merged
merged 30 commits into from
Dec 25, 2020
Merged

Conversation

krizhanovsky
Copy link
Contributor

@krizhanovsky krizhanovsky commented Dec 1, 2020

Fix #134

Please double check that all tls/ tests pass now.

@krizhanovsky krizhanovsky marked this pull request as draft December 1, 2020 18:09
@krizhanovsky krizhanovsky mentioned this pull request Dec 1, 2020
7 tasks
@krizhanovsky krizhanovsky changed the title Ak tls 134 1310 Scapy-ssl_tls fixes Dec 1, 2020
krizhanovsky and others added 6 commits December 7, 2020 17:11
(tintinweb/scapy-ssl_tls#163).

RFC 5246 6.2.3.3 requires the explicit nonce (most usually sequence
number) in the additional authenticated data (AAD), however
crypto_data.sequence, used for the AAD creation in EAEADCryptoContainer,
wasn't initialized with the explicit_nonce.
terminates connection of unsuppoted TLS version with PROTOCOL_VERSION
alert instead of warnings in dmesg.
@krizhanovsky krizhanovsky changed the title Scapy-ssl_tls fixes Moving away from Scapy-ssl_tls and fix tls/ tests Dec 10, 2020
Use TLSExtCertificateStatusRequest() provided by Scapy-TLS instead
of raw type-only extension.
Essencial parts of the library are moved into tls/ directory and
are supposed for further truncation, fixes and migration to Python 3.
(tintinweb/scapy-ssl_tls#163).

RFC 5246 6.2.3.3 requires the explicit nonce (most usually sequence
number) in the additional authenticated data (AAD), however
crypto_data.sequence, used for the AAD creation in EAEADCryptoContainer,
wasn't initialized with the explicit_nonce.
terminates connection of unsuppoted TLS version with PROTOCOL_VERSION
alert instead of warnings in dmesg.
'Traffic wasn't captured' in tls.test_tls_integrity.Proxy.test_tcp_segs
test.

Add notes for #120 to fix the timeouts on run_cmd() interface.

Use -n switch for tcpdump to make it run faster.
tempesta-tech/tempesta#1325 :
the test originally didn't consider the TLS handshake
overhead.
the TLS version - now we'll see what we have in Server Hello
(issue #154).
helpers/remote.py Show resolved Hide resolved
README.md Show resolved Hide resolved
tls/test_tls_integrity.py Outdated Show resolved Hide resolved
have to install it with pip.

Move sleep() to Sniffer.start() and other users may struggle from the
same race with starting the sniffer.
@krizhanovsky krizhanovsky merged commit c906534 into master Dec 25, 2020
@krizhanovsky krizhanovsky deleted the ak-tls-134-1310 branch December 25, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants