Skip to content

Instantly share code, notes, and snippets.

@glennzw
Last active December 15, 2015 14:49
Show Gist options
  • Save glennzw/5277544 to your computer and use it in GitHub Desktop.
Save glennzw/5277544 to your computer and use it in GitHub Desktop.
Scapy Hackery
#Created and send a client probe request
iface="mon0"
ssid="helloWorld"
mac="11:22:33:44:55"
p=RadioTap()/Dot11(addr1='ff:ff:ff:ff:ff:ff', addr3='ff:ff:ff:ff:ff:ff',addr2=mac)/Dot11ProbeReq() / Dot11Elt(ID='SSID', info=ssid)
sendp(p,iface=iface)
#Signal strength
sig_str = -(256-ord(packet.notdecoded[-4:-3]))
rand_mac():
return ':'.join(map(lambda x: "%02x" % x, [ 0x00, 0x16, 0x3E, random.randint(0x00, 0x7F), random.randint(0x00, 0xFF), random.randint(0x00, 0xFF) ]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment