Update kickthemout.py

This commit is contained in:
ylink 2018-09-23 14:09:15 +08:00 committed by GitHub
parent 77092773ab
commit 32abf16531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ def getDefaultInterfaceMAC():
def getGatewayIP(): def getGatewayIP():
global stopAnimation global stopAnimation
try: try:
getGateway = sr1(IP(dst="google.com", ttl=0) / ICMP() / "XXXXXXXXXXX", verbose=False) getGateway = sr1(IP(dst="github.com", ttl=0) / ICMP() / "XXXXXXXXXXX", verbose=False)
return getGateway.src return getGateway.src
except: except:
# request gateway IP address (after failed detection by scapy) # request gateway IP address (after failed detection by scapy)