mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 21:14:25 +01:00
Resolve Issue #8
This commit is contained in:
parent
48831548a2
commit
5b85021fb4
@ -233,13 +233,13 @@ def getDefaultInterface():
|
|||||||
|
|
||||||
def getGatewayIP():
|
def getGatewayIP():
|
||||||
try:
|
try:
|
||||||
getGateway_p = sr1(IP(dst="google.com", ttl=0) / ICMP() / "XXXXXXXXXXX", verbose=False)
|
getGateway_p = sr1(IP(dst="google.com", ttl=0) / ICMP() / "XXXXXXXXXXX", verbose=False)
|
||||||
return getGateway_p.src
|
return getGateway_p.src
|
||||||
except:
|
except:
|
||||||
print("\n{0}ERROR: Gateway IP could not be obtained. Please enter IP manually.{2}\n").format(RED, END)
|
print("\n{0}ERROR: Gateway IP could not be obtained. Please enter IP manually.{2}\n").format(RED, END)
|
||||||
header = ('{0}kickthemout{1}> {2}Enter Gateway IP {3}(e.g. 192.168.1.1): '.format(BLUE, WHITE, RED, END))
|
header = ('{0}kickthemout{1}> {2}Enter Gateway IP {3}(e.g. 192.168.1.1): '.format(BLUE, WHITE, RED, END))
|
||||||
gatewayIP = raw_input(header)
|
gatewayIP = raw_input(header)
|
||||||
return gatewayIP
|
return gatewayIP
|
||||||
|
|
||||||
def resolveMac(mac):
|
def resolveMac(mac):
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user