From 77092773ab02e3ed9617e18d8d788373485d39b1 Mon Sep 17 00:00:00 2001 From: ylink Date: Sun, 23 Sep 2018 13:40:13 +0800 Subject: [PATCH 1/2] Update checkInternetConnection function Not everyone can access google with ease, exp, uses in China Mainland. I changed the check link from https://google.com to https://github.com for a greater compatibility. --- kickthemout.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kickthemout.py b/kickthemout.py index 73421f7..a561f1f 100644 --- a/kickthemout.py +++ b/kickthemout.py @@ -127,7 +127,7 @@ def runDebug(): # make sure there is an internet connection def checkInternetConnection(): try: - urlopen('https://google.com', timeout=3) + urlopen('https://github.com', timeout=3) return True except URLError as err: return False @@ -785,4 +785,4 @@ if __name__ == '__main__': # set to non-interactive attack interactive = False - main() \ No newline at end of file + main() From 32abf165313c84e2f0ae4ee3c1cd0f3cc21dcaaf Mon Sep 17 00:00:00 2001 From: ylink Date: Sun, 23 Sep 2018 14:09:15 +0800 Subject: [PATCH 2/2] Update kickthemout.py --- kickthemout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kickthemout.py b/kickthemout.py index a561f1f..b057dff 100644 --- a/kickthemout.py +++ b/kickthemout.py @@ -185,7 +185,7 @@ def getDefaultInterfaceMAC(): def getGatewayIP(): global stopAnimation 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 except: # request gateway IP address (after failed detection by scapy)