This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Extract TLS pre-master secret to decrypt captured TLS stream in Wireshark | |
# | |
# Java TLS implementation can be configured to dump information on TLS stream, | |
# making it possible to extracting TLS key for decrypting the stream for debug | |
# purposes. | |
# | |
# This script is originally by Timothy Basanov | |
# https://timothybasanov.com/2016/05/26/java-pre-master-secret.html |