From 2b456367d11478ed44a40497d82f8c7319dbf828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sch=C3=BCtz?= Date: Sat, 14 Jan 2017 12:18:43 +0100 Subject: [PATCH] Add files via upload --- kickthemout.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kickthemout.py b/kickthemout.py index 443c487..986c125 100644 --- a/kickthemout.py +++ b/kickthemout.py @@ -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 *