SpotPass: Difference between revisions
Meleemeister (talk | contribs) No edit summary |
Meleemeister (talk | contribs) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 21: | Line 21: | ||
The default user-agent used for SpotPass HTTPS requests (including the policylist) has the following format: | The default user-agent used for SpotPass HTTPS requests (including the policylist) has the following format: | ||
<tt><user agent codename>-<user agent version>/<printed hex u64 [[CfgS:GetLocalFriendCodeSeed|LocalFriendCodeSeed]]>-<printed hex u64 [[FRDU:GetMyFriendKey|Friend]] [[FRDU:PrincipalIdToFriendCode|Code]]>/<text [[CVer|system]] [[NVer|version]]>/< | <tt><user agent codename>-<user agent version>/<printed hex u64 [[CfgS:GetLocalFriendCodeSeed|LocalFriendCodeSeed]]>-<printed hex u64 [[FRDU:GetMyFriendKey|Friend]] [[FRDU:PrincipalIdToFriendCode|Code]]>/<text [[CVer|system]] [[NVer|version]]>/<CTRSDK version of sysmodule>/<[[Cfg:GetSystemModel|system model number]]></tt> | ||
The codename can be set to either <tt>PBOS</tt> (Production BOSS?) or <tt>DBOS</tt> (Development BOSS?) depending if the console is a [[Configuration_Memory#UNITINFO|retail]] unit. As of system version 11.17, the user agent version is hardcoded to 8.0 and the | The codename can be set to either <tt>PBOS</tt> (Production BOSS?) or <tt>DBOS</tt> (Development BOSS?) depending if the console is a [[Configuration_Memory#UNITINFO|retail]] unit. As of system version 11.17, the user agent version is hardcoded to 8.0 and the CTRSDK version is set to 62452 (0xF3F4). | ||
No user-agent is used for plaintext HTTP requests with SpotPass. | No user-agent is used for plaintext HTTP requests with SpotPass. | ||
| Line 178: | Line 178: | ||
The hash at offset 0x1C hashes the 0x1C-byte data at offset 0x0 followed by a zero u16, followed by all of the remaining cleartext data following this header(the actual content data). | The hash at offset 0x1C hashes the 0x1C-byte data at offset 0x0 followed by a zero u16, followed by all of the remaining cleartext data following this header(the actual content data). | ||
The downloaded boss data is written in the following format to extdata. | The downloaded boss data is written in the following format to extdata. The file name that is generated might be Base85/Ascii85 encoded. | ||
First an extdata header in the following format | First an extdata header in the following format | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 200: | Line 200: | ||
| 0x10 | | 0x10 | ||
| 0x4 | | 0x4 | ||
| Download date in format: Bit 0- | | Download date in format: Bit 0-5 = day, Bit 6-9 = month, Bit 10-20 = year | ||
|- | |- | ||
| 0x14 | | 0x14 | ||