Skip to content

Instantly share code, notes, and snippets.

@niccokunzmann
Last active June 2, 2016 21:30
Show Gist options
  • Save niccokunzmann/7045a65226cd3246f3cc95ebaa0d7fc3 to your computer and use it in GitHub Desktop.
Save niccokunzmann/7045a65226cd3246f3cc95ebaa0d7fc3 to your computer and use it in GitHub Desktop.
import socket
import traceback
MESSAGE = """GET / HTTP/1.1
Host: {host}
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
DNT: 1
Connection: close
"""
def httpttl(domain, host, ttl):
print("--- GET {} with ttl {} ---".format(host, ttl))
try:
s = socket.socket()
s.connect((domain, 80))
s.setsockopt(socket.IPPROTO_IP, socket.IP_TTL, ttl)
m = MESSAGE.format(host = host).encode("ASCII")
s.send(m)
print(s.recv(1024))
except KeyboardInterrupt:
raise
except:
traceback.print_exc()
for ttl in range(15,1, -1):
print("------------- ttl {} -------------".format(ttl))
httpttl("rotespotsdam.tk", "rotespotsdam.tk", ttl)
httpttl("rotespotsdam.tk", "google.de", ttl)
------------- ttl 15 -------------
--- GET rotespotsdam.tk with ttl 15 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 15 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 14:23:21 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 14 -------------
--- GET rotespotsdam.tk with ttl 14 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 14 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 14:23:21 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 13 -------------
--- GET rotespotsdam.tk with ttl 13 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 13 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 14:23:22 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 12 -------------
--- GET rotespotsdam.tk with ttl 12 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 12 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 14:23:23 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 11 -------------
--- GET rotespotsdam.tk with ttl 11 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 11 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 14:23:24 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 10 -------------
--- GET rotespotsdam.tk with ttl 10 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 10 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 9 -------------
--- GET rotespotsdam.tk with ttl 9 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 9 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 8 -------------
--- GET rotespotsdam.tk with ttl 8 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 8 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 7 -------------
--- GET rotespotsdam.tk with ttl 7 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 7 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 6 -------------
--- GET rotespotsdam.tk with ttl 6 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 6 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 5 -------------
--- GET rotespotsdam.tk with ttl 5 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 5 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 4 -------------
--- GET rotespotsdam.tk with ttl 4 ---
b'HTTP/1.1 503 Service Unavailable\r\nContent-Type: text/html; charset=UTF-8\r\nContent-Length: 957\r\nConnection: close\r\nP3P: CP="CAO PSA OUR"\r\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\r\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\r\nPragma: no-cache\r\n\r\n<html>\r\n<head>\r\n<title>Web Page Blocked</title>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">\r\n<meta name="viewport" content="initial-scale=1.0">\r\n<style>\r\n #content {\r\n border:3px solid#aaa;\r\n background-color:#fff;\r\n margin:1.5em;\r\n padding:1.5em;\r\n font-family:Tahoma,Helvetica,Arial,sans-serif;\r\n font-size:1em;\r\n }\r\n h1 {\r\n font-size:1.3em;\r\n font-weight:bold;\r\n color:#196390;\r\n }\r\n b {\r\n font-weight:normal;\r\n color:#196390;\r\n }\r\n</style>\r\n</head>\r\n<body bgcolor="#e7e8e9">\r\n<div id="content">\r\n<h1>Web Page Blocked</h1>\r\n<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please '
--- GET google.de with ttl 4 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 3 -------------
--- GET rotespotsdam.tk with ttl 3 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 3 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 2 -------------
--- GET rotespotsdam.tk with ttl 2 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 2 ---
Traceback (most recent call last):
File "C:\Users\cheche\Documents\programmiertes\GIST\httpttl\httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 15 -------------
--- GET rotespotsdam.tk with ttl 15 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:28 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: close\r\nVary: Accept-Encoding\r\nX-Powered-By: PHP/5.2.17\r\nVary: Accept-Encoding,User-Agent\r\n\r\n2581\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n <head>\n<title>Rotes Potsdam | Home</title>\n <style type="text/css">\n\ta:link { text-decoration:none; }\n\ta:visited { text-decoration:none; }\n\ta:focus { text-decoration:none; }\n\ta:hover { text-decoration:underline; color:white;}\n\ta:active { text-decoration:underline; }\n </style>\n<meta name="description" content="Alternative Termine zwischen Stadtschloss und Garnisonkirche">\n<meta name="keywords" content="Termin, Termine, Veranstaltungen, Terminkalender, Kalender, Potsdam, Info, Information, Adressen">\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<link rel="SHORTCUT ICON" href="icon.ico'
--- GET google.de with ttl 15 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:28 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 14 -------------
--- GET rotespotsdam.tk with ttl 14 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:29 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: close\r\nVary: Accept-Encoding\r\nX-Powered-By: PHP/5.2.17\r\nVary: Accept-Encoding,User-Agent\r\n\r\n2581\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n <head>\n<title>Rotes Potsdam | Home</title>\n <style type="text/css">\n\ta:link { text-decoration:none; }\n\ta:visited { text-decoration:none; }\n\ta:focus { text-decoration:none; }\n\ta:hover { text-decoration:underline; color:white;}\n\ta:active { text-decoration:underline; }\n </style>\n<meta name="description" content="Alternative Termine zwischen Stadtschloss und Garnisonkirche">\n<meta name="keywords" content="Termin, Termine, Veranstaltungen, Terminkalender, Kalender, Potsdam, Info, Information, Adressen">\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<link rel="SHORTCUT ICON" href="icon.ico'
--- GET google.de with ttl 14 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:29 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 13 -------------
--- GET rotespotsdam.tk with ttl 13 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:30 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: close\r\nVary: Accept-Encoding\r\nX-Powered-By: PHP/5.2.17\r\nVary: Accept-Encoding,User-Agent\r\n\r\n2581\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n <head>\n<title>Rotes Potsdam | Home</title>\n <style type="text/css">\n\ta:link { text-decoration:none; }\n\ta:visited { text-decoration:none; }\n\ta:focus { text-decoration:none; }\n\ta:hover { text-decoration:underline; color:white;}\n\ta:active { text-decoration:underline; }\n </style>\n<meta name="description" content="Alternative Termine zwischen Stadtschloss und Garnisonkirche">\n<meta name="keywords" content="Termin, Termine, Veranstaltungen, Terminkalender, Kalender, Potsdam, Info, Information, Adressen">\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<link rel="SHORTCUT ICON" href="icon.ico'
--- GET google.de with ttl 13 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:30 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 12 -------------
--- GET rotespotsdam.tk with ttl 12 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:31 GMT\r\nContent-Type: text/html\r\nTransfer-Encoding: chunked\r\nConnection: close\r\nVary: Accept-Encoding\r\nX-Powered-By: PHP/5.2.17\r\nVary: Accept-Encoding,User-Agent\r\n\r\n2581\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml">\n <head>\n<title>Rotes Potsdam | Home</title>\n <style type="text/css">\n\ta:link { text-decoration:none; }\n\ta:visited { text-decoration:none; }\n\ta:focus { text-decoration:none; }\n\ta:hover { text-decoration:underline; color:white;}\n\ta:active { text-decoration:underline; }\n </style>\n<meta name="description" content="Alternative Termine zwischen Stadtschloss und Garnisonkirche">\n<meta name="keywords" content="Termin, Termine, Veranstaltungen, Terminkalender, Kalender, Potsdam, Info, Information, Adressen">\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n<link rel="SHORTCUT ICON" href="icon.ico'
--- GET google.de with ttl 12 ---
b'HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Thu, 02 Jun 2016 13:09:31 GMT\r\nContent-Type: text/html\r\nContent-Length: 244\r\nLast-Modified: Sat, 30 Oct 2010 01:39:07 GMT\r\nConnection: close\r\nVary: Accept-Encoding\r\nETag: "4ccb773b-f4"\r\nAccept-Ranges: bytes\r\n\r\n<html><head><title>Shared IP</title></head>\n<body><center>This IP is being shared among many domains.<br>\nTo view the domain you are looking for, simply enter the domain name in the location bar of your web browser.<br>\n</center></body>\n</html>'
------------- ttl 11 -------------
--- GET rotespotsdam.tk with ttl 11 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 11 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 10 -------------
--- GET rotespotsdam.tk with ttl 10 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 10 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
print(s.recv(1024))
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 9 -------------
--- GET rotespotsdam.tk with ttl 9 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 9 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 8 -------------
--- GET rotespotsdam.tk with ttl 8 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 8 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 7 -------------
--- GET rotespotsdam.tk with ttl 7 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 7 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 6 -------------
--- GET rotespotsdam.tk with ttl 6 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 6 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 5 -------------
--- GET rotespotsdam.tk with ttl 5 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 5 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 4 -------------
--- GET rotespotsdam.tk with ttl 4 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 4 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 3 -------------
--- GET rotespotsdam.tk with ttl 3 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
--- GET google.de with ttl 3 ---
Traceback (most recent call last):
File "httpttl.py", line 22, in httpttl
s.send(m)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
------------- ttl 2 -------------
--- GET rotespotsdam.tk with ttl 2 ---
b''
--- GET google.de with ttl 2 ---
b''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment