热点推荐
ZOL首页 > 服务器 > 知识学堂 > Linux > Tcpdump:Linux下基于命令行的抓包工具

Tcpdump:Linux下基于命令行的抓包工具


天新网 【转载】 2009年03月24日 18:47

大家可能都已经对著名的抓包工具Ethereal比较熟悉了,这里再介绍一种基于命令行的抓包工具tcpdump。

举例:抓本机1813端口上的数据,并将抓包结果保存在test.cap文件中


tcpdump -X -s 0 -w test.cap port 1813-X Print each packet (minus its link level header) in hex and ASCII.-s snaplen Setting snaplen to 0 means use the required length to catch whole packets.-w file Write the raw packets to file rather than parsing and printing them out.

然后在本地可以用Ethereal图形化界面查看所抓到包的详细信息。这在通过远程登录在服务器上工作的情况下特别有用,因为终端模式无法用图形化工具抓包。

给文章打分 5分为满分(共0人参与) 查看排行>>
频道热词:LED照明  工作站  云计算  
视觉焦点
服务器知识学堂热点
排行 文章标题
TOP10周热门服务器排行榜
  • 热门
  • 新品
  • 系列
查看完整榜单>>