add sourcecode

This commit is contained in:
Jimmy Xiang
2020-11-12 17:02:10 +08:00
parent bf7c50956c
commit f698082a29
23 changed files with 2746 additions and 0 deletions

14
10/hiddenwifi.py Normal file
View 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)