Last active
October 15, 2016 02:38
-
-
Save not-inept/ac6e355cd06f471e4d7f9e8f8e2eea74 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scapy.all import sniff, ARP | |
amazonMacs = ['F0D2F1','F0272D','A002DC','94BA31','8841C1','84D6D0','74C246','747548','5CC9D3','50F5DA','44650D','0C47C9','001A90','AC63BE'] | |
def dashPrompt(pkt): | |
if pkt[ARP].op == 1: #who-has (request) | |
mac = pkt[ARP].hwsrc | |
macCode = mac[:8].replace(':','').upper() | |
if macCode in amazonMacs: | |
print "ARP Probe from: " + mac | |
buttonName = raw_input("Button name: ") | |
print sniff(prn=dashPrompt, filter="arp", store=0, count=999) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment