如何使用 linux 使用 tcpdump 仅捕获 http
how to capture only http with tcpdump with linux
首先,我使用以下方法捕获所有数据:tcpdump -i any -s 0 -w /tmp/http.cap
不,我要捕获'only http'
我尝试添加 : 和端口 http
但这是不正确的。
谢谢
检查这个:
tcpdump -i any -s 0 'tcp port http' -w /tmp/http.cap
首先,我使用以下方法捕获所有数据:tcpdump -i any -s 0 -w /tmp/http.cap
不,我要捕获'only http'
我尝试添加 : 和端口 http
但这是不正确的。
谢谢
检查这个:
tcpdump -i any -s 0 'tcp port http' -w /tmp/http.cap