Change interface type to monitor in reset_interface; update main function to improve clarity.

This commit is contained in:
Yaro Kasear 2025-05-01 09:19:18 -05:00
parent 17683f5bd5
commit 2da759bf39

View file

@ -130,7 +130,7 @@ def reset_interface(interface):
try:
subprocess.call(["ip", "link", "set", interface, "down"])
time.sleep(1)
subprocess.call(["iw", interface, "set", "type", "managed"])
subprocess.call(["iw", interface, "set", "type", "monitor"])
time.sleep(1)
subprocess.call(["ip", "link", "set", interface, "up"])
time.sleep(1)
@ -147,7 +147,7 @@ def main():
args = parser.parse_args()
reset_interface(args.monitor_iface)
print(f"[+] Starting passive observer.")
print(f" Main interface: {args.main_iface}")
print(f" Monitor interface: {args.monitor_iface}")