______ _____ _____ _____
| ___ \ _ | __ \ _ |
| |_/ / | | | | \/ | | | ___ ___ _ ____ _____ _ __
| __/| | | | | __| | | |/ __|/ _ \ '__\ \ / / _ \ '__|
| | \ \_/ / |_\ \ \_/ /\__ \ __/ | \ V / __/ |
\_| \___/ \____/\___/ |___/\___|_| \_/ \___|_|
Copy and rename cfg.js.example
to cfg.js
.
Open cfg.js
and fill the following fields:
DOWNLOAD_PROVIDER: "GOOGLE";
DOWNLOAD_USERNAME: "USERNAME";
DOWNLOAD_PASSWORD: "PASSWORD";
The pokemon go app traffic has to get forwarded manually to this custom server. Download rastapasta's Pokemon Go Xposed app and follow the installation instructions here.
To setup a database connection, open cfg.js
and change the database login credentials:
MYSQL_PORT: 3306,
MYSQL_HOST_IP: "127.0.0.1",
MYSQL_DB_NAME: "pogosql",
MYSQL_USERNAME: "root",
MYSQL_PASSWORD: "",
The required database tables get generated automatically.
Newer versions of Pokemon Go application have negated the custom endpoint support of rastapasta's Pokemon Go Xposed app. But the certificate pinning bypass still appears functional.
Based on a rough dissection of rastapasta's pokemon-go-mitm for reference, an MITM proxy server, PAC generator and cert downloader have all been added.
Multiple client connection/configuration options are available:
- (Android) Settings->Wi-Fi->[Connect]->Advanced Options->Proxy->Proxy Auto-Config
http://<server_ip>:<web port>/proxy/pac
- (Android) Settings->Wi-Fi->[Connect]->Advanced Options->Proxy->Manual: Proxy hostname
<server_ip>
, Proxy port:<proxy port>
(May require CA cert)
In-case the client device needs the CA cert: http://<server_ip>:<web port>/proxy/ca.(pem|crt|der)
You need at minimum Node.js version 6.x.
Open up a terminal and enter npm run boot
to start the server or npm run api
to start the web-api.
- Download
Dockerfile
,cfg.js.example
andsupervisord.conf
from github. - Place
Dockerfile
,cfg.js.example
andsupervisord.conf
into the same folder. Renamecfg.js.example
tocfg.js
. - Modify
cfg.js
to your requirements as described above. - Create a container and run it.
- Open a bash prompt, enter:
cd /POGOserver/
and enternpm run boot
. - Connect the Pokemon Go app to the server.
- Done.
Note: Instead of automatically mapping the ports, map them static, so they don't change after reboot.