1

I need to generate network traffic with a specific SMTP/MIME message in place. Does Python have any libraries that support the ability to generate a pcap file containing the particular information I am looking for?

2
  • 3
    There's scapy, there's pypcap and there's dpkt. I think a combination of the first two or the last two will allow you to generate the packet and modify the capture file.
    – Niklas B.
    Aug 21, 2012 at 15:41
  • FTR, Scapy even has wrpcap/PcapWriter if you want to write the pcaps
    – Cukic0d
    Jun 24, 2019 at 21:48

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.