#!/usr/bin/env python # ###################################################### # FuCkMAC.py is a script to change the MAC addres # on *nix using 'ifconfig' tool.. # # D4wFl1N[at]deadc0de[dot]or[dot]id ###################################################### # #
for o, a in opts: if o == "-h": Usage() sys.exit(0) elif o == "-l": print "Available interfaces :" for device_name in interfaces: print device_name sys.exit(0) elif o == "-i": Interface = a for device_name in interfaces: if Interface not in interfaces: print "[-]",Interface,"is invalid interface." sys.exit(0) print "[*] Interface:", Interface elif o == "-a": Address = a if len(Address) != 17: print "[-] \"",Address,"\" is invalid MAC address." sys.exit(0) print "[*] FuCk MACaddr:", Address else: assert False, "unhandled option"
if len(Address) < 1: print "[-] You have to enter the fuCk MAC address try '%s -h' for help" % (sys.argv[0]) sys.exit(0) elif len(Interface) < 1: print "[-] You have to enter the interface name try '%s -h' for help" % (sys.argv[0]) sys.exit(0)
0 comments:
Post a Comment