Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Set up all you need to capture pre-master secret keys to decrypt SSL in Wireshark.

License

Notifications You must be signed in to change notification settings

ivan-sincek/pre-master-secret-key

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-Master Secret Key

Just a simple Batch script that will help you set up all you need to capture pre-master secret keys to decrypt SSL in Wireshark.

Script will create SSLKEYLOGFILE environment variable and ssl-key.log file on your desktop.

Reference point was this article.

Tested with Wireshark v3.2.6 (64-bit) on Windows 10 Enterprise OS (64-bit).

Made for educational purposes. I hope it will help!

How to Run

Double click on the script or open the Command Prompt from \src\ and run the following command:

pre_master_secret_key.bat

Open Wireshark and go to Edit -> Preferences -> Protocols -> TLS and load the path to ssl-keys.log into (Pre-)Master-Secret log filename input filed.

Start recording network traffic.

If you suddenly cannot delete the log file even after closing the web browser, it is possible that some other program is still writing in the file, e.g OneDrive, Dropbox, etc.

Images

Run (Create)

Figure 1 - Run (Create)

Run (Remove)

Figure 2 - Run (Remove)