Can I apply a filter to a trace file when using Windump
Hi friends,
I captured some packets and write them to a file with windump, the command is as follows
windump -i2 -w -s 1500 -w xxx.pcap
But when I tried to apply a filter(windump -r xxx.pcap ip[9] = 6) to the trace file, windump only reponded with "reading from file xxx.pcap, link-type EN10MB (Ethernet)", I have no idea what's wrong here? I can only apply a filter whiling capturing?
I've confirmed that there are tcp packets in the trace file and if I open it with Wireshark and apply a display filter "tcp" or "ip[9] == 6", it works perfectly.
Thanks in advance:)
I captured some packets and write them to a file with windump, the command is as follows
windump -i2 -w -s 1500 -w xxx.pcap
But when I tried to apply a filter(windump -r xxx.pcap ip[9] = 6) to the trace file, windump only reponded with "reading from file xxx.pcap, link-type EN10MB (Ethernet)", I have no idea what's wrong here? I can only apply a filter whiling capturing?
I've confirmed that there are tcp packets in the trace file and if I open it with Wireshark and apply a display filter "tcp" or "ip[9] == 6", it works perfectly.
Thanks in advance:)
Comments
Forum Admin at www.techexams.net
--
LinkedIn: www.linkedin.com/in/jamesdmurray
Twitter: www.twitter.com/jdmurray
windump -r xxx.pcap ip[9] = 6 > xxx.txt
but got the same echo "reading from file xxx.pcap, link-type EN10MB (Ethernet)"
Forum Admin at www.techexams.net
--
LinkedIn: www.linkedin.com/in/jamesdmurray
Twitter: www.twitter.com/jdmurray
@JDMurray, I work under Windows XP and my account is in the administrator user group so I really have no idea what's wrong.
Sample payload:
0000 00 d0 b7 1b 8d 3e 3c 97 0e 5c cb 45 88 64 11 00
0010 4e 01 00 36 00 21 45 00 00 34 77 fb 40 00 80 06
0020 ab b8 0a c6 01 06 4a 7d 80 c7 d7 94 00 50 56 e2
0030 23 01 00 00 00 00 80 02 20 00 26 4c 00 00 02 04
0040 05 a0 01 03 03 08 01 01 04 02
Forum Admin at www.techexams.net
--
LinkedIn: www.linkedin.com/in/jamesdmurray
Twitter: www.twitter.com/jdmurray