请问如何在unix下抓包,用什么工具抓

解决方案 »

  1.   

     Hp unix 抓包示例
    #   nettl  -start     (开启抓包子系统)
    #   nettl  -tn all -e all -tm 99999 -f /tmp/test (执行抓包命令,抓所有的包)
    #   nettl  -stop     (关闭抓包子系统)
    #   netfmt -N -l -f test.TRC000  (查看包,包括包头信息)
    #   netfmt -N -l -n -1 -f /tmp/test.TRC000 (用行模式来显示、不会看到包的具体数据)
    #   netfmt -T -n -l -1 -f test.TRC000  |more (以行的形式,查看结果类似于tcpdump命令)
    #   netfmt -T -n -l -1 -f test.TRC000  |grep IP|grep PORT (据端口、IP进行过滤相关信息)