Giter Club home page Giter Club logo

in-app-proxy's Introduction

in-app-proxy

This code allows you to emulate AppStore in-app purchasing algorithms.

Setup environment

You need UNIX, DNSMasq running with this configuration: server=/ax.init.itunes.apple.com/8.8.8.8 server=/itunes.apple.com/8.8.8.8 server=/ets.gameloft.com/8.8.8.8 server=/vgold.gameloft.com/8.8.8.8 server=/itunes.com/8.8.8.8 address=/.itunes.apple.com/91.224.160.136 address=/edgesuite.net/91.224.160.136 address=/api.textnow.me/127.0.0.1 address=/warspark.com/127.0.0.1 address=/gameloft.com/91.224.160.136 address=/receipts.jamiesrecipes.zolmo.com/127.0.0.1 address=/popcap.com/127.0.0.1 address=/digitalchocolate.com/127.0.0.1 address=/beeblex.com/127.0.0.1 address=/highnoon.happylatte.com/127.0.0.1 address=/dc.full-fat.com/91.224.160.136 address=/mobile.ext.terrhq.ru/91.224.160.136 address=/api.tapsonic.co.kr/127.0.0.1 address=/bubble.teamlava.com/127.0.0.1 address=/csrrun.naturalmotion.com/127.0.0.1 address=/testflightapp.com/127.0.0.1 Also, you need nginx(apache) with php as module or cgi with these extensions: php-curl, pecl_http, php-xml

Note, pecl_http need to be built from sources, so install php-pear, php-dev and gcc.

Next, virtualhost with certificate and key itcert.pem, itcert.key (or generate yours) listens on *.itunes.apple.com on 443, virtualhost listens on *.itunes.apple.com on 80, pucert.cer - purchase receipt certificate with keylength = 1024, virtualhost listens on * on 443 for devs server emulation, virtualhost listens on * on 80 for devs server emulation,

rewrites all on iapcracker.php on *.itunes.apple.com, rewrites all to index.php on *.

Here is example for nginx:

if (!-e $request_filename) { rewrite ^/(.*)$ /iapcracker.php?URL=$1 last; break; }

Feel free to connect

Install two certificates (cacert.pem, itcert.pem) on your iDevice, chage DNS to IP of your server. U're done!

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.