Root check

This commit is contained in:
David Schütz 2017-01-20 14:58:05 +01:00 committed by GitHub
parent 09c25bd891
commit 30e9a41b4a
1 changed files with 1 additions and 1 deletions

View File

@ -11,6 +11,7 @@ See License at nikolaskama.me (https://nikolaskama.me/kickthemoutproject)
import time, os, sys, logging, math import time, os, sys, logging, math
from time import sleep from time import sleep
import urllib2 as urllib 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'
notRoot = False notRoot = False
try: try:
@ -23,7 +24,6 @@ except:
if notRoot: if notRoot:
raise SystemExit raise SystemExit
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: try:
from scapy.all import * from scapy.all import *