Skip to content

Commit 030f682

Browse files
committed
ProbeHunter: Monitor mode
1 parent 7343fe2 commit 030f682

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

probeHunter.py

+3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def hop_channel_linux():
7777
shell=True, stdout=PIPE, stderr=PIPE)
7878
threading.Thread(target=hop_channel_mac).start()
7979
elif sys.platform == "linux":
80+
subprocess.run(["ifconfig", args.iface, "down"])
81+
subprocess.run(["iwconfig", args.iface, "mode", "monitor"])
82+
subprocess.run(["ifconfig", args.iface, "up"])
8083
process = Popen(["/usr/sbin/tcpdump", "-i", args.iface, "-e", "-s", "256", "type mgt subtype probe-req"], bufsize=1, universal_newlines=True,
8184
stdout=PIPE, stderr=PIPE)
8285
threading.Thread(target=hop_channel_linux).start()

0 commit comments

Comments
 (0)