在ngrep中使用-x标志会导致数据包的数据部分以hex显示。 有没有办法也显示帧/标题以及?
似乎ngrep不显示/search数据包标题。 从man ngrep ,你可以从ngrep描述中读到:
ngrep is a pcap-aware tool that will allow you to specify extended regular expressions to match against data payloads of packets.
我找不到任何选项来显示标题。 如果你想要更多的细节,如头文件,最好使用tcpdump 。