An open API service indexing awesome lists of open source software.

https://github.com/ivan-sincek/pre-master-secret-key

Set up all you need to capture pre-master secret keys to decrypt SSL in Wireshark.
https://github.com/ivan-sincek/pre-master-secret-key

batch decrypt-ssl decrypt-tls defensive-security environment-variables ethical-hacking incident-response offensive-security secret-keys security threat-hunting wireshark

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://www.comparitech.com/net-admin/decrypt-ssl-with-wireshark).

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\\](https://github.com/ivan-sincek/pre-master-secret-key/tree/master/src) and run the following command:

```fundamental
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)