Created
November 2, 2010 18:58
-
-
Save rolandoam/660109 to your computer and use it in GitHub Desktop.
entel redirection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The lovely people from Entel is listening on every request/socket you open on a | |
mobile device to see if it's doing something that resembles an HTTP request, if | |
so then it "discretely" redirects you to somewhere else: | |
Here's a log of an embedded device we're (DataDyne) building (these are the raw | |
AT commands) | |
== FIRST ATTEMPT == | |
AT | |
OK | |
AT+IPR=19200 | |
OK | |
ATE0 | |
== NOTE: from here on this shows only the responses from the modem == | |
OK | |
OK | |
== NOTE: this was our IMEI :-P | |
35XXXXXX | |
OK | |
OK | |
OK | |
== NOTE: checking for network | |
+CREG: 0,2 | |
OK | |
== NOTE: skipped lines | |
OK | |
+CREG: 0,1 | |
OK | |
OK | |
== NOTE: connecting to GPRS network | |
#GPRS: 0 | |
OK | |
+IP: 186.10.241.227 | |
OK | |
#GPRS: 1 | |
OK | |
== NOTE: issuing first HTTP request - this was made to my local computer on | |
== the port 7767 (through the internet - no local connection here) | |
CONNECT | |
HTTP/1.1 200 OK | |
Connection: close | |
Date: Tue, 02 Nov 2010 17:41:00 GMT | |
ETag: "55a54008ad1ba589aa210d2629c1df41" | |
Content-Type: text/html; charset=utf-8 | |
X-Runtime: 167 | |
Content-Length: 1 | |
Cache-Control: private, max-age=0, must-revalidate | |
. | |
NO CARRIER | |
== NOTE: here starts the second attempt | |
OK | |
OK | |
OK | |
OK | |
== NOTE: again, our IMEI | |
35XXXXXX | |
OK | |
OK | |
OK | |
+CREG: 0,1 | |
OK | |
OK | |
OK | |
OK | |
OK | |
#GPRS: 1 | |
OK | |
== NOTE: and the second attempt... ooops, our friends from @entel want us to go through them | |
== why? | |
CONNECT | |
HTTP/1.1 302 Found | |
Location: http://gw.vas.entelpcs.cl/pm/v1.php?n=730011165213740-0400&host=201.214.212.201&url=/mipbox/fetch¶ms=b=352XXXXXX | |
Content-Type: text/html; charset=utf-8 | |
Content-Length: 239 | |
Connection: close | |
<html><head><title>Object moved</title></head><body> | |
<h2>Object moved to <a href='http://gw.vas.entelpcs.cl/pm/v1.php?n=730011165213740-0400&host=201.214.212.201&url=/mipbox/fetch¶ms=b=352XXXXXX'>here</a>.</h2> | |
</body></html> | |
NO CARRIER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment