Giter VIP home page Giter VIP logo

wifijammer's Introduction

wifijammer

Disconnect Nearby Access Points and Stations by forging and Transmitting Deauthentication Frames. Built on top of scapy and utilizes channel hopping and forging frames from a single interface. Works with python 3.

Installation:

Install Scapy:

$ pip3 install scapy==2.4.3

Clone the Repo and check manual:

$ git clone https://github.com/hash3liZer/wifijammer.git
$ cd wifijammer/
$ python3 wifijammer.py --help

Usage:

python3 [scriptname] [argument...]
python3 wifijammer.py --help

Arguments

Args                 Description                       Default
-h, --help           Throwback this help manaul        False
-i, --interface      Monitor Mode Interface to use
                     for scanning & deauthentication   None
-c, --channel        Channel to put monitor interface
                     on                                All
-a, --accesspoints   Comma-seperated list of access-
                     points to target                  All
-s, --stations       Comma-seperated list of stations
                     to target                         All
-f, --filters        Comma-seperated list of Mac-
                     addresses to skip target          None
-p, --packets        Number of deauthentication
                     packets to send per turn.         25
-d, --delay          Delay b/w transmission of pkts    0.1s
-r, --reset          To refresh the target list after 
                     the list has reached a specific
                     number, like --reset 5            None
    --code           (Int) Deauthentication Code
                     to send with packets               7
    --world          Scan for channels from 1-14,
                     default is 1-11                   False
    --aggressive     Run in Aggressive Mode. Send 
                     Continuous frames to Broadcast
                     Doesn't work when hoppping        False
    --no-broadcast   Don't send deauthentication 
                     packets to broadcast address      False
    --verbose        Print device manufacturing
                     details                           False

Example

Disconnecting AccessPoints from their stations on channel 6:

$ python3 wifijammer.py --interface wlan1mon --channel 6 --aggressive

Disclaimer

This tool is only intended for testing purposes and should be used where there is allowance of having de-authentication tests. The user should have prior consent for testing against the target. The author will not be held responsible regarding any case of misuse.

Author

Twitter: hash3liZer
Email : [email protected]

wifijammer'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

wifijammer's Issues

error when executing

┌──(root💀kali)-[/opt/wifijammer]
└─# python3 wifijammer.py -i eth0 --aggressive --channel 6 1 ⨯
eth0 no wireless extensions.

Traceback (most recent call last):
File "/opt/wifijammer/wifijammer.py", line 491, in
main()
File "/opt/wifijammer/wifijammer.py", line 447, in main
parser = PARSER(options)
File "/opt/wifijammer/wifijammer.py", line 340, in init
self.interface = self.interface(opts.interface)
File "/opt/wifijammer/wifijammer.py", line 416, in interface
if confirmMon(iface):
File "/opt/wifijammer/wifijammer.py", line 407, in confirmMon
card = re.findall('Mode:[A-Za-z]+', data)[0]
IndexError: list index out of range

┌──(root💀kali)-[/opt/wifijammer]
└─# python3 wifijammer.py -i eth0 -p 5 1 ⨯
eth0 no wireless extensions.

Traceback (most recent call last):
File "/opt/wifijammer/wifijammer.py", line 491, in
main()
File "/opt/wifijammer/wifijammer.py", line 447, in main
parser = PARSER(options)
File "/opt/wifijammer/wifijammer.py", line 340, in init
self.interface = self.interface(opts.interface)
File "/opt/wifijammer/wifijammer.py", line 416, in interface
if confirmMon(iface):
File "/opt/wifijammer/wifijammer.py", line 407, in confirmMon
card = re.findall('Mode:[A-Za-z]+', data)[0]
IndexError: list index out of range

in Windows i installed the requirement of scapy, have python3 too, i do this next.....
C:\Windows\system32>cd C:\Users\Daishinkan\Desktop\wifijammer-master\wifijammer-master

C:\Users\Daishinkan\Desktop\wifijammer-master\wifijammer-master>color a

C:\Users\Daishinkan\Desktop\wifijammer-master\wifijammer-master>py wifijammer.py
File "wifijammer.py", line 270
pull.print("*",
^
SyntaxError: invalid syntax

C:\Users\Daishinkan\Desktop\wifijammer-master\wifijammer-master>py wifijammer.py -h
File "wifijammer.py", line 270
pull.print("*",
^
SyntaxError: invalid syntax

C:\Users\Daishinkan\Desktop\wifijammer-master\wifijammer-master>python wifijammer.py -h
File "wifijammer.py", line 270
pull.print("*",
^
SyntaxError: invalid syntax

C:\Users\Daishinkan\Desktop\wifijammer-master\wifijammer-master>

i had CMD mmode administrator of course, any solution?, i hope ur answer soon.

Excessive memory usage

Command:
python3 wifijammer.py -i wlan1mon -a 0C:0B:0E:09:0D:08,d8:00:00:02:0d:04 --aggressive
Error:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.9/threading.py", line 892, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/jammer/wifijammer-SSIDs-list/wifijammer.py", line 299, in jammer
    subprocess.call(['iwconfig', self.interface, 'channel', str(ch)])
  File "/usr/lib/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.9/subprocess.py", line 947, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1752, in _execute_child
    self.pid = _posixsubprocess.fork_exec(
OSError: [Errno 12] Cannot allocate memory

The process increases the memory usage, reaching the ram limit, causing the error

File Not Found: /proc/net/dev

I am getting an error when I try to run, line 398 getNICnames
dev = open('/proc/net/dev', 'r')

I get a file not found error: no such file or directory: '/proc/net/dev'

No such file or directory

when I try to run using

py wifijammer.py --interface wlan1mon

I get an error on line 398 in getNICnames
'No such file or directory: '/proc/net/dev'

am I using a wrong interface/which interface should I be using or is there a way around this?

PermissionError

Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlx08bd4378e8a6 ; Operation not permitted.
Traceback (most recent call last):
File "wifijammer.py", line 491, in
main()
File "wifijammer.py", line 487, in main
jammer.engage()
File "wifijammer.py", line 330, in engage
sniff(iface=self.interface, prn=self.injector)
File "/home/drewr/.local/lib/python3.8/site-packages/scapy/sendrecv.py", line 972, in sniff
sniffer._run(*args, **kwargs)
File "/home/drewr/.local/lib/python3.8/site-packages/scapy/sendrecv.py", line 841, in _run
sniff_sockets[L2socket(type=ETH_P_ALL, iface=iface,
File "/home/drewr/.local/lib/python3.8/site-packages/scapy/arch/linux.py", line 467, in init
self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type)) # noqa: E501
File "/usr/lib/python3.8/socket.py", line 231, in init
_socket.socket.init(self, family, type, proto, fileno)
PermissionError: [Errno 1] Operation not permitted

Jam all channels

Wish that this thing could detect channels ap's in and jump around them

UnboundLocalError: cannot access local variable 'f' where it is not associated with a value

$ python3 wifijammer.py
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/arch/linux.py", line 125, in get_if_list
f = open("/proc/net/dev", "rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/proc/net/dev'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/data/com.termux/files/home/wifijammer/wifijammer.py", line 14, in
from scapy.sendrecv import sniff
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/sendrecv.py", line 35, in
import scapy.route # noqa: F401
^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/route.py", line 203, in
conf.iface = get_working_if()
^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/arch/linux.py", line 144, in get_working_if
for i in get_if_list():
^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/scapy/arch/linux.py", line 127, in get_if_list
f.close()
^
UnboundLocalError: cannot access local variable 'f' where it is not associated with a value

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.