mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-02-16 23:54:01 +01:00
Update kickthemout.py
This commit is contained in:
parent
2aa39a3f26
commit
a9b16b480a
@ -9,14 +9,18 @@ See License at nikolaskama.me (https://nikolaskama.me/kickthemoutproject)
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import time, os, sys, logging, math
|
import time, os, sys, logging, math
|
||||||
import scan, spoof
|
|
||||||
from time import sleep
|
from time import sleep
|
||||||
import urllib2 as urllib
|
import urllib2 as urllib
|
||||||
|
|
||||||
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) # Shut up scapy!
|
|
||||||
from scapy.all import *
|
|
||||||
|
|
||||||
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!
|
||||||
|
try:
|
||||||
|
from scapy.all import *
|
||||||
|
import scan, spoof
|
||||||
|
except:
|
||||||
|
print("\n{0}ERROR: Requirements have not been properly satisfied. Please try running:\n\t{1}$ sudo pip install -r requirements.txt{2}").format(RED, GREEN, END)
|
||||||
|
print("\n{0}If you still get the same error, please submit an issue here:\n\t{1}https://github.com/k4m4/kickthemout/issues/\n{2}").format(RED, BLUE, END)
|
||||||
|
raise SystemExit
|
||||||
|
|
||||||
def heading():
|
def heading():
|
||||||
sys.stdout.write(GREEN + """
|
sys.stdout.write(GREEN + """
|
||||||
@ -131,7 +135,7 @@ def kicksomeoff():
|
|||||||
some_targets = choice.split(",")
|
some_targets = choice.split(",")
|
||||||
canBreak = True
|
canBreak = True
|
||||||
else:
|
else:
|
||||||
print("\n{0}ERROR: Please select more than 1 devices from the list.{2}\n").format(RED, END)
|
print("\n{0}ERROR: Please select more than 1 devices from the list.{1}\n").format(RED, END)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -284,7 +288,7 @@ def main():
|
|||||||
elif choice.upper() == 'CLEAR':
|
elif choice.upper() == 'CLEAR':
|
||||||
os.system("clear||cls")
|
os.system("clear||cls")
|
||||||
else:
|
else:
|
||||||
print("\n{0}ERROR: Please select a valid option.{2}\n").format(RED, END)
|
print("\n{0}ERROR: Please select a valid option.{1}\n").format(RED, END)
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('\n\n{0}Thanks for dropping by.'
|
print('\n\n{0}Thanks for dropping by.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user