-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSilvrMist.sh
41 lines (35 loc) · 1.26 KB
/
SilvrMist.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
41
#!/bin/bash
#Needs to run as root!!
if [[ $EUID -ne 0 ]]; then
echo "ERROR! Run this script with root user!"
exit 1
fi
echo " _______ __ __ ___ ___ __ __ "
echo " | _ |__| .--.--.----| Y |__.-----| |_ "
echo " | 1___| | | | | _|. | |__ --| _|"
echo " |____ |__|__|\___/|__| |. \_/ |__|_____|____|"
echo " |: 1 | |: | | "
echo " |::.. . | |::.|:. | "
echo " |-------' |--- ---' "
echo " Version 1.1"
echo " Coded by: Blkzer0 "
echo ""
echo "Installing dhcpcd required to run this script"
sleep 1
apt-get install dhcpcd5 macchanger
echo " You're ip is:"
curl ipinfo.io/ip
sleep 1
echo "Checking Interface.." #target interface should be of your LAN such as eth0.
iwconfig
read -p "what is the lan interface?" interface
ifconfig $interface down
macchanger -r $interface
ifconfig $interface up
echo "interface has been changed"
read -p "Input a valid ip:" ip #()
dhcpcd -k $interface ; sleep 1s; dhcpcd -r $ip -l 1000 $interface
echo "Verifying ip has been changed"
echo " You're ip is:"
curl ipinfo.io/ip
exit