-1

I want to decrypt TLS traffic in a pcap file using scapy by providing certificate and private key. But i dont have a clue how to do it without using wireshark or tshark Could someone give me some suggestions? Thanks in advance.

1 Answers1

0

The three things you might want to look at are:

The key steps are (from the last test case):

>>> key = PrivKeyRSA("srv_key.pem")
>>> res = sniff(offline="tls.pcap", session=TLSSession(server_rsa_key=key))

Obviously this only makes sense when using RSA and not Diffie-Hellman. Good luck !

Bruno Rohée
  • 3,436
  • 27
  • 32
Cukic0d
  • 5,111
  • 2
  • 19
  • 48