KB

import subprocess import re import optparse def change_mac(interface,new_mac): print("[+] Changing MAC address of Interface" + interface + "to" +new_mac) subprocess.call(["ifconfig", interface,"down"]) subprocess.call(["ifconfig", interface, "hw", "ether", new_mac]) subprocess.call(["ifconfig", interface, "up"]) def get_arg(): parser = optparse.OptionParser() parser.add_option('-i', dest='interface', help="Please Enter the Interface name for which You want to change...