Questions tagged «scapy»

4
使用Python和Scapy嗅探Pi上的ARP
我正在尝试使用Raspberry Pi从网络上的特定无线设备查找ARP请求。这是那些亚马逊破折号按钮之一。破折号连接到wifi时,有人使用此代码进行侦听。 from scapy.all import * def arp_display(pkt): if pkt[ARP].op == 1: #who-has (request) if pkt[ARP].psrc == '0.0.0.0': # ARP Probe if pkt[ARP].hwsrc == '74:75:48:5f:99:30': # button 1 print "Pushed Huggies" elif pkt[ARP].hwsrc == '10:ae:60:00:4d:f3': # button 2 print "Pushed Elements" else: print "ARP Probe from unknown device: " + …
12 python  arp  scapy 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.