mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-02-16 15:43:57 +01:00
Update kickthemout.py
This commit is contained in:
parent
d89627ab80
commit
8fe636dd62
@ -32,7 +32,6 @@ def heading():
|
|||||||
YELLOW, RED, YELLOW, BLUE).center(111) +
|
YELLOW, RED, YELLOW, BLUE).center(111) +
|
||||||
'\n' + 'Version: {0}0.1{1}\n'.format(YELLOW, END).center(86))
|
'\n' + 'Version: {0}0.1{1}\n'.format(YELLOW, END).center(86))
|
||||||
|
|
||||||
|
|
||||||
def optionBanner():
|
def optionBanner():
|
||||||
print('\nChoose option from menu:\n')
|
print('\nChoose option from menu:\n')
|
||||||
sleep(0.2)
|
sleep(0.2)
|
||||||
@ -44,7 +43,6 @@ def optionBanner():
|
|||||||
sleep(0.2)
|
sleep(0.2)
|
||||||
print('\n\t{0}[{1}E{2}]{3} Exit KickThemOut\n').format(YELLOW, RED, YELLOW, WHITE)
|
print('\n\t{0}[{1}E{2}]{3} Exit KickThemOut\n').format(YELLOW, RED, YELLOW, WHITE)
|
||||||
|
|
||||||
|
|
||||||
def regenOnlineIPs():
|
def regenOnlineIPs():
|
||||||
global onlineIPs
|
global onlineIPs
|
||||||
global defaultGatewayMac
|
global defaultGatewayMac
|
||||||
@ -59,7 +57,6 @@ def scanNetwork():
|
|||||||
hostsList = scan.scanNetwork()
|
hostsList = scan.scanNetwork()
|
||||||
regenOnlineIPs()
|
regenOnlineIPs()
|
||||||
|
|
||||||
|
|
||||||
def kickoneoff():
|
def kickoneoff():
|
||||||
os.system("clear||cls")
|
os.system("clear||cls")
|
||||||
|
|
||||||
@ -211,7 +208,6 @@ def kickalloff():
|
|||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
print("{0}Re-arped{1} targets successfully.{2}").format(RED, GREEN, END)
|
print("{0}Re-arped{1} targets successfully.{2}").format(RED, GREEN, END)
|
||||||
|
|
||||||
|
|
||||||
def getDefaultInterface():
|
def getDefaultInterface():
|
||||||
def long2net(arg):
|
def long2net(arg):
|
||||||
if (arg <= 0 or arg >= 0xFFFFFFFF):
|
if (arg <= 0 or arg >= 0xFFFFFFFF):
|
||||||
@ -257,7 +253,7 @@ def main():
|
|||||||
|
|
||||||
print(
|
print(
|
||||||
"\n{0}Using interface '{1}" + defaultInterface + "{2}' with mac address '{3}" + defaultInterfaceMac + "{4}'.\nGateway IP: '{5}"
|
"\n{0}Using interface '{1}" + defaultInterface + "{2}' with mac address '{3}" + defaultInterfaceMac + "{4}'.\nGateway IP: '{5}"
|
||||||
+ defaultGatewayIP + "{6}'. {7}" + str(len(hostsList)) + "{8} hosts are up.{9}").format(GREEN, RED, GREEN, RED, GREEN,
|
+ defaultGatewayIP + "{6}' --> {7}" + str(len(hostsList)) + "{8} hosts are up.{9}").format(GREEN, RED, GREEN, RED, GREEN,
|
||||||
RED, GREEN, RED, GREEN, END)
|
RED, GREEN, RED, GREEN, END)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user