chrizator / netattack2

An advanced network scan and attack script based on GUI. 2nd version of no-GUI netattack.
MIT License
413 stars 118 forks source link

netattack 2 module missing error #34

Open xeladareb opened 3 years ago

xeladareb commented 3 years ago

root@kali:/home/[user]/Bureau/netattack2# ./netattack2.py ERROR: Modules missing. Do you want to automatically install all requirements? (y/n): y [*] Installing requirements, please stand by... Requirement already satisfied: netifaces in /usr/local/lib/python3.9/dist-packages (0.10.9) E: Le paquet « python-scapy » n'a pas de version susceptible d'être installée E: Impossible de trouver le paquet python-nmap E: Impossible de trouver le paquet python-nfqueue

[+] Requirements installed.

root@kali:/home/[user]/Bureau/netattack2#

KevinCaires commented 1 year ago

I'm using the python2 and have the same problem. The error says pip: command not found, but is not true, the pip is installed, and I can install nmap package manually, but not python-nmap and the other modules what program need!

./netattack2.py 
ERROR: Modules missing.
Do you want to automatically install all requirements? (y/n): y
[*] Installing requirements, please stand by...
sudo: pip: command not found
E: Package 'python-scapy' has no installation candidate
E: Unable to locate package python-nmap
E: Unable to locate package python-nfqueue

[+] Requirements installed.

The script return only this message above!

KevinCaires commented 1 year ago

Hey @chrizator I fix some errors, update to acceptt python3 and create a new branch, but I can't push into a new origin. So I put here in this comment the new version in .tar.gz format.

I just test the scan function, please test others functions before merge!

netattack2.tar.gz

SandiyosDev commented 1 year ago

Hey @chrizator I fix some errors, update to acceptt python3 and create a new branch, but I can't push into a new origin. So I put here in this comment the new version in .tar.gz format.

I just test the scan function, please test others functions before merge!

netattack2.tar.gz

User@UbuntuPC:~/Desktop/NTPU Wifi/deauth/netattack2$ python '/home/User/Desktop/deauth/netattack2/netattack2.py' ERROR: Modules missing. Do you want to automatically install all requirements? (y/n): y [*] Installing requirements, please stand by... [sudo] password for User: Requirement already satisfied: netifaces in /usr/lib/python3/dist-packages (0.11.0) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv error: subprocess-exited-with-error

× Building wheel for NetfilterQueue (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/_version.py -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/init.py -> build/lib.linux-x86_64-3.10/netfilterqueue running egg_info writing manifest file 'NetfilterQueue.egg-info/SOURCES.txt' copying netfilterqueue/_impl.pxd -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/_impl.pyi -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/_impl.pyx -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/py.typed -> build/lib.linux-x86_64-3.10/netfilterqueue running build_ext creating build/temp.linux-x86_64-3.10 creating build/temp.linux-x86_64-3.10/netfilterqueue netfilterqueue/_impl.c:766:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 766 | #include "libnfnetlink/linux_nfnetlink.h" | ^~~~~~~~ compilation terminated. error: Command "x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c netfilterqueue/_impl.c -o build/temp.linux-x86_64-3.10/netfilterqueue/_impl.o" failed with exit status 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for NetfilterQueue ERROR: Could not build wheels for NetfilterQueue, which is required to install pyproject.toml-based projects

[+] Requirements installed.

User@UbuntuPC:~/Desktop/NTPU Wifi/deauth/netattack2$

KevinCaires commented 1 year ago

Hey @chrizator I fix some errors, update to acceptt python3 and create a new branch, but I can't push into a new origin. So I put here in this comment the new version in .tar.gz format. I just test the scan function, please test others functions before merge! netattack2.tar.gz

User@UbuntuPC:~/Desktop/NTPU Wifi/deauth/netattack2$ python '/home/User/Desktop/deauth/netattack2/netattack2.py' ERROR: Modules missing. Do you want to automatically install all requirements? (y/n): y [*] Installing requirements, please stand by... [sudo] password for User: Requirement already satisfied: netifaces in /usr/lib/python3/dist-packages (0.11.0) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv error: subprocess-exited-with-error

× Building wheel for NetfilterQueue (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.10 creating build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/_version.py -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/init.py -> build/lib.linux-x86_64-3.10/netfilterqueue running egg_info writing manifest file 'NetfilterQueue.egg-info/SOURCES.txt' copying netfilterqueue/_impl.pxd -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/_impl.pyi -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/_impl.pyx -> build/lib.linux-x86_64-3.10/netfilterqueue copying netfilterqueue/py.typed -> build/lib.linux-x86_64-3.10/netfilterqueue running build_ext creating build/temp.linux-x86_64-3.10 creating build/temp.linux-x86_64-3.10/netfilterqueue netfilterqueue/_impl.c:766:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 766 | #include "libnfnetlink/linux_nfnetlink.h" | ^~~~~~~~ compilation terminated. error: Command "x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.10 -c netfilterqueue/_impl.c -o build/temp.linux-x86_64-3.10/netfilterqueue/_impl.o" failed with exit status 1 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for NetfilterQueue ERROR: Could not build wheels for NetfilterQueue, which is required to install pyproject.toml-based projects

[+] Requirements installed.

User@UbuntuPC:~/Desktop/NTPU Wifi/deauth/netattack2$

I read this links, https://github.com/ethan2-0/python3-netfilterqueue-packager/issues/1 and https://superuser.com/questions/1476303/i-was-trying-to-install-netfilterqueue-for-scrapy-python-and-this-error-came-c , this is a lack of libnetfilter-queue-dev module in your PC. This module is required to Scapy package. Try to install this lib before install netattack2

punkplayer1 commented 1 year ago

Hey @chrizator I fix some errors, update to acceptt python3 and create a new branch, but I can't push into a new origin. So I put here in this comment the new version in .tar.gz format.

I just test the scan function, please test others functions before merge!

netattack2.tar.gz

@KevinCaires i was able to run your version but now i m stuck on this error message when chossing option 6 for deauthentication with monitor mode enabled interface

[*] Searching for WiFi-Networks... (10 sec.)

An unexpected error occurred: ord() expected string of length 1, but int found