-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac_changer.py
30 lines (23 loc) · 1.84 KB
/
mac_changer.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
inport subprocess
print(" __ __ ______ ______ ______ __ ")
print("/ \ / | / \ / \ / \ / | ")
print("$$ \ /$$ |/$$$$$$ |/$$$$$$ | /$$$$$$ |$$ |____ ______ _______ ______ ______ ")
print("$$$ \ /$$$ |$$ |__$$ |$$ | $$/ $$ | $$/ $$ \ / \ / \ / \ / \ ")
print("$$$$ /$$$$ |$$ $$ |$$ | $$ | $$$$$$$ | $$$$$$ |$$$$$$$ |/$$$$$$ |/$$$$$$ |")
print("$$ $$ $$/$$ |$$$$$$$$ |$$ | __ $$ | __ $$ | $$ | / $$ |$$ | $$ |$$ | $$ |$$ $$ |")
print("$$ |$$$/ $$ |$$ | $$ |$$ \__/ | $$ \__/ |$$ | $$ |/$$$$$$$ |$$ | $$ |$$ \__$$ |$$$$$$$$/ ")
print("$$ | $/ $$ |$$ | $$ |$$ $$/ $$ $$/ $$ | $$ |$$ $$ |$$ | $$ |$$ $$ |$$ |")
print("$$/ $$/ $$/ $$/ $$$$$$/ $$$$$$/ $$/ $$/ $$$$$$$/ $$/ $$/ $$$$$$$ | $$$$$$$/ ")
print(" / \__$$ | ")
print(" $$ $$/ ")
print(" $$$$$$/ ")
print(" By SAVINDU DESHAN ")
name = input("Enter the your name: ")
interface = input("Enter the interface name: ")
new_mac = input("Enter the new MAC address: ")
print("[+] Changing MAC address for " + interface + " to " + new_mac)
subprocess.call(["ifconfig", interface, "down"])
subprocess.call(["ifconfig", interface, "hw", "ether", new_mac])
subprocess.call(["ifconfig", interface, "up"])
print("Hello " + name + " :) ")
print("[+] MAC address changed successfully.")