What’s the issue here ?
#1
Hope some of the good people on Grey Sec can help me with my python script, I’ve used the Linux vim editor to compile the script and ran it in the Terminal
So, I’m scanning my network and looking for packets with 802.11 layers and want to get the MAC Address 
When I run the script it doesn’t give any _error_ message but it also doesn’t give any results 

Here’s the script 

Devices = set()
def PacketHandler(pkt):
if pkt.haslayer(Dot11)
dot11_layer=pkt.getlayer(Dot11)
if dot11_layer.addr2 and (dot11_layer.addr2 not in Devices)
Devices.add(dot11_layer.addr2)
print(dot11_layer.addr2)
sniff(iface=sys.argv[1], count=int(sys.argv[2]), prn=PacketHandler)
Reply


Messages In This Thread
What’s the issue here ? - by FancyBear - 01-12-2021, 05:00 PM
RE: What’s the issue here ? - by poppopret - 01-12-2021, 05:22 PM
RE: What’s the issue here ? - by Vector - 01-13-2021, 03:04 AM
RE: What’s the issue here ? - by FancyBear - 01-13-2021, 04:53 PM
RE: What’s the issue here ? - by Vector - 01-13-2021, 06:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Having an issue writing a python script with vim FancyBear 4 23,590 01-03-2021, 11:27 PM
Last Post: FancyBear
  Here is a quick Python tool i wrote. Vector 0 10,656 04-09-2017, 01:46 PM
Last Post: Vector
  Here is a little bash script i wrote to help with kernel management. Vector 8 25,338 12-31-2016, 01:08 PM
Last Post: Vector