Merge pull request #5 from k4m4/master

fork update
This commit is contained in:
David Schütz 2017-01-21 16:17:29 +01:00 committed by GitHub
commit c23b7853f8
2 changed files with 12 additions and 4 deletions

View File

@ -30,9 +30,7 @@ If you would like to install KickThemOut on a Mac, please run the following::
$ sudo pip install pcapy
$ brew install libdnet
$ brew install scapy
$ brew install libdnet scapy
Keep in mind that you might be asked to run some commands after executing the previous step. Moving on::

View File

@ -256,6 +256,16 @@ def getGatewayIP():
gatewayIP = raw_input(header)
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):
try:
url = "http://macvendors.co/api/vendorname/"
@ -324,7 +334,7 @@ if __name__ == '__main__':
defaultInterface = getDefaultInterface()
defaultGatewayIP = getGatewayIP()
defaultInterfaceMac = get_if_hwaddr(defaultInterface)
defaultInterfaceMac = getDefaultInterfaceMAC()
scanNetwork()
main()