mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-21 20:44:25 +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
|
||||
|
||||
$ 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::
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user