Resource icon

NS-ctest-mock 0.0.1

NS-ctest-mock

GitHub commit activity GitHub commits since latest release GitHub contributors GitHub Created At GitHub language count GitHub Downloads (all assets, all releases) GitHub Sponsors GitHub Answered Discussions GitHub code size in bytes GitHub repo file or directory count GitHub repo size GitHub followers GitHub User's stars

This homebrew project is a minimal mock of Nintendo's connection-test server, which is used by the Nintendo Switch to verify that it can reach Nintendo's servers.

Usage

Set up a DNS MITM to redirect connection-test requests to the loopback:

Code:
# files under /atmosphere/hosts
127.0.0.1 *conntest.nintendowifi.net
127.0.0.1 *ctest.cdn.nintendo.net

If you want to block all nintendo servers, you can also just set:

Code:
# files under /atmosphere/hosts
127.0.0.1 *nintendo*

Then unpack NS-ctest-mock.tar from the latest release to your SD card. Now you are good to go!

The sysmodule will automatically start on boot and listen for connection-test requests. You can stop and restart it with any Hekate-Toolbox-compatible sysmodule manager.

Technical Details

After startup, it listens on 127.0.0.1:80 and returns no matter what request is made:

HTTP:
HTTP/1.0 200 OK
Content-Length: 2
X-Organization: Nintendo

ok

Build

devkitpro/devkita64 Docker Image is suggested for building this project. Additionally, you will need to install clang-format if you want to run the formatting check.

Code:
# Build the project
make
# Remove the build artifacts
make clean
# Run the formatting fix
make format
# Run linting checks
make lint
# Run the formatting check
make format.check
# Run linting fixes
make lint.fix

Artifacts will be placed in the atmosphere folder.

Maintainer

@qwertycxz

How could I contribute?

Issues and Pull-requests are both welcomed.

License

Apache 2.0 © qwertycxz
Change log
Initial release.
Author
qwertycxz
Downloads
26
Views
135
First release
Last update

Ratings

0.00 star(s) 0 ratings