mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 21:14:25 +01:00
Add files via upload
This commit is contained in:
parent
52d4839655
commit
2b456367d1
@ -18,10 +18,12 @@ logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # Shut up scapy!
|
|||||||
try:
|
try:
|
||||||
if os.geteuid() != 0:
|
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)
|
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:
|
except:
|
||||||
# User is probably on windows
|
# User is probably on windows
|
||||||
pass
|
pass
|
||||||
|
if notRoot:
|
||||||
|
raise SystemExit
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from scapy.all import *
|
from scapy.all import *
|
||||||
|
Loading…
Reference in New Issue
Block a user