mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-25 14:34:23 +01:00
commit
c23b7853f8
@ -30,9 +30,7 @@ If you would like to install KickThemOut on a Mac, please run the following::
|
|||||||
|
|
||||||
$ sudo pip install pcapy
|
$ sudo pip install pcapy
|
||||||
|
|
||||||
$ brew install libdnet
|
$ brew install libdnet scapy
|
||||||
|
|
||||||
$ brew install 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::
|
||||||
|
|
||||||
|
@ -256,6 +256,16 @@ def getGatewayIP():
|
|||||||
gatewayIP = raw_input(header)
|
gatewayIP = raw_input(header)
|
||||||
return gatewayIP
|
return gatewayIP
|
||||||
|
|
||||||
|
def getDefaultInterfaceMAC():
|
||||||
|
try:
|
||||||
|
defaultInterfaceMac = get_if_hwaddr(defaultInterface)
|
||||||
|
return defaultInterfaceMac
|
||||||
|
except:
|
||||||
|
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):
|
def resolveMac(mac):
|
||||||
try:
|
try:
|
||||||
url = "http://macvendors.co/api/vendorname/"
|
url = "http://macvendors.co/api/vendorname/"
|
||||||
@ -324,7 +334,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
defaultInterface = getDefaultInterface()
|
defaultInterface = getDefaultInterface()
|
||||||
defaultGatewayIP = getGatewayIP()
|
defaultGatewayIP = getGatewayIP()
|
||||||
defaultInterfaceMac = get_if_hwaddr(defaultInterface)
|
defaultInterfaceMac = getDefaultInterfaceMAC()
|
||||||
scanNetwork()
|
scanNetwork()
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user