pretengo

command module
v0.0.1-test-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 12 Imported by: 0

README

Pretengo

Basic Account Server Emulator Returning Static Response just enough for Cemu to Play MHF-Z

Pretengo config.json

Pretengo configuration config.json:

{
  "ListenAddress": "127.0.0.1",
  "ListenPort": "443",
  "access_token": "1234567890abcdef1234567890abcdef",
  "refresh_token": "fedcba0987654321fedcba0987654321fedcba12",
  "expires_in": "3600",
  "StaticKey": "no",
  "SignKey": "U0VSVklDRVNFUlZJQ0VTRVJWSUNFU0VSVklDRVNFUlZJQ0VTRVJWSUNFU0VSVklDRVNFUlZJQ0VTRVI="
}

When starting MHF on Cemu, Pretengo will listen and send the static response based on config above and using the SessionKey as SignIn Method for Erupe server. if the StaticKey is set to "no", the SignKey will be generated automatically from userID and password based on Cemu online files.

How to Use

  1. first you need to redirect nintendo.account.net into your local IP wich pretengo listen to, easiest way is to use host file in %windir%/System32/Drivers/etc/hosts and add the following e.g. : 127.0.0.1 account.nintendo.net
  2. second start the pretengo using go command go run pretengo.go
  3. run Cemu and see if pretengo get a post request and can answer with static responde in config.json file

Note

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL