-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmacchanger.sh
More file actions
39 lines (25 loc) · 725 Bytes
/
macchanger.sh
File metadata and controls
39 lines (25 loc) · 725 Bytes
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
#!/bin/bash
#Automated macchanger script
wlanDOWN=$(ifconfig wlan0 down)
change_mac=$(macchanger -r wlan0)
wlanUP=$(ifconfig wlan0 up)
verify=$(macchanger --show wlan0)
network_connect=$(sudo service network-manager start)
progress[0]="-"
progress[1]="\\"
progress[2]="|"
progress[3]="/"
printf "%s\n" "$wlanDOWN"
printf "%s\n" "$change_mac"
printf "%s\n" "$wlanUP"
printf "%s\n" "$verify"
printf "%s\n" "To return to permanent mac address type 'macchanger --permanent <interface name>
printf "%s\n" "$network_connect"
echo -n "[Reconnecting ] ${progress[0]}"
for i in "${progress[@]}"
do
(echo -ne "\b$i" & sleep 1 & wait)
done
printf "%s\n"
echo "You are now connected"
echo "Ready to spoof IP Addr: "