from scapy.all import *
pcap=rdpcap('tunneling.pcap')
#print(pcap[0].show(dump=True))
data=b''
for p in pcap[2:-1]:
if p[IP].src=='10.173.0.38':
print(p[Raw].load.strip(b'\x00')[:-1])
data+=p[Raw].load.strip(b'\x00')[:-1]
with open('gpo.zip','wb') as f:
f.write(data)
zip -FF gpo.zip --out fix.zip
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up