mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-21 20:44:25 +01:00
Merge branch 'k4m4-master'
This commit is contained in:
commit
32842f5b2b
@ -32,7 +32,7 @@ If you would like to install KickThemOut on a Mac, please run the following::
|
||||
|
||||
$ brew install libdnet scapy
|
||||
|
||||
Keep in mind that you might be asked to run some commands after executing the previous step. Moving on::
|
||||
**Keep in mind** that you might be asked to run some commands after executing the previous step. Moving on::
|
||||
|
||||
$ git clone https://github.com/k4m4/kickthemout.git
|
||||
|
||||
|
@ -69,7 +69,12 @@ def regenOnlineIPs():
|
||||
|
||||
def scanNetwork():
|
||||
global hostsList
|
||||
hostsList = scan.scanNetwork()
|
||||
try:
|
||||
hostsList = scan.scanNetwork()
|
||||
except:
|
||||
print("\n{0}ERROR: Network scanning failed. Please check your requirements configuration.{1}\n").format(RED, END)
|
||||
raise SystemExit
|
||||
|
||||
regenOnlineIPs()
|
||||
|
||||
def kickoneoff():
|
||||
@ -260,24 +265,12 @@ def getDefaultInterfaceMAC():
|
||||
getDefaultInterfaceMACManually = False
|
||||
try:
|
||||
defaultInterfaceMac = get_if_hwaddr(defaultInterface)
|
||||
|
||||
if defaultInterfaceMac == "" or not defaultInterfaceMac:
|
||||
getDefaultInterfaceMACManually = True
|
||||
else:
|
||||
return defaultInterfaceMac
|
||||
return defaultInterfaceMac
|
||||
except:
|
||||
getDefaultInterfaceMACManually = True
|
||||
|
||||
if getDefaultInterfaceMACManually:
|
||||
print("\n{0}{1}ERROR: Your Default Interface's ({2}" + defaultInterface + "{3}) MAC Address could not be obtained.\n\tPlease enter it manually.{4}\n").format(GREEN, RED, GREEN, RED, END)
|
||||
header = ("{0}kickthemout{1}> {2}{3}{4}'s MAC Address {5}(MM:MM:MM:SS:SS:SS): ".format(BLUE, WHITE, GREEN, defaultInterface, RED, END))
|
||||
try:
|
||||
defaultInterfaceMac = raw_input(header)
|
||||
return defaultInterfaceMac
|
||||
except KeyboardInterrupt:
|
||||
print('\n\n{0}Thanks for dropping by.'
|
||||
'\nCatch ya later!{1}').format(GREEN, END)
|
||||
raise SystemExit
|
||||
print("\n{0}ERROR: Default Interface MAC Address could not be obtained. Please enter MAC manually.{1}\n").format(RED, END)
|
||||
header = ('{0}kickthemout{1}> {2}Enter MAC Address {3}(MM:MM:MM:SS:SS:SS): '.format(BLUE, WHITE, RED, END))
|
||||
defaultInterfaceMac = raw_input(header)
|
||||
return defaultInterfaceMac
|
||||
|
||||
def resolveMac(mac):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user