Skip to content

Instantly share code, notes, and snippets.

@captn3m0
Created November 11, 2016 11:59
Show Gist options
  • Save captn3m0/a96b2507e875cac052429e6a24c07a04 to your computer and use it in GitHub Desktop.
Save captn3m0/a96b2507e875cac052429e6a24c07a04 to your computer and use it in GitHub Desktop.
Airtel TPB MITM
curl -vvv https://thepiratebay.org/
* Trying 104.31.10.186...
* TCP_NODELAY set
* Connected to thepiratebay.org (104.31.10.186) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: OU=Domain Control Validated; OU=PositiveSSL Multi-Domain; CN=sni154519.cloudflaressl.com
* start date: Nov 8 00:00:00 2016 GMT
* expire date: May 14 23:59:59 2017 GMT
* subjectAltName: host "thepiratebay.org" matched cert's "thepiratebay.org"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=COMODO CA Limited; CN=COMODO ECC Domain Validation Secure Server CA 2
* SSL certificate verify ok.
> GET / HTTP/1.1
> Host: thepiratebay.org
> User-Agent: curl/7.51.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 11 Nov 2016 11:59:31 GMT
< Content-Type: text/html
< Transfer-Encoding: chunked
< Connection: keep-alive
< Set-Cookie: __cfduid=d2f5a0c6f99611ccd80f3fef2390083421478865569; expires=Sat, 11-Nov-17 11:59:29 GMT; path=/; domain=.thepiratebay.org; HttpOnly
< Pragma: no-cache
< Cache-Control: no-cache
< Server: cloudflare-nginx
< CF-RAY: 300194117c232fe1-MAA
<
* Curl_http_done: called premature == 0
* Connection #0 to host thepiratebay.org left intact
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><style>body{margin:0px;padding:0px;}iframe{width:100%;height:100%}</style><iframe src="http://www.airtel.in/dot/?dpid=1&dpruleid=3&cat=107&ttl=0&groupname=-&policyname=-&username=-&userip=162.158.54.104&connectionip=127.0.0.1&nsphostname=policy05-chennai&protocol=policyprocessor&dplanguage=-&url=http%3a%2f%2fthepiratebay%2eorg%2f" width="100%" height="100%" frameborder=0></iframe><script>var iframe = document.getElementsByTagName("iframe")[0]; setIframe(); window.onresize = function(){ setIframe(); }; function setIframe(){ iframe.style.width = window.innerWidth+'px'; iframe.style.height = window.innerHeight+'px'; }; </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment