def mac_changer(self):
    """
    Cambia la MAC del dispositivo ante un bloqueo del AP
    """
    
    print INFO + "Cambiando direccion MAC del dispositivo..."
    system('ifconfig %s down' %c.IFACE_MON)
    system(c.IFACE_MON %'iwconfig %s mode Managed')
    system('ifconfig %s up' %c.IFACE_MON)
    system('ifconfig %s down' %c.IFACE_MON)
    mac = subprocess.check_output(['macchanger','-r',c.IFACE_MON])
    mac = mac.split('\n')[2]
    mac = sub('New       MAC\: ','',mac.strip())
    mac = sub(' \(unknown\)','',mac)
    system('ifconfig %s up' %c.IFACE_MON)
    system('ifconfig %s down' %c.IFACE_MON)
    system('iwconfig %s mode monitor' %c.IFACE_MON)
    system('ifconfig %s up' %c.IFACE_MON)
    print INFO + "Se cambio la MAC a una nueva: %s%s" %(INPUT,mac.upper())
dataset/ETHPy150Open jgilhutton/pyxiewps_WPShack-Python/Version-1.0/pyxiewps-ES-sin Aircrack.py/Engine.mac_changer/swapped operands of `%`