Skip to content

Commit 8cb4e55

Browse files
committed
fixed wifi scanner code
1 parent 68a2a97 commit 8cb4e55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎scapy/wifi-scanner/wifi_scanner.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
importpandas
44
importtime
55
importos
6+
importsys
67

78

89
# initialize the networks dataframe that will contain all access points nearby
@@ -47,7 +48,7 @@ def change_channel():
4748

4849
if__name__=="__main__":
4950
# interface name, check using iwconfig
50-
interface="wlan0mon"
51+
interface=sys.argv[1]
5152
# start the thread that prints all the networks
5253
printer=Thread(target=print_all)
5354
printer.daemon=True

0 commit comments

Comments
(0)