6

是否有类似 tcpflow 的 Windows 工具?
我只需要嗅探 tcp 的数据(没有标题)。我更喜欢使用命令行工具,例如,我可以 grep 输出。

4

2 回答 2

2

Here is a tool for Windows that's about as much like tcpflow as possible. :-)

I.e., it IS tcpflow, compiled for Windows. I haven't tried it, but I assume it works. It's a "zipball", so you'll need some software that can extract from a Zip archive.

于 2012-10-28T20:06:23.100 回答
2

您可以始终使用 Wireshark(或命令行中的 tshark.exe)来捕获数据,然后在不考虑标头的情况下对它们进行后期处理。

样本输出:

C:\Program Files\Wireshark>tshark.exe -x
Capturing on Intel(R) PRO/Wireless 3945ABG Network Connection (Microsoft's Packe
t Scheduler)

   0.000000 192.168.0.133 -> 192.168.0.255 SMB Mailslot Write Mail Slot

0000  ff ff ff ff ff ff 00 0e 2e 2b 35 55 08 00 45 00   .........+5U..E.  
0010  00 ce 5f 6e 00 00 80 11 57 dc c0 a8 00 85 c0 a8   .._n....W.......  
0020  00 ff 00 8a 00 8a 00 ba 95 f3 11 02 a3 0a c0 a8   ................  
0030  00 85 00 8a 00 a4 00 00 20 45 43 45 4a 46 45 45   ........ ECEJFEE  
0040  4d 45 4a 46 44 46 4b 43 41 43 41 43 41 43 41 43   MEJFDFKCACACACAC  
0050  41 43 41 43 41 43 41 41 41 00 20 45 4e 46 44 45   ACACACAAA. ENFDE  
0060  49 45 50 45 4e 45 46 43 41 43 41 43 41 43 41 43   IEPENEFCACACACAC  
0070  41 43 41 43 41 43 41 43 41 41 41 00 ff 53 4d 42   ACACACACAAA..SMB  
0080  25 00 00 00 00 18 04 00 00 00 00 00 00 00 00 00   %...............  
0090  00 00 00 00 00 00 ff fe 00 00 00 00 11 00 00 04   ................  
00a0  00 02 00 00 00 00 00 02 00 00 00 00 00 00 00 00   ................  
00b0  00 5c 00 04 00 5c 00 03 00 01 00 00 00 02 00 1b   .\...\..........  
00c0  00 5c 4d 41 49 4c 53 4c 4f 54 5c 54 57 42 5f 4d   .\MAILSLOT\TWB_M  
00d0  41 49 4c 53 4c 4f 54 00 29 7a 70 4b               AILSLOT.)zpK  

更新:

如果你需要在本地机器(环回设备)上RawCap抓包,你应该使用优秀的工具来抓一个pcap文件,然后像往常一样在抓包的文件上使用Wireshark。

于 2010-02-09T20:59:54.260 回答