我最近发现了Scapy&;看起来好极了
我正在尝试查看NIC上物理环回模块/存根上的简单流量
但是斯卡皮嗅嗅什么也不给
我发送数据包所做的是:
payload = 'data'*10
snf = sniff(filter="icmp", iface="eth0")
for x in xrange(1, 10):
sendp(Ether(dst=src_mac, src=spoof_src_mac)/IP(dst=dst_ip, src=spoof_src_ip)/ICMP()/payload, iface=ifname)
f.open('scapylog.log', 'w')
f.write(str(snf))
使用src_mac=我的mac地址&;我的ip地址。“欺骗”字段只是随机(有效)mac&;ip值
生成的嗅探/日志文件为空。无需报告
我可以通过接口的ifconfig统计信息看到网络中的流量,每次我调用这个脚本时,接口的ifconfig统计信息都会增加,所以流量是流动的
如果有人知道为什么我没有看到我的流量,我会很高兴听到:)
谢谢
我自己在寻找类似的解决方案时偶然发现了你的问题。我在Scapy Troubleshooting页上找到了这个:
相关问题 更多 >
编程相关推荐