mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-07-04 04:18:15 +02:00
Add files via upload
This commit is contained in:
parent
a904948af1
commit
52d4839655
1 changed files with 7 additions and 3 deletions
|
@ -15,9 +15,13 @@ import urllib2 as urllib
|
||||||
BLUE, RED, WHITE, YELLOW, MAGENTA, GREEN, END = '\33[94m', '\033[91m', '\33[97m', '\33[93m', '\033[1;35m', '\033[1;32m', '\033[0m'
|
BLUE, RED, WHITE, YELLOW, MAGENTA, GREEN, END = '\33[94m', '\033[91m', '\33[97m', '\33[93m', '\033[1;35m', '\033[1;32m', '\033[0m'
|
||||||
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # Shut up scapy!
|
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # Shut up scapy!
|
||||||
|
|
||||||
|
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
|
raise SystemExit
|
||||||
|
except:
|
||||||
|
# User is probably on windows
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from scapy.all import *
|
from scapy.all import *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue