我需要捕获长度等于16字节的数据包。
我找到的最接近的是这个:
如果我添加其他过滤器来匹配我的意愿,例如:
tcpdump -ni lo -ttt dst port 1337 and greater 16
如果我添加其他过滤器来匹配我的意愿,例如:
tcpdump -ni lo -ttt dst port 1337 and greater 16 and not greater 17
tcpdump -ni lo -ttt dst port 1337 and \(greater 16 and not greater 17\)
tcpdump -ni lo -ttt dst port 1337 and greater 16 and less 16
它根本没有显示任何数据包。
尽管如此,使用:
tcpdump -ni lo -ttt dst port 1337 and less 16
似乎也不起作用,我在想less过滤器是否有效...
欢迎任何帮助 :)