我使用 tcpdump 来捕获数据,并在笔记本上使用wireshark来检查它:
sudo tcpdump -ni any port 80 -vv -s0 -w http.pcap
Run Code Online (Sandbox Code Playgroud)
一些信息:
-n: don't convert hosts, ports to names
-i any: capture on all interfaces
-vv: verbose output to see packet count
-s0: capture whole packet
-w http.pcap: write to file
Run Code Online (Sandbox Code Playgroud)
收集足够的数据后,只需按 Ctrl + C,然后使用wireshark 打开文件。
虽然您可以tcpdump
单独使用来获取一些信息
-A Print each packet (minus its link level header) in ASCII. Handy for capturing web pages
Run Code Online (Sandbox Code Playgroud)
这只会让你到目前为止。
归档时间: |
|
查看次数: |
10427 次 |
最近记录: |