-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacip.sh
228 lines (207 loc) · 7.78 KB
/
macip.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
#!/bin/bash
# Define a banner function
display_banner() {
clear
# Define color codes
ORANGE='\033[38;5;208m' # Orange color in 256-color mode
RESET='\033[0m' # Reset to default color
# Function to print the banner with shadow effect
print_banner() {
echo -e "${ORANGE} ${RESET}"
echo -e "${ORANGE} ███╗ ███╗ █████╗ ██████╗██╗██████╗ ${RESET}"
echo -e "${ORANGE} ████╗ ████║██╔══██╗██╔════╝██║██╔══██╗${RESET}"
echo -e "${ORANGE} ██╔████╔██║███████║██║ ██║██████╔╝${RESET}"
echo -e "${ORANGE} ██║╚██╔╝██║██╔══██║██║ ██║██╔═══╝ ${RESET}"
echo -e "${ORANGE} ██║ ╚═╝ ██║██║ ██║╚██████╗██║██║ ${RESET}"
echo -e "${ORANGE} ${RESET}"
echo -e "${ORANGE} =============================================================${RESET}"
echo -e " 𝕍𝕖𝕣𝕤𝕚𝕠𝕟 : 2.0 𝕋𝕨𝕚𝕥𝕥𝕖𝕣 : anishalx7 "
echo -e "${ORANGE} =============================================================${RESET}"
}
# Print the banner
print_banner
# Add a line of text below the banner
echo -e "${ORANGE} START YOUR ANONYMOUS LIFE ...${RESET}"
echo -e "${ORANGE} [+] NOTE: Auto IP address change in every 5 minutes will be coming soon [+]
${RESET}"
}
# Call the banner function
display_banner
# Define the names of the Python tools
TOOLS=(
"[+] MAC address change [+]" # 01_mac_changer.py
"[+] auto MAC address change [+]" # 02_auto_mac_changer.py
"[+] IP address change [+]" # 03_ip_changer.py
"[+] auto IP address change [+]" # 04_auto_ip_changer.py
"[+] MAC address and IP address change [+]" # 05_macip_changer.py
"[+] auto MAC address and IP address change [+]" # 06_auto_macip_changer.py
)
# Define the Python files corresponding to the tool names
FILES=(
"tools/01_mac_changer.py"
"tools/02_auto_mac_changer.py"
"tools/03_ip_changer.py"
"tools/04_auto_ip_changer.py"
"tools/05_macip_changer.py"
"tools/06_auto_macip_changer.py"
)
# Function to show the main menu
main_menu() {
# Move cursor to row 12 (or adjust as needed) to ensure it starts below the banner
tput cup 12 0
echo "Main Menu"
echo ""
echo " ${#TOOLS[@]} tools loaded"
echo ""
echo "Available Tools:"
for i in "${!TOOLS[@]}"; do
printf " %d) %s\n" $((i+1)) "${TOOLS[$i]}"
done
echo ""
echo "Available Commands:"
echo " exit Completely exit MacIP"
echo " info # Information on a specific tool"
echo " list List available tools"
echo " options Show MacIP configuration"
echo " update Update MacIP"
echo " use # Use a specific tool by its number"
echo ""
read -p "Enter command: " command args
}
# Function to display information about a specific tool
tool_info() {
if [[ -z "$args" ]]; then
echo "Usage: info <tool_number>"
echo "Example: info 1"
echo "This command provides information on a specific tool."
return
fi
case $args in
1)
echo "[+] MAC address change [+]:"
echo "This tool allows you to manually change the MAC address of your network interface."
echo "Usage: Enter your network interface and new MAC address to spoof a new MAC."
;;
2)
echo "[+] auto MAC address change [+]:"
echo "Automatically changes your MAC address to a random one at intervals."
echo "Usage: Enter your network interface, and the tool will randomly select a new MAC address."
;;
3)
echo "[+] IP address change [+]:"
echo "Manually change the IP address of your network interface."
echo "Usage: Enter your network interface and new IP address to set."
;;
4)
echo "[+] auto IP address change [+]:"
echo "Automatically changes your IP address to a random one at intervals."
echo "Usage: Enter your network interface, and the tool will randomly assign a new IP address."
;;
5)
echo "[+] MAC address and IP address change [+]:"
echo "Manually change both MAC and IP address of your network interface."
echo "Usage: Enter your network interface, MAC address, and IP address."
;;
6)
echo "[+] auto MAC address and IP address change [+]:"
echo "Automatically changes both your MAC and IP address at intervals."
echo "Usage: Enter your network interface, and the tool will randomly assign new values for both."
;;
*)
echo "Invalid tool number. Please choose a valid tool number from the list."
;;
esac
}
# Function to list available tools
list_tools() {
echo "Available Tools:"
for i in "${!TOOLS[@]}"; do
printf " %d) %s\n" $((i+1)) "${TOOLS[$i]}"
done
}
# Function to show MacIP options
show_options() {
echo "MacIP Configuration Options:"
echo " 1) MAC address change:"
echo " - Allows you to change your MAC address manually."
echo " 2) Auto MAC address change:"
echo " - Automatically assigns a random MAC address."
echo " 3) IP address change:"
echo " - Change your IP address manually."
echo " 4) Auto IP address change:"
echo " - Randomly assigns a new IP address at regular intervals."
echo " 5) MAC and IP address change:"
echo " - Allows you to manually change both MAC and IP."
echo " 6) Auto MAC and IP address change:"
echo " - Automatically assigns both new MAC and IP address at intervals."
}
# Function to run a specific tool
run_tool() {
if [[ -z "$args" ]]; then
echo "Usage: use <tool_number>"
echo "Example: use 1"
echo "Please specify the tool number to use. Type 'list' to see available tools."
return
fi
if [[ "$args" =~ ^[0-9]+$ ]] && [[ "$args" -gt 0 && "$args" -le ${#TOOLS[@]} ]]; then
tool_number=$args
user_inputs=$(get_user_inputs "$tool_number")
python3 "${FILES[$((tool_number-1))]}" $user_inputs || {
echo "An error occurred while running the tool. Please check your inputs."
}
else
echo "Invalid tool number. Please choose a valid tool number from the list."
fi
}
# Function to prompt the user for additional inputs (interface, IP, or MAC address)
get_user_inputs() {
local tool_number=$1
local params=""
if [[ "$tool_number" -eq 1 || "$tool_number" -eq 2 || "$tool_number" -eq 4 || "$tool_number" -eq 5 || "$tool_number" -eq 6 ]]; then
read -p "Enter network interface (e.g., wlan0, eth0): " interface
params="$params -i $interface"
fi
if [[ "$tool_number" -eq 1 || "$tool_number" -eq 5 ]]; then
read -p "Enter MAC address (e.g., 00:11:22:33:44:55): " mac
params="$params -m $mac"
fi
if [[ "$tool_number" -eq 3 || "$tool_number" -eq 5 ]]; then
read -p "Enter IP address (e.g., 192.168.1.100): " ip
params="$params -ip $ip"
fi
echo "$params"
}
# Function to update MacIP (placeholder for future implementation)
update_macip() {
echo "Updating MacIP... (This is a placeholder for the actual update process.)"
}
# Main loop
while true; do
main_menu
case $command in
exit)
echo "Exiting MacIP."
exit 0
;;
info)
tool_info
;;
list)
list_tools
;;
options)
show_options
;;
update)
update_macip
;;
use)
run_tool
;;
*)
echo "Invalid command. Please try again."
;;
esac
echo ""
read -p "Press Enter to return to the main menu..."
done