Change interface type to monitor in reset_interface; update main function to improve clarity.
This commit is contained in:
parent
17683f5bd5
commit
2da759bf39
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ def reset_interface(interface):
|
||||||
try:
|
try:
|
||||||
subprocess.call(["ip", "link", "set", interface, "down"])
|
subprocess.call(["ip", "link", "set", interface, "down"])
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
subprocess.call(["iw", interface, "set", "type", "managed"])
|
subprocess.call(["iw", interface, "set", "type", "monitor"])
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
subprocess.call(["ip", "link", "set", interface, "up"])
|
subprocess.call(["ip", "link", "set", interface, "up"])
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
@ -147,7 +147,7 @@ def main():
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
reset_interface(args.monitor_iface)
|
reset_interface(args.monitor_iface)
|
||||||
|
|
||||||
print(f"[+] Starting passive observer.")
|
print(f"[+] Starting passive observer.")
|
||||||
print(f" Main interface: {args.main_iface}")
|
print(f" Main interface: {args.main_iface}")
|
||||||
print(f" Monitor interface: {args.monitor_iface}")
|
print(f" Monitor interface: {args.monitor_iface}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue