Coder Social home page Coder Social logo

wifidictator's Introduction

WiFi Dictator

Keeps Leeches At Bay

I was at a coworking space the other day and had massive troubles with slow internet. After looking over a couple of shoulders I realized that half of the crowd was watching Miley Cyrus videos on YouTube in full HD while the other half was seemingly downloading the very same videos. I got so pissed off that I went into rage mode and started to deauthenticate all of the people (except me of course) by hand. I wrote a dirty script to do this every minute. Unfair, I know. Then I thought I have to write something that would only kick the leeches who stream video or download torrents. I found a script that is doing exactly that. I modified it to automatically detect interfaces, MAC address etc..

The script puts your interface into monitor mode and inspects the network traffic with Airodump-ng. The results are written into a CSV file. Then it parses the CSV and grabs the MAC addresses of clients who are being stupid. The "stupidity" threshold is based on packet count over a defined period (Default is 200 pakets in 5 seconds, you might need to play with this a bit). We use some AWK fun to get this info, then launch Aireplay-ng to inject our deauth frames, and we'll also go ahead and spoof the MAC of the base station, because connected clients tend to ignore deauth frames not coming from there.

If you're having driver problems, I feel bad for you son. I got 99 chipsets but Broadcom ain't one.

Requirements

Usage

Clone the repo and change into directory:

$ git clone [email protected]:heyalexej/wifidictator.git
$ cd wifidictator

Run it like so:

$ sudo ./wifidictator.sh

This script is largely based on work from @ip2k which he published under CC BY-NC-SA 3.0.

wifidictator's People

Contributors

heyalexej avatar

Watchers

James Cloos avatar  avatar

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.