-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWMRanger.py
65 lines (54 loc) · 1.91 KB
/
WMRanger.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
#!/usr/bin/python
#WMRanger --> Python Script for changing mac address on linux systems
#By Seekersoft
#requires python2.7
import os
import sys
from changer import *
from timer import *
from color import *
if sys.platform == 'win32':
print(color.Red + "Sorry you are not compatible")
else:
os.system("clear")
print(color.Blue + "\n/* Welcome to WMRanger\n\tBy Seekersoft */\n")
writeMac = ''
# parse the command-line arguments, set global variables
def parse(args):
global writeMac
i = 0
while i < len(args):
# charsets args
if args[i] == '-b':
sysBurnMac()
elif args[i] == '-m':
sysWriteMac()
elif args[i] == '-t':
timer('t')
elif args[i] == '-br':
timer('br')
# help args
elif args[i] == '-h':
help()
sys.exit(0)
i += 1
if len(args) == 0:
help()
exit(1)
#help
def help():
print(color.Blue + '''
\t[+]Welcome to WMRanger[+]\n\t\t\t\t[+]By Seekersoft[+]\n
Usage:
WMRanger.py -b --> [Pretend to be a burned in address]
WMRanger.py -m XX:XX:XX:XX:XX:XX --> [Write your own MAC XX:XX:XX:XX:XX:XX]
WMRanger.py -t time [Specify the time in minutes for changing the Mac]
WMRanger.py -br [Specify the first three octals of the random mac]
WMRanger.py -h --> [for the help menu]
Note: You have to be logged in as root
Shutdown: Press Ctrl+c
''')
#main
def main():
parse(sys.argv[1:])
main()