Created
March 31, 2022 18:45
-
-
Save ieaster1/725e44477a60665f8ff8cdae782b3db9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scapy.all import PcapReader, Raw | |
pcap = PcapReader("test.pcap") | |
f = open("test.mpg", "wb") | |
for packet in pcap: | |
f.write(bytes(packet.getlayer(Raw))) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment