Dict.CN 在线词典, 英语学习, 在线翻译

学海苦作舟,书山勤为径

留下点回忆

常用链接

统计

积分与排名

Denoise

English study

Web技术

数据压缩

一些连接

最新评论

tcpdump to capture packet for wireshark

tcpdump -i eth0:0 tcp -w /tmp/test.cap

-i is used to set interface
tcp is used to set protocol
-w is the output file
wireshark can handle test.cap

posted on 2011-11-11 12:20 笨笨 阅读(425) 评论(2)  编辑 收藏 引用 所属分类: Linux

评论

# re: tcpdump to capture packet for wireshark 2011-11-16 10:38 笨笨

tcpdump -s 0可以用来解决默认只抓部分包的问题  回复  更多评论   

# re: tcpdump to capture packet for wireshark 2011-11-16 10:39 笨笨

example:
tcpdump -i lo tcp port 80 -s 0 -w /tmp/test.cap
-s后面是0就是抓全部包;指定数值就是抓指定大小的包  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理