Open GoogleCodeExporter opened 9 years ago
f_in = open(sys.argv[1],'rb')
f_out = open(sys.argv[2],'wb')
pkt = PCapFilePacket()
pkt.fromString(f_in.read(len(pkt)))
pkt['data'] = f_in.read(pkt['savedLength'])
pkt_out = PCapFilePacket()
pkt_out['data'] = str(eth.get_packet())
f_out.write(str(pkt_out))
Original comment by cn.wei.hp@gmail.com
on 15 Nov 2010 at 7:16
pcapfile.py
http://code.google.com/p/impacket/source/browse/#svn/trunk/examples
Original comment by cn.wei.hp@gmail.com
on 15 Nov 2010 at 7:34
pcap修改的问题:
caplen 删除每条包尾部冗余数据
iplen 错误解码器不能正常解码
Original comment by cn.wei.hp@gmail.com
on 15 Nov 2010 at 3:10
Original issue reported on code.google.com by
cn.wei.hp@gmail.com
on 15 Nov 2010 at 7:00