Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am pretty much a beginner dev, so can anyone briefly explain how this works? It's not really clear to me from the code.

It's mentioned in the README that packets are being sent as base64. Let's say I would like to send a GET request to google.com. How does Facebook Chat serve me with google's page?



As far as I understood:

- They are using virtual network kernel device (TUN/TAP, https://github.com/matiasinsaurralde/facebook-tunnel/blob/ma... )

- encode it as base64

- communicate with the http/web facebook client https://github.com/matiasinsaurralde/facebook-tunnel/blob/ma...

Between that they do authentication things at facebook with "gumbo". And later on everything the other way round at the server side.

So if you GET google.com your traffic goes through a virtual ethernet like device. https://www.kernel.org/doc/Documentation/networking/tuntap.t...

There is no cryptography involved, they could try to use openvpn to enable this feature. https://community.openvpn.net/openvpn/wiki/BridgingAndRoutin...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: