()
Changes MAC address back to what it was before attacks began.
Changes MAC address back to what it was before attacks began.
Changes MAC address back to what it was before attacks began .
def mac_change_back():
    """
        Changes MAC address back to what it was before attacks began.
    """
    global RUN_CONFIG
    iface = RUN_CONFIG.ORIGINAL_IFACE_MAC[0]
    old_mac = RUN_CONFIG.ORIGINAL_IFACE_MAC[1]
    if iface == '' or old_mac == '': return
    
    print GR+" [+]"+W+" changing %s's mac back to %s..." % (G+iface+W, G+old_mac+W),
    stdout.flush()
    
    call(['ifconfig', iface, 'down'], stdout=DN, stderr=DN)
    proc = Popen(['ifconfig', iface, 'hw', 'ether', old_mac], stdout=PIPE, stderr=DN)
    proc.wait()
    call(['ifconfig', iface, 'up'], stdout=DN, stderr=DN)
    print "done"
def mac_change_back ( ) : global RUN_CONFIG iface = RUN_CONFIG . ORIGINAL_IFACE_MAC [ 0 ] old_mac = RUN_CONFIG . ORIGINAL_IFACE_MAC [ 1 ] if iface == '' or old_mac == '' : return print GR + " [+]" + W + " changing %s's mac back to %s..." % ( G + iface + W , G + old_mac + W ) , stdout . flush ( ) call ( [ 'ifconfig' , iface , 'down' ] , stdout = DN , stderr = DN ) proc = Popen ( [ 'ifconfig' , iface , 'hw' , 'ether' , old_mac ] , stdout = PIPE , stderr = DN ) proc . wait ( ) call ( [ 'ifconfig' , iface , 'up' ] , stdout = DN , stderr = DN ) print "done"