• This repository has been archived on 29/Aug/2022
  • Stars
    star
    247
  • Rank 163,634 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An automated script for deauthentication attack

Maintenance GitHub issues GitHub forks GitHub stars GitHub license Twitter

Wifi Deauthentication Attack

Sends deauth(deauthentication) packets to wifi network which results network outage for connected devices. Uses scapy module to send deauth packets. Know more about Deauthentication Attack

Dependencies

  1. aircrack-ng.(I highly recommend to install latest version, from source to support more network drivers/cards.)
    • sudo apt-get install aircrack-ng -y
  2. scapy
    • sudo apt-get install python-scapy -y

How to run?

We can run in 2 ways:

  • sudo python deauth.py

    It will automatically creates mon0 with airmon-ng start wlan0(it wont create, if already exists) and sniffs the wifi signal on that interface. After few seconds, it will displays the SSID and its MAC to choose.

  • sudo python deauth.py -m XX:YY:AA:XX:YY:AA

    MAC address as command line argument. In this case, there is no need to sniff wifi.

What's new in version 3.1

  • Daemonize the attack i.e performs attack in background
  • Compatable to new airmon-ng version
  • Able to detect different wireless interface name(like wlp13s0)
  • Kill daemon option
  • Now you can get wifi networks with iwlist tool (Relatively faster)

Usage

root@ghost:/opt/scripts#./deauth.py -h
usage: deauth.py [-h] [-d] [-c COUNT] [-m MAC] [-w] [-k] [-v]

Sends deauthentication packets to a wifi network which results network outage
for connected devices. [Coded by VEERENDRA KAKUMANU]

optional arguments:
  -h, --help  show this help message and exit
  -d          Run as daemon
  -c COUNT    Stops the monitoring after this count reachs. By default it is
              2000
  -m MAC      Sends deauth packets to this network
  -w          Uses "iwlist" to get wifi hotspots list
  -k          Kills "Deauth Daemon" if it is running
  -v          show program's version number and exit

In Action

FAQ

  • What is the option -c "COUNT"?

    It is a threshold value to stop the "monitoring". The access point or wifi hotspot trasmits beacon frames periodically to announce it's presence. The beacon frame contains all the information about the network. Now, the script looks for these beacons and makes count. If the count reachs the limit, it will stops the monitoring.

    • If you think, the monoring is taking to much time? then specify the count with less number(Default is 2000), but it may not get all wifi hotspots near to you. Because you are listening only few beacons
  • What is the option -w "Uses "iwlist" to get wifi hotspots list"?

    Script runs iwlist wlan0 s and gets wifi networks near to you

  • What is the option -d "Run as daemon"?

    Script runs in background while attacking. (Use option -k to kill)

Known Issues

  • For some reasons, sometimes the script is not able to find all near wifi hotspots.(Use -w option)
  • If you try to attack on a wifi hotspot which is created by "Android" device, it won't work!.(May be it uses 802.11w)
  • Don't run the script with -w continously twice or more, you may get below error. If this is the case, restart network-manager; sudo service network-manager restart
    • wlp13s0 Interface doesn't support scanning : Device or resource busy

Get it!

wget -qO deauth.py https://goo.gl/bnsV9C

How to avoid Deauthentication attack?

Use 802.11w suppored routers. Know more about 802.11w and read cisco document

NOTE:

In order to work deauthentication attack successful, you should near to the target network. The deauth packets should reach the connected devices of the target network(s)

Blog: https://veerendra2.github.io/wifi-deathentication-attack/

More Repositories

1

raspberrypi-homeserver

A collection of applications and tools to make awesome Raspberry Pi homerserver
Shell
63
star
2

hacker-tools

aircrack-ng, kismet and ettercap in Docker
Dockerfile
26
star
3

my-utils

My scipts, code snippets, custom tools, tip & tricks πŸ”§
Python
7
star
4

pihole-dhcp-relay-docker

Pihole with DHCP relay in Docker
Shell
5
star
5

prometheus-k8s-monitoring

K8s Monitoring with Prometheus + cAdvisor DaemonSet
Python
5
star
6

searx-with-dnscrypt

Searx metadata search engine meets dnscrypt in Docker
Shell
5
star
7

funmotd

TV Shows, Movies Quotes MOTD for Bash 😎
Python
4
star
8

my-k8s-applications

My K8s Manifest Files and Dockerfiles
Shell
3
star
9

prepare-my-machine

IaC setup to install necessary packages πŸ“₯ and configure πŸ”§ my Ubuntu and MacOS πŸ’»
Shell
3
star
10

prepare-my-windows

IaC setup to install necessary packages and configure my Windows.
Batchfile
3
star
11

nordvpn-exporter

Simple NordVPN Prometheus Exporter πŸ’»
Python
3
star
12

k8s-the-hard-way-blog

Resource files for my blog - https://veerendra2.github.io/kubernetes-the-hard-way-1/
Shell
3
star
13

elasticsearch-deploy-notes

Elasticsearch deploy notes
Shell
2
star
14

dotfiles

dotfiles πŸ”΅
Shell
2
star
15

greet-me-flask-app

A demo app to demonstrate Github Actions CI/CD pipeline for deployment on Kubernetes (Minikube).
Python
2
star
16

flask-mongodb-app

A simple flask app, stores/retrieves joson in/from mongodb.
Python
2
star
17

azure-snapshots-copy

A Python script to copy azure disk snapshots to a specified region and automatically delete them upon expiration.
Python
2
star
18

ansible-role-prepare_dev_setup

Ansible role to install necessary packages and configure Ubuntu and MacOS.
Jinja
1
star
19

odoo-deployment-demo

A demo automation tools to deploy Odoo app on Minikube
Python
1
star
20

oracle-cloud-terraform

A simple IaC with terraform setup for Oracle Cloud (Always Free Tire)
HCL
1
star
21

port-dictionaries

Python dictionaries for HTTP status codes, FTP return codes and TCP ports, etc
Python
1
star
22

veerendra2.github.io

My Blog
HTML
1
star
23

init-my-mac

IaC setup to install necessary packages and configure my Mac.
Shell
1
star
24

velero-watchdog

A script to fetch failed Velero backups and triggers the backup manually
Python
1
star
25

docker-images

Automated docker images builds for various tools πŸ”§
Dockerfile
1
star