davidbombal / red-python-scripts

MIT License
2.04k stars 1.59k forks source link

Script no scanning #39

Open Rafalbala opened 2 years ago

Rafalbala commented 2 years ago

I have Alfa AWUS036ACH-C however, it does not scan the network

2022-03-04_16h01_27

Retr0Kr0dy commented 2 years ago

Which version of the wifi_dos script are you using ?

This problem occurs only with the version 1 and version 2, use version 3 instead.

I think the main difference is in the way subprocess are handled.

for exemple ;

version 2 (line 196-199) :

# Deauthenticate clients using a subprocess. 
# The script is the parent process and creates a child process which runs the system command, 
# and will only continue once the child process has completed.
try:
    subprocess.run(["aireplay-ng", "--deauth", "0", "-a", hackbssid, hacknic])
except KeyboardInterrupt:
    print("Done!")

version 3 (line 183-184) :

# Deauthenticate clients. We run it with Popen and we send the output to subprocess.DEVNULL and the errors to subprocess.DEVNULL. We will thus run deauthenticate in the background.
subprocess.Popen(["aireplay-ng", "--deauth", "0", "-a", hackbssid, check_wifi_result[int(wifi_interface_choice)] + "mon"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) 
stickyfingers82 commented 2 years ago

Thanks for the info! This was very helpful. :)

lordmonkey1800 commented 7 months ago

yo can someone please help me with this i tried all the python scripts and none of them work please help it does not scan