Thursday, 23 October 2014

Bash Script for automated Deauth on 802.11

Just something that I wrote couple of months ago. This script requires "Aircrack-ng" suite for it to work.


Code:

#!/bin/bash 
#Author: Amin
#Purpose: To collect mac addresses of clients connected to an access point and deauth unwanted clients on the access point.
#Requirements: aircrack-ng suite

###Declaring all the variables used####
infofile=infodump
macsfile=macs
wlan_interface=wlan1
monitor_interface=mon0
target_station="bssid of the target station"
ch="Channel Here"
user=`whoami`
mymac="Your mac here"
num_clients=0
count=0
current_interface_num=0
###END of Variables Declaration###