davidbombal / red-python-scripts Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I have just installed Kali Linux on a virtual machine with Windows 11 as the OS Host. I've ran this script and receive an IndexError: list index out of range error on line 239 in gateway_info = gateways[0].
I haven't modified the code at all, so I'm not sure why it's not working.
As the subject says, the scripts no longer detect the wireless card, tried on ParrotOS and Kali both inside VMware. I can run Wifite and other apps, they access the card just fine. Has anything changed?
Screen capture https://youtu.be/6x-xVA965Ms
As you can see, there's a short blink of error message before it goes to scanning for BSSID's, I have let it sit for over an hour scanning and nothing was found. Also, the other scripts lock up the terminal window, I have to close it out and open a fresh one.
Tested in the video were wifi_dos3.py and wifi_dos_type2.py with PAU09 adaptor.
Hi. when I execute the python script it will exit directly after showing the user interface (david bombal name and details) and the script tells me to connect to a wifi controller and try again.I am have a wifi adapter supports monitor mode and I tried the script in Manjaro linux distro.
Note: I also tried the script in kali linux and it worked perfectly
I just make a exe file of exif.py, windows10-wifi.py and key logger too. But after the click, all the file open cmd for nano second only. That show nothing and key logger do not create any additional file. I turn off thr windows antivirus on my win10 laptop. Solution plz. Thank you.
Its only show wlan0 while i have connected my wifi adapter wlan1 but it doesn't show...
File "C:\Users\rahul\AppData\Local\Programs\Python\Python38\get_wifi.py", line 27, in
command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output = True).stdout.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position 499: invalid start byte
The script does not detect my second USB card.
This is the output:
The following WiFi interfaces are available:
0 - wlan0
Please select the interface you want to use for the attack: ^CTraceback (most recent call last):
File "/home/name/Desktop/wifi_dos_type1.py", line 101, in <module>
wifi_interface_choice = input("Please select the interface you want to use for the attack: ")
KeyboardInterrupt
┌──(name㉿kali)-[~/Desktop]
└─$ iwconfig 130 ⨯
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=22 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
wlan1 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short long limit:2 RTS thr:off Fragment thr:off
Power Management:off
Try it yourself
I have done small correction on David Bombal's script ( to fetch all the adapters [ if they available] not only the first adapter e.g wlan0 ) below is the correction :
pattern = r'^wlan[0-9]+'
check_wifi_result = subprocess.run(["iwconfig"], capture_output=True).stdout.decode()
wifi_adapters = re.findall(pattern,check_wifi_result,re.MULTILINE)
if len(wifi_adapters) == 0:
print("Please connect a WiFi adapter and try again.")
exit()
print("The following WiFi interfaces are available:")
for index, item in enumerate(wifi_adapters):
print(f"{index} - {item}")
HII in this it is not showing me anything when i run this command
how can i fix it while wifite is working
I dont know how to download it.
Please help me.
Code error within
Depending on how you run this script it can end up showing command prompt windows due to the fact it is using subprocess so you can add shell = True to these to lines to hind the windows.
profile_info = subprocess.run(["netsh", "wlan", "show", "profile", name], shell = True, capture_output = True).stdout.decode()
profile_info_pass = subprocess.run(["netsh", "wlan", "show", "profile", name, "key=clear"], shell = True, capture_output = True).stdout.decode()
running the script I get the "File format not supported!" error with both File and Terminal options. The images are .JPG and/or .PNG
Anyone else getting this error?
i updated pip and installed pillow, when i run the script and type "1" it says "You entered an invalid option, please try again." Winows defender is turned off
C:\Program Files\Python310\python.exe" "C:/Program Files/Python310/test/exif.py"
File "C:\Program Files\Python310\test\exif.py", line 1
Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] on win32
^^^^^^^^^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
192.168.1.0/24 is a valid ip address range
Begin emission:
Finished sending 256 packets.
Received 0 packets, got 0 answers, remaining 256 packets
I ran the first and the second script and the issue is the same both times.
There were no networks found. I made sure my adapter was in monitor mode. It Just keeps search with no results until I control+C
File "/usr/lib/python3.9/ctypes/util.py", line 99, in _is_elf
with open(filename, 'br') as thefile:
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'
'utf-8' codec can't decode byte 0xff in position 33: invalid start byte
Hello
I get this error msg when i try to run script.
Import csv
IndentationERROR ; unexpected indent.
Thanks
I got this Error any idea to solve it:
line 57, in
getmac_output = subprocess.run("getmac", capture_output=True).stdout.decode().split('\n')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 243: invalid start byte
Traceback (most recent call last):
File "C:\Users\Ashif\Desktop\red-python-scripts-main\windows10-wifi.py", line 43, in
profile_info = subprocess.run(["netsh", "wlan", "show", "profile", name], capture_output = True).stdout.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 698: invalid start byte
Traceback (most recent call last):
File "e:/uwu/wifi.py", line 4, in
command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output = True).stdout.decode()
File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\site-packages\run_init_.py", line 145, in new
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\site-packages\run_init_.py", line 121, in create_process
shlex.split(command),
File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 310, in split
return list(lex)
File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 300, in next
token = self.get_token()
File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 109, in get_token
raw = self.read_token()
File "C:\Users\33138052\AppData\Local\Programs\Python\Python38\lib\shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'list' object has no attribute 'read'
Any fixes?
hi
i am having the same problem when i run program it says scanning but no ap are seen can you advise thank you john
"Could I have your WhatsApp Number so we can collaborate on some projects more effectively? I would greatly appreciate your help in expanding my code. Thank you."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.