Skip to content

Instantly share code, notes, and snippets.

@cicero343
cicero343 / getsessionkey.py
Last active August 19, 2024 21:14 — forked from khr0x40sh/random_session_key_calc.py
Get Session Key for encrypted traffic in PCAP (Interactive)
#!/usr/bin/env python3
"""
This is a Python3 improved/interactive version of the script made by khr0x40sh for decrypting encrypted session keys in a PCAP file to view encrypted traffic.
If you don't specify the parameters, it should ask you for the parameter values.
It will check to see if pycryptodomex is installed, and if not, it will install it.
It can also accept NTML hashes directly as well as passwords.