Skip to content

Commit

Permalink
wifi beacon sniffing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kkevsterrr committed Nov 6, 2016
1 parent bf1d1b9 commit 39e155b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,16 @@ def get_categories(self):
return ["auxiliary", "dos", "arp", "enumeration", "sniff", "exploitation", "scan"]

def beacon(pkt):
ap_list = []
if pkt.haslayer(Dot11):
if pkt.type == 0 and pkt.subtype == 8:
if pkt.addr2 not in ap_list:
ap_list.append(pkt.addr2)
print "AP MAC: %s with SSID: %s " % (pkt.addr2, pkt.info)

def get_wifis(self):
ap_list = []
sniff(iface="mon0", prn=self.beacon)
print GOOD + "Sniffing for Wifi Beacons, output for newly disovered ones are below. Hit Ctrl-C when done."
sniff(iface=self.default_iface, prn=self.beacon)

def get_capabilities(self, category=None):
caps = []
Expand Down

0 comments on commit 39e155b

Please sign in to comment.