Coder Social home page Coder Social logo

pogoserver's Introduction

______ _____ _____ _____                               
| ___ \  _  |  __ \  _  |                              
| |_/ / | | | |  \/ | | | ___  ___ _ ____   _____ _ __ 
|  __/| | | | | __| | | |/ __|/ _ \ '__\ \ / / _ \ '__|
| |   \ \_/ / |_\ \ \_/ /\__ \  __/ |   \ V /  __/ |   
\_|    \___/ \____/\___/ |___/\___|_|    \_/ \___|_|   

Getting started

Tunneling setup

You need to intercept the traffic between the app and original server and forward it to this custom server implementation. I'm using Fiddler for this purpose. After installing Fiddler, go to Rules->Customize Rules and search for the function OnBeforeRequest. Append the following code into the functions body:

if (oSession.HostnameIs("pgorelease.nianticlabs.com")) {
  if (oSession.HTTPMethodIs("CONNECT")) {
    oSession["x-replywithtunnel"] = "127.0.0.1:3000";
    return;
  }
  oSession.fullUrl = "http://127.0.0.1:3000" + oSession.PathAndQuery;
}

Now go to Tools->Telerik Fiddler Options->HTTPS and enable Decrypt HTTPS traffic. I'm using Nox App Player for android emulation, so open Settings->Wi-Fi->WiredSSID->Modify network and setup a proxy with the following settings:

Hostname: 192.168.178.x // your local ip4
Port: 8888 // fiddler default port

By 0.31.0 certificate pinning was added. To bypass it, you need to install this great app. Just follow the readme guide to install it.

Server setup

You need a running mongodb service, enter your credentials into ./cfg.js.

If everything went fine, it should look like:

Preview

Todo

  • Viewing a pokemon shows invalid data (wrong weight, height, type etc.)
  • Transfer button doesnt trigger (maybe related to above?)
  • Items doesnt show
  • Pokemon models get downloaded correctly, but somehow they dont load properly. They show on map, but not in pokemon info screen, pokedex or while encountering.
  • Players exp bar is bugged, proto related?

pogoserver's People

Contributors

maierfelix avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.