-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanon-mac.sh
83 lines (57 loc) · 1.83 KB
/
anon-mac.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
# Banner Display
echo " "
apt=$(sudo apt-get install figlet)
figlet -f slant.flf "Anon-Mac"
# Author Details
echo " Cretaed By KALMUX v1.0"
echo " Installing required packages for your system "
echo "This may take some time based on your Internet speed "
echo " "
#Intsalling Macchanger tool
tool=$(sudo apt-get install macchanger)
# Creating a support Directory
mkdir logs
# Storing details from ifconfig command to ifs.txt file
file=$(ifconfig -s > logs/infs.txt)
# grepping 2nd line wich contain interface value
INFC=$(awk 'NR == 2 {print $1}' logs/infs.txt > logs/main_inf.txt )
# storing interface name into cl var
cl=$(cat logs/main_inf.txt)
# showing current mac and permanent mac using macchanger
echo "-------------------------------------------------"
echo " Current Macc Address Details"
echo " "
sudo macchanger -s "$cl"
sleep 2s
echo "-------------------------------------------------"
echo " "
# Layer 1 Encryption
echo "-------------------------------------------------"
echo " Encrypting Your Macc Address ====> {Level 1}"
echo " "
sudo macchanger -r "$cl"
sleep 2s
echo "-------------------------------------------------"
echo " "
# Layer 2 Encryption
echo "-------------------------------------------------"
echo " Encrypting Your Macc Address ====> {Level 2}"
echo " "
sudo macchanger -r "$cl"
sleep 2s
echo "-------------------------------------------------"
echo " "
# Layer 3 Encryption
echo "-------------------------------------------------"
echo " Encrypting Your Macc Address ====> {Level 3}"
echo " "
sudo macchanger -r "$cl"
echo "-------------------------------------------------"
# Clearing logs
sudo rm -rf logs
# Exiting From The tool
echo " "
echo " "
echo " Thanks for using this tool "
echo " Hack daily "