add sourcecode
This commit is contained in:
BIN
10/10.Finding Hidden Wireless Networks with Python-Resources.pdf
Normal file
BIN
10/10.Finding Hidden Wireless Networks with Python-Resources.pdf
Normal file
Binary file not shown.
14
10/hiddenwifi.py
Normal file
14
10/hiddenwifi.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from scapy.all import *
|
||||
import os
|
||||
|
||||
iface = "wlan0"
|
||||
|
||||
def h_packet(packet):
|
||||
if packet.haslayer(Dot11ProbeReq) or packet.haslayer(Dot11ProbeResp) or packet.haslayer(Dot11AssoReq):
|
||||
print "SSID identified " + packet.info
|
||||
|
||||
os.system("iwconfig " + iface + "mode monitor")
|
||||
|
||||
print "Sniffing traffic on interface " + iface
|
||||
sniff(iface=iface, prn=h_packet)
|
||||
|
||||
Reference in New Issue
Block a user