Add files via upload

This commit is contained in:
David Schütz 2017-01-14 12:18:43 +01:00 committed by GitHub
parent 52d4839655
commit 2b456367d1

View File

@ -18,10 +18,12 @@ logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # Shut up scapy!
try:
if os.geteuid() != 0:
print("\n{0}ERROR: KickThemOut must run as root. Try again with sudo/root:\n\t{1}$ sudo python kickthemout.py{2}\n").format(RED, GREEN, END)
raise SystemExit
notRoot = True
except:
# User is probably on windows
pass
if notRoot:
raise SystemExit
try:
from scapy.all import *