#!/bin/bash

##crackIt v 0.7
##Usage: crackIt <.cap / .ivs file> <ESSID>
##http://www.samurainet.org/blog/2008/11/15/crackit-aircrack-ng-automated/
##crackIt uses aircrack-ng to break WEP using 20 different variations.
##Todo for version 1.0:
##1>we don't want to scroll up to see if we cracked it already, need to
##find a way to halt on a sucessful run
##2>add in input sanitation/help dialog/UI/etc (make it look good)
##3>add allowance for multiple .cap or .ivs files
##Future features:
##+>WPA cracking
##+>multiproc support
##+>usage of the 'static wep' options??


##First we try the standard attacks, but we lower the fudge factor
aircrack-ng -f 1 -s $1 -e $2

##This is the standard attack
aircrack-ng -f 2 -s $1 -e $2

##Sometimes the Korek methods generate a large number of false postives.
##We disable one at a time to eliminate this possibility
for((i=1;i<18;i+=1)); do
aircrack-ng -k $i -s $1 -e $2
done

##This is an experimental single brute-force attack. It should only be 
used
##with one-million or more IVs.
aircrack-ng -s -y $1 -e $2
