Network Protocol/Server/LOGIN

From Custom Mario Kart
Jump to navigation Jump to search

Overview

This article describes the record type LOGIN of the Network Protocol Server. It returns

\login\
\challenge\<challenge-ID>
\authtoken\<Authtoken>
\partnerid\<unknown>
\response\<response>
\firewall\<firewall>
\port\0
\productid\11059
\gamename\mariokartwii
\namespaceid\16
\sdkrevision\3
\quiet\0
\id\1
\final\

where,

  • <challenge-ID> is the challenge sent by Nintendo,
  • <response> is the answer to this challenge in the form of
md5sum(md5sum(SSL-Challenge) + (" " * 48) + authtoken + clientChallenge + serverChallenge + md5sum(SSL-Challenge))
  • <firewall> is always 1,
  • <authtoken> is byte array encoded in base64 with some player information.

If Nintendo answers with a new CHALLENGE record, the sent answer to the challenge was wrong (LOGIN_CHALLENGE).