天天看点

tcpdump 使用方法

tcpdump -i lo -nn tcp port 9992

-i lo 指定接口名称

-n 对地址以数字方式显式,否则显式为主机名

-nn 除了-n的作用外,还把端口显示为数值

-nn 以数字显示ip和端口

tcp 协议包

port 指定端口