Lurker News
Side project tunneling a TCP port through WhatsApp, can be useful on airplanes or any WiFi/carrier that has unlimited social network data limits. Appreciate feedback :)

Comments (123) 17 threads

public_defender1 reply#
I love this as a check on zero-rating. I think that Facebook zero-rating in emerging economies will prove to have an abysmal toxic legacy. Anything that can tax the value proposition by e.g. forcing a lot of data through the pipe should be encouraged as a way to generally decrease the prevalence of the practice.
SergeAx#
Yes, please support net neutrality, it is very important.
jesprenj2 replies#
I was on a ferry ship from Italy to Greece where they had paid sattelite Internet via WiFi. The WiFi AP was at first a captive portal. You could buy Internet access with cash at the reception or you could pay online. For that they had to enable access to stripe.com. But stripe uses fastly CDN, so they enabled one specific fastly endpoint that stripe uses. You had direct IP traffic to this specific IP address. reddit also uses fastly CDN. So with a /etc/hosts hack I could load reddit pages for free. Not images though, as they are hosted by imgur.

I assume one could also create a tunnel over reddit chat connect to the Internet, but I never did that.
By default, reddit did not work though, as their fastly CDN endpoint is different from stripe's, also the stripe's endpoint did not correctly sign TLS for reddit.com. But setting a Host header of old.reddit.com on that fastly IP successfully downloaded the page.
When I still had phone network by the coast, I set up iodine IP over DNS tunnel, but it did not work, even though DNS requests worked on that WiFi. Maybe they had some sort of protection specifically for iodine.

nibbleshifter#
There's a trick called "Domain fronting" (ab)using CDN's like that which is useful.

Tor's "meek" pluggable transport uses it, but only supports a couple of cdns as you need to run infra behind the CDN which costs money.
As for Iodine, I used to run a few public DNS tunnel servers with it for people. Its a pain in the ass to get working reliably.

bythckr1 reply#
Pls explain how you did that. I would like to try it for myself.
jesprenj#
First of all I was doing all of this on my touchscreen phone, which made me give up soon, as my laptop was packed in the garage.

I used a program called Packet capture that registers as a VPN connection in Android and routes all traffic trough itself. I saw some external IPs with TLS data when visiting the captive portal: http://upload.4a.si/pcap.jpg
When I sent a request to one IP address, I learned from the response that I've reached a fastly endpoint. The response was an error page, claiming they host no one with this domain. I knew from a talk by reddit sysadmins that they use the fastly CDN, so I added a Host header with a value of old.reddit.com:
curl -ikH Host:\ old.reddit.com https://151.101.0.176/r/Slovenia.json
Then I added a rule in software AdAway for Android (this one is used for DNS blacklisting to remove ads based on DNS queries and requires root access - changes /etc/hosts AFAIK) to overwrite old.reddit.com to this IP address.
I can't remember how I tricked the web browser into ignoring invalid certs.

userbinator3 replies#
The word "proxy" used to refer to a human, and this is essentially an automated version of that. The automation of messaging a friend on WhatsApp and asking him to go to a website and send you the information.
aleixrodriala#
That would be the human version of this, awesome to know :)
quickthrower2#
I believe proxy can still refer to a human. For example in voting.
comprev#
Proxy simply means doing an action on behalf of another entity. This could be a human, a computer or even entire country ("proxy war")
Dylan168071 reply#
Fun, but when the comparison is unlimited WhatsApp versus "not many gigabytes" of other data, my first question is what speed this goes. How long does it take to transfer a gigabyte over WhatsApp?
aleixrodriala3 replies#
Depends on the throttle you add and then risking to get your WhatsApp account banned, but can be used to surf when you have no data or use other apps which can be useful, not intended for large files downloading or video streaming although got like 300kbps which wasn't too bad
yellow_lead1 reply#
Nice, seems useful for airplanes.
aziaziazi1 reply#
Did you click the link ? Planes are mentioned at the second sentence.

Continue this thread — 1 reply

Matt3o12_1 reply#
Have you tried different throttles? Did you get any whatsapp account(s) banned at higher speed?
aleixrodriala13 replies#
Yes, used different messages max sizes, with 2000 characters got the best speed but got the account banned, using 20000 is a great middle term and not banned for now, could get banned anyway, its an educational project

Continue this thread — 13 replies

gnfargbl1 reply#
It looks like you're using base64 encoding. If WhatsApp allows an extended alphabet then you might be able to switch to base85 for a slight performance bump.
kevincox5 replies#
Since WhatsApp is end-to-end encrypted you can probably just send bibary data. Stick a prefix on it so that the real client is guaranteed to ignore it as corrupted.

I think the only risk is that if you have a real client running it reports the invalid messages and WhatsApp uses this as a signal to van your account.

Continue this thread — 5 replies

Load more comments