maierfelix / POGOserver

Pokemon GO server emulator
GNU General Public License v3.0
460 stars 198 forks source link

Added HTTP MITM Proxy and pac renderer #278

Open Zaephor opened 8 years ago

Zaephor commented 8 years ago

As an alternative to relying on the Xposed module's Custom Endpoint functionality(POGO>0.35.x), added a MITM proxy. Will likely still require the Xposed Module's ability to bypass cert pinning though.

Off the top of my head, this really only works on WIFI connections at the moment. Unless anyone is aware of an Xposed module, hidden setting or root app for using HTTP Proxies/PAC files systemwide.

Tested with my CM12.1 device using POGO 0.35.0.

vankxr commented 8 years ago

You can ser the proxy for mobile data on the APN settings, just be Sure to use only IP addresses and to comvert them to 3 digit groups (1.1.1.1 > 001.001.001.001)

Cronick commented 8 years ago

Also possible to use something like ProxyDroid to setup a proxy on your mobile data.

xcrashdayx commented 8 years ago

@Zaephor is there a tut on how to install your mitm certs? i always get ssl errors when i try to connect. we have a very large pogo community in my hometown and being able to connect to a custom server without being foreced to root would help us imensly ! kind regards from germany

Zaephor commented 8 years ago

@xcrashdayx

I'm not quite sure how "rootless" the proxy is. I believe bypassing the cert pinning on Android required root and rastapasta's xposed plugin. At least this is the only method I've tried.

Instructions to install are the same as rastapasta's mitm except that the ca file can be downloaded from http://<serverIP>:<webport>/proxy/ca.pem instead.

For rooted Android users that don't want to have to have a lock-screen password or something, the CA can be installed as a system level cert following guide.