Giter VIP home page Giter VIP logo

netattack2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netattack2's Issues

sudo apt-get install nmap -y

nmap is already install and i get this error

root@kali:/netattack2# python3 netattack2.py installFile "netattack2.py", line 37subprocess.call("sudo apt-get install nmap -y > {}".format(os.devnull), shell=True)^TabError: inconsistent use of tabs and spaces in indentationroot@kali:/netattack2#
net

Host scan issue

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux

[*] Scanning the network...
Traceback (most recent call last):
File "netattack2.py", line 579, in
main()
File "netattack2.py", line 576, in main
handle_option(option)
File "netattack2.py", line 80, in handle_option
host_scan(False)
File "netattack2.py", line 214, in host_scan
hostscan.do_scan(ip_range)
File "/root/netattack2/src/scan.py", line 61, in do_scan
name = item["hostnames"][0]["name"]
KeyError: 'hostnames'
Press any key to go back..

ERROR: Modules missing.

when i type
root@DESKTOP-MHFT6P1:/home/senpa1/netattack2# ./netattack2.py
this stuff hapens
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: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

[+] Requirements installed.

so i runned the comand it gave me:

root@DESKTOP-MHFT6P1:/home/senpa1/netattack2# sudo dpkg --configure -a
dpkg: error: parsing file '/var/lib/dpkg/updates/0001' near line 0:
newline in field name '#padding'
and i dont even know where to start

error netattack2

how to resolve this errror:
Traceback (most recent call last):
File "./netattack2.py", line 47, in
from scapy.all import *
File "/usr/local/lib/python2.7/dist-packages/scapy/all.py", line 10, in
from .config import *
File "/usr/local/lib/python2.7/dist-packages/scapy/config.py", line 11, in
from .data import *
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 184, in
TCP_SERVICES,UDP_SERVICES=load_services("/etc/services")
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 109, in load_services
f=open(filename, errors='ignore')
TypeError: 'errors' is an invalid keyword argument for this function

major error in kali linux

upon starting the script which i downloaded direct from this repository... whether i use ./netattack2.py or python netattack2.py, i say yes to install the missing dependencies.... and then i restart the script and it just goes back to asking me if i want to install all the dpeendencies. i have all of them installed for i went into the script itself and viewed which dependencies need to be installed. any way i can edit the script to skip the dependencies part? not very good at figuring this out on my own upon gazing into forums sorry please help

netattack error

root@kali:# cd netattack2
root@kali:
/netattack2# ls
CREDITS LICENSE README.md netattack2.py src
root@kali:~/netattack2# ./netattack2.py
Traceback (most recent call last):
File "./netattack2.py", line 47, in
from scapy.all import *
File "/usr/local/lib/python2.7/dist-packages/scapy/all.py", line 10, in
from .config import *
File "/usr/local/lib/python2.7/dist-packages/scapy/config.py", line 11, in
from .data import *
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 184, in
TCP_SERVICES,UDP_SERVICES=load_services("/etc/services")
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 109, in load_services
f=open(filename, errors='ignore')
TypeError: 'errors' is an invalid keyword argument for this function

Requirements installed. but still not working !

When i launch netattack2, it ask me to install the requirements:
[*] Installing requirements, please stand by...
Requirement already satisfied: netifaces in /usr/local/lib/python2.7/dist-packages
E: Impossible d'obtenir le verrou /var/lib/dpkg/lock - open (11: Ressource temporairement non disponible)
E: Impossible de verrouiller le répertoire d'administration (/var/lib/dpkg/). Il est possible qu'un autre processus l'utilise.
E: Impossible d'obtenir le verrou /var/lib/dpkg/lock - open (11: Ressource temporairement non disponible)
E: Impossible de verrouiller le répertoire d'administration (/var/lib/dpkg/). Il est possible qu'un autre processus l'utilise.
E: Impossible d'obtenir le verrou /var/lib/dpkg/lock - open (11: Ressource temporairement non disponible)
E: Impossible de verrouiller le répertoire d'administration (/var/lib/dpkg/). Il est possible qu'un autre processus l'utilise.
E: Impossible d'obtenir le verrou /var/lib/dpkg/lock - open (11: Ressource temporairement non disponible)
E: Impossible de verrouiller le répertoire d'administration (/var/lib/dpkg/). Il est possible qu'un autre processus l'utilise.

[+] Requirements installed.
so here it looks like i can't find the ressources, i need to make netattack work proprely.
i result to this using the command "python2 netattack2.py"

using "./netattack2" i juste have:
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/python2.7/dist-packages
E: Impossible de trouver le paquet python-nfqueue

[+] Requirements installed.

but i still can't use netattack

i installed manually the requierments but it seem that they are not founded.

netattack 2 module missing error

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#

python-nfqeue

On a frensh install of kali I got this :
unable to locate package python-nfqeue

Even the apt-get can’t fix this !
Someone have a similar issue and can help me ?

Installation error "unable to locate package python-nfqeue"

I just installed and upgraded a fresh copy of Kali Linux from the official site. Then i cloneed your git and went through your installation guide. After i click "y" to install the dependencies automatically i get this error "unable to locate package python-nfqeue".
As a result i can never run your tool.
Pls help.

File "/home/kali/Desktop/netattack2/netattack2.py", line 37

Hi
in Kali 2021 i followed step by steps and get error that i typed in subject
please someone help me ,

" File "/home/kali/Desktop/netattack2/./netattack2.py", line 37
subprocess.call("sudo apt-get install nmap -y > {}".format(os.devnull), shell=True)
TabError: inconsistent use of tabs and spaces in indentation"
thanks

when start netattack2 in terminal by this command ./netattack2

the error are as follow
code@code-hack:~/Desktop/hacking/netattack2$ ./netattack2.py
from: can't read /var/mail/threading
from: can't read /var/mail/time
./netattack2.py: line 10: syntax error near unexpected token "scapy.runtime"' ./netattack2.py: line 10: logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # scapy, please shut up..'

Getting Error while Scanning

While scanning I am getting this error,

[5] 00:17:7C:5B:4C:6C | 11 | WPA2 | rahul
Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlan0 ; Invalid argument.
Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlan0 ; Invalid argument.
[6] 00:E0:4C:AC:61:CD | 13 | WEP | SKE_HR_2
Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlan0 ; Invalid argument.

TabError: inconsistent use of tabs and spaces in indentation

i am getting this error when i start netattack2 python3 netattack2.py
File "netattack2.py", line 37
subprocess.call("sudo apt-get install nmap -y > {}".format(os.devnull), shell=True)
^
TabError: inconsistent use of tabs and spaces in indentation

please reply fasttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt

Whitelist

Can we create and enable whitelist for some AP while using option 7 that is deauth all ?

Do you want to automatically install all requirements?

sudo python2 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/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
E: Package 'python-scapy' has no installation candidate
E: Unable to locate package python-nmap
E: Unable to locate package python-nfqueue

[+] Requirements installed.

reinstalling netattack2 didn't help.

Error When Scanning, Kicking, etc.

I get the error “AttributeError: ‘Module’ object has no attribute ‘PortScanner’

Thank you for the help, of anyone can help , I would be very grateful :)

E: Unable to correct problems, you have held broken packages.

./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/python2.7/dist-packages
E: Unable to correct problems, you have held broken packages.

[+] Requirements installed.

´´ unexpected error ´´

Hello !
I have a little problem,
cause when I run a deauth attack fot all AP , it write me that :
" An unexpected error occurred: argument for 's'
must be a string "
whats the problem please ?
thanks ;)

Multiples issues

Choose the target(s) seperated by ',' (comma).
Type 'all' to choose everything listed.
#> ipad.home
ERROR: Invalid input.
#> 192.168.1.13
ERROR: Invalid input.
#> 4
Traceback (most recent call last):
File "netattack2.py", line 578, in
main()
File "netattack2.py", line 575, in main
handle_option(option)
File "netattack2.py", line 93, in handle_option
arp_kick()
File "netattack2.py", line 420, in arp_kick
arpspoof = spoof.Spoof(targets, local_ip, gateway_ip, gateway_mac, interface)
AttributeError: 'module' object has no attribute 'Spoof'

PortScanner issue

Whenever I wan't to scan the network for hosts or kick someone off my network I get this:

Traceback (most recent call last):
File "./netattack2.py", line 579, in
main()
File "./netattack2.py", line 576, in main
handle_option(option)
File "./netattack2.py", line 80, in handle_option
host_scan(False)
File "./netattack2.py", line 214, in host_scan
hostscan.do_scan(ip_range)
File "/root/netattack2/src/scan.py", line 43, in do_scan
nm = nmap.PortScanner()
AttributeError: 'module' object has no attribute 'PortScanner'

I already tried editing the file but nothing helped...
If someone had this as well and knows how to solve it, please let me know.

ValueError: Single '}' encountered in format string

python netattack2.py
ERROR: Modules missing.
Do you want to automatically install all requirements? (y/n): y
Traceback (most recent call last):
File "netattack2.py", line 48, in
auto_installer()
File "netattack2.py", line 30, in auto_installer
print("{{Y}*{N}} Installing requirements, please stand by...".format(Y=YELLOW, N=NORMAL))
ValueError: Single '}' encountered in format string

---> This was i get when i try to launch netattack2 :(

after entering to interface, when i select category and hit enter i get following error

Scanning the network...
Traceback (most recent call last):
File "./netattack2.py", line 578, in
main()
File "./netattack2.py", line 575, in main
handle_option(option)
File "./netattack2.py", line 79, in handle_option
host_scan(False)
File "./netattack2.py", line 213, in host_scan
hostscan.do_scan(ip_range)
File "/home/code/Desktop/hacking/netattack2/src/scan.py", line 43, in do_scan
nm = nmap.PortScanner()
File "/usr/lib/python2.7/dist-packages/nmap/nmap.py", line 192, in init
raise PortScannerError('nmap program was not found in path')
nmap.nmap.PortScannerError: 'nmap program was not found in path'

issue on line 37

Hi Chris, Could you please help on the issue below
ile "/home/toor/netattack2/./netattack2.py", line 37
subprocess.call("sudo apt-get install nmap -y > {}".format(os.devnull), shell=True)
TabError: inconsistent use of tabs and spaces in indentation

NameError: global name 'utils' is not defined

[root@parrot]─[~/Desktop/netattack2]
└──╼ #./netattack2.py

O       O    O O O O   O O O O O         O        O O O O O   O O O O O         O         O O O O O    O       O
O O     O    O             O            O O           O           O            O O        O            O     O 
O  O    O    O             O           O   O          O           O           O   O       O            O   O
O   O   O    O O O O       O          O     O         O           O          O     O      O            O O
O    O  O    O             O         O O O O O        O           O         O O O O O     O            O   O
O     O O    O             O        O         O       O           O        O         O    O            O     O
O       O    O O O O       O       O           O      O           O       O           O   O O O O O    O       O


                                    D I S C O V E R   W H A T 'S   P O S S I B L E
                                                 b y   c h r i z a t o r


-----------
| S C A N |
-----------

  (1) Scan for Access-Points
  (2) Scan for hosts in your network


---------------
| A T T A C K |
---------------

  DEAUTH
    (3) Deauth ONE network
    (4) Deauth MULTIPLE networks

    (5) Deauth ALL networks in your area

  KICK
    (6) Kick ONE user off your network
    (7) Kick MULTIPLE users off your network

    (8) Kick ALL users off your network (except you)


(9) EXIT



#> 8

Traceback (most recent call last):
File "./netattack2.py", line 829, in
handle_choice()
File "./netattack2.py", line 126, in handle_choice
kick_all()
File "./netattack2.py", line 812, in kick_all
kick_hosts = host_scan(True, True, False, True)
File "./netattack2.py", line 366, in host_scan
ip_range = get_ip_range()
File "./netattack2.py", line 311, in get_ip_range
sub = utils.ltoa(net)
NameError: global name 'utils' is not defined

Error when starting netattack2.py : TypeError: 'errors' is an invalid keyword argument for this function

Like issue 14:
scapy is installed,

sudo ./netattack2.py
Traceback (most recent call last):
File "./netattack2.py", line 47, in
from scapy.all import *
File "/usr/local/lib/python2.7/dist-packages/scapy/all.py", line 10, in
from .config import *
File "/usr/local/lib/python2.7/dist-packages/scapy/config.py", line 11, in
from .data import *
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 184, in
TCP_SERVICES,UDP_SERVICES=load_services("/etc/services")
File "/usr/local/lib/python2.7/dist-packages/scapy/data.py", line 109, in load_services
f=open(filename, errors='ignore')
TypeError: 'errors' is an invalid keyword argument for this function

Someone has ever had this problem? Thanks

ERROR: Modules missing.

root@kali:~/netattack2# python netattack2.py
ERROR: Modules missing.
Do you want to automatically install all requirements? (y/n): y
[*] Installing requirements, please stand by...
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already satisfied: netifaces in /usr/local/lib/python2.7/dist-packages (0.10.9)

[+] Requirements installed.

Unable to locate package python-nfqueue

Do you want to automatically install all requirements? (y/n): y
[*] Installing requirements, please stand by...
Requirement already satisfied: netifaces in /usr/local/lib/python2.7/dist-packages (0.10.9)
E: Unable to locate package python-nfqueue

[+] Requirements installed.

I get this error. program not running

Traceback (most recent call last):
File "netattack2.py", line 2, in
from src import *
File "/root/netattack2/src/scan.py", line 3, in
import netifaces
ImportError: No module named netifaces

How to automate steps ?

Suppose after running ./netattack2.py i want to select option 1 then my interface say is on option 10 and then it runs but i want this to happen by a single command say ./netattack.py > 1 > 10 is it possible ???

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.