mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-03 15:24:59 -04:00
scapy scripts (including ddos)
This commit is contained in:
parent
2acc68c3dd
commit
8ca96e0b02
28 changed files with 172723 additions and 125 deletions
19
Network_and_802.11/scapy/ssid.py
Normal file
19
Network_and_802.11/scapy/ssid.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
__author__ = "bt3"
|
||||
|
||||
from scapy.all import *
|
||||
|
||||
|
||||
|
||||
def PacketHandler(pkt) :
|
||||
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)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
ap_list = []
|
||||
sniff(iface="wlp1s0", prn = PacketHandler)
|
Loading…
Add table
Add a link
Reference in a new issue