-
Notifications
You must be signed in to change notification settings - Fork 3
/
macster.py
366 lines (358 loc) · 11.5 KB
/
macster.py
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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
import os, time
from colorama import init, Style, Fore
import ctypes
import requests
import json
cyan = Fore.LIGHTCYAN_EX
orange = Fore.YELLOW
red = Fore.RED
green = Fore.GREEN
reset = Style.RESET_ALL
bright = Style.BRIGHT
off = 'adb shell "su -c \'busybox ifconfig wlan0 down;\'"'
on = 'adb shell "su -c \'busybox ifconfig wlan0 up;\'"'
one = 'adb shell "su -c \'busybox ifconfig wlan0 hw ether '
two ='\'\"'
cmd = os.system
init()
def initialize():
cmd('echo on')
logo()
print(green, 'Checking if ADB Daemon is Running...')
time.sleep(0.3)
cmd('adb start-server')
logo()
print(green, 'ADB Daemon Running!')
time.sleep(0.5)
main()
def clear():
if os.name == 'nt':
cmd('cls')
else:
cmd('clear')
def logo():
clear()
cmd('mode con: cols=80 lines=40')
ctypes.windll.kernel32.SetConsoleTitleW("MACSTER | vx#1234")
print(bright, cyan + """
███╗ ███╗ █████╗ ██████╗███████╗████████╗███████╗██████╗
████╗ ████║██╔══██╗██╔════╝██╔════╝╚══██╔══╝██╔════╝██╔══██╗
██╔████╔██║███████║██║ ███████╗ ██║ █████╗ ██████╔╝
██║╚██╔╝██║██╔══██║██║ ╚════██║ ██║ ██╔══╝ ██╔══██╗
██║ ╚═╝ ██║██║ ██║╚██████╗███████║ ██║ ███████╗██║ ██║
╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
github.com/vx-dev/macster
""" + reset)
def error():
logo()
print("An error has occured, please ensure that you have ADB installed on your computer & BusyBox installed on your android device")
time.sleep(5)
main()
def main():
logo()
print("""
[""" + cyan + """1""" + reset + """] Mac Spoofer
[""" + cyan + """2""" + reset + """] Mac Checker
[""" + cyan + """3""" + reset + """] Mac Lookup
[""" + cyan + """4""" + reset + """] Exit
""")
mode = input('Mode: ')
if mode == '1':
spoofmenu()
elif mode == '2':
check()
elif mode == '3':
lookup()
elif mode == '4':
logo()
print(red, 'Stopping ADB Daemon...')
cmd('adb kill-server')
time.sleep(0.3)
logo()
print(red, 'ADB Daemon Stopped!')
time.sleep(0.5)
cmd('cls')
exit
else:
logo()
print("Error!")
time.sleep(0.6)
main()
def check():
try:
logo()
cmd('adb shell "su -c \'busybox iplink show wlan0\'"')
print("""
the first address is your phone\'s current mac address""")
time.sleep(5)
main()
except:
error()
def lookup():
logo()
print('Enter MAC Address')
mac = input('')
url = "https://mac-address-lookup1.p.rapidapi.com/static_rapid/mac_lookup/"
querystring = {"query":mac}
headers = {
'x-rapidapi-key': "871a5edf01msh02dee63a8bb4f38p108c2ajsn65e747eb0d08",
'x-rapidapi-host': "mac-address-lookup1.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers, params=querystring)
r = response.json()
if response.text == '{\"message\":\"You have exceeded the rate limit per second for your plan, BASIC, by the API provider\"}':
logo()
print(orange, "You're being rate limited!", reset)
time.sleep(1.3)
lookup()
elif response.text == '{"message":"You have exceeded the DAILY quota for Requests on your current plan, BASIC. Upgrade your plan at https:\/\/rapidapi.com\/softrix-technologies-dnschecker\/api\/mac-address-lookup1"}':
logo()
print(red, "Current api key is locked for 24h, try again with a different key & ip address!", reset)
lookup1()
else:
logo()
print("MAC Address: "+mac)
for i in 'name', 'address':
print(f"{i.capitalize()}:{r['result'][0][i]}")
c = input('Press Any Key to Continue')
if c == 'a':
main()
else:
main()
def lookup1():
logo()
print('Enter MAC Address')
mac = input('')
url = "https://mac-address-lookup1.p.rapidapi.com/static_rapid/mac_lookup/"
querystring = {"query":mac}
headers = {
'x-rapidapi-key': "c25faacaaamsh53b22411edd67e9p199c6bjsn387094dd33c1",
'x-rapidapi-host': "mac-address-lookup1.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers, params=querystring)
r = response.json()
if response.text == '{\"message\":\"You have exceeded the rate limit per second for your plan, BASIC, by the API provider\"}':
logo()
print(orange, "You're being rate limited!", reset)
time.sleep(1.3)
lookup()
elif response.text == '{"message":"You have exceeded the DAILY quota for Requests on your current plan, BASIC. Upgrade your plan at https:\/\/rapidapi.com\/softrix-technologies-dnschecker\/api\/mac-address-lookup1"}':
logo()
print(red, "All keys are locked, try again later.", reset)
time.sleep(3)
main()
else:
logo()
print("MAC Address: "+mac)
for i in 'name', 'address':
print(f"{i.capitalize()}:{r['result'][0][i]}")
def spoofmenu():
logo()
print("""
[""" + cyan + """1""" + reset + """] Custom Mac Address
[""" + cyan + """2""" + reset + """] Preset Mac Address
[""" + cyan + """3""" + reset + """] Automatic (Spoofs Your Mac Address Every 15 Minutes)
[""" + cyan + """4""" + reset + """] Go Back
""")
mode = input('Mode: ')
if mode == '1':
customspoof()
elif mode == '2':
presetspoof()
elif mode == '3':
autospoof()
elif mode == '4':
main()
def customspoof():
try:
logo()
mac = input('Mac Address: ')
cmd(on)
cmd(one+mac+two)
cmd(off)
logo()
print("Spoofing Finished!")
print("your device might not display the proper mac address if you're unsure run the mac address checker")
time.sleep(3)
main()
except:
print("An error has occured, please ensure that you have ADB installed on your computer & BusyBox installed on your android device")
time.sleep(5)
main()
def presetspoof():
logo()
print("""
[""" + cyan + """1""" + reset + """] 64:b5:c6:23:d4:fa
[""" + cyan + """2""" + reset + """] 00:50:c2:8c:dd:38
[""" + cyan + """3""" + reset + """] b0:fd:0b:4c:30:bc
[""" + cyan + """4""" + reset + """] 70:b3:d5:aa:e6:95
[""" + cyan + """5""" + reset + """] f4:62:d0:7e:05:72
""")
choice = input('')
if choice == '1':
try:
mac = "64:b5:c6:23:d4:fa"
cmd(off)
cmd(one+mac+two)
cmd(on)
print("Spoofing Finished!")
print("your device might not display the proper mac address if you're unsure run the mac address checker")
time.sleep(3)
main()
except():
error()
elif choice == '2':
try:
mac = "00:50:c2:8c:dd:38"
cmd(off)
cmd(one+mac+two)
cmd(on)
logo()
print("Spoofing Finished!")
print("your device might not display the proper mac address if you're unsure run the mac address checker")
time.sleep(3)
main()
except:
error()
elif choice == '3':
try:
mac = "b0:fd:0b:4c:30:bc"
cmd(on)
cmd(one+mac+two)
cmd(off)
logo()
print("Spoofing Finished!")
print("your device might not display the proper mac address if you're unsure run the mac address checker")
time.sleep(3)
main()
except:
error()
elif choice == '4':
try:
mac = "70:b3:d5:aa:e6:95"
cmd(on)
cmd(one+mac+two)
cmd(off)
logo()
print("Spoofing Finished!")
print("your device might not display the proper mac address if you're unsure run the mac address checker")
time.sleep(3)
main()
except:
error()
elif choice == '5':
try:
mac = "f4:62:d0:7e:05:72"
cmd(on)
cmd(one+mac+two)
cmd(off)
logo()
print("Spoofing Finished!")
print("your device might not display the proper mac address if you're unsure run the mac address checker")
time.sleep(3)
main()
except:
error()
def autospoof():
mac1 = "00:50:c2:76:96:b9"
mac2 = "f0:de:f1:89:6e:25"
mac3 = "98:ae:71:6f:1f:a9"
mac4 = "d8:86:0b:2a:0d:25"
mac5 = "00:50:8b:71:bd:57"
mac6 = "70:b3:d5:ad:2f:6d"
mac7 = "00:01:6f:c1:8c:9d"
mac8 = "00:0c:7f:f5:74:c7"
mac9 = "00:e0:88:f5:d9:00"
mac10 = "44:7e:95:db:be:89"
mac11 = "00:17:e5:fb:42:f3"
mac12 = "28:31:66:ad:d9:2b"
mac13 = "00:90:93:5d:c6:1d"
mac14 = "ac:a4:6e:69:2c:c6"
mac15 = "00:19:d6:a7:a1:9e"
spoofed = "Spoofed MAC Address!"
loopstart = "~ Start of Loop ~"
loopend = "~ End of Loop ~"
try:
logo()
print(orange, loopstart)
cmd(off)
cmd(one+mac1+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac2+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac3+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac4+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac5+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac6+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac7+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac8+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac9+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac10+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac11+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac12+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac13+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac14+two)
cmd(on)
print(green, spoofed)
time.sleep(4.8)
cmd(off)
cmd(one+mac15+two)
cmd(on)
print(green, spoofed)
print(orange, loopend)
time.sleep(4.8)
autospoof()
except:
cmd(on)
error()
initialize()