我需要嗅探 5060 端口上的 voip 流量。同时我需要排除 src 端口 5060 和 dst 端口 5061 的所有数据包
我需要类似的东西:
tcpdump -i any -vvv -s0 port 5060 and (not src port 5060 and not dst port 5061)
Run Code Online (Sandbox Code Playgroud)
但过滤器的第二部分应该与单个数据包相关,而不是所有流量。我怎样才能做到这一点?
我只有在stdout中有任何东西时才需要发送电子邮件.现在我发送邮件每10分钟发送一次这样的邮件,即使脚本没有返回任何内容:
/root/script.sh|mail -s topic my@mail.com
Run Code Online (Sandbox Code Playgroud)
如何跳过null stdout上的邮件?