Obtaining Stoken-containing Cookies Using Third-Party Tools
January 10, 2023FAQThird-Party ToolsAbout 1 min
Obtaining Stoken-containing Cookies Using Third-Party Tools
Warning
- The software, open-source projects, and resources mentioned in the following steps are sourced from the internet and are not affiliated with DGP-Studio.
- This documentation provides solutions for educational purposes only. Specific operations and their consequences are not associated with this project.
Android
Android users can utilize the open-source project GetToken to acquire cookies containing the Stoken field.
GetToken Open-Source Project
- GitHub: HolographicHat/GetToken
- The GetToken project's release includes two APK files, both ultimately achieving the same outcome. Choose the version suitable for your device:
app-release.apk
is an LSPosed plugin that enables users to use GetToken functionality within the official miHoYo community app.- APK files ending with
lspatched
are modified versions of the miHoYo community app with GetToken functionality included.- You'll need to uninstall the official miHoYo app to install this version.
- After enabling the plugin or installing the modified miHoYo app, open the miHoYo app, click "Me" at the bottom, and log in to your account.
- Click 🔑 icon in the top right corner.
- Check the
Stoken
option. - Click
Copy Login Information
. - Send the copied Stoken to the computer where the Snap Hutao is installed.
- In the Snap Hutao's account login section, click
Manual Input
. - Enter the previously obtained cookie. You should now complete the login process.
iOS
iOS Users can download the packet capture software Stream from the App Store to obtain cookies containing the Stoken field.
- Download Stream from the App Store.
- Perform packet capture analysis on the domain
api-takumi.mihoyo.com
. - Locate and copy the data containing
Stoken
.- It will be in the form of
stuid=****;stoken=v2****;mid=****;
.
- It will be in the form of
- Send the copied Stoken to the computer where the Snap Hutao is installed.
- In the Snap Hutao's account login section, click
Manual Input
. - Enter the obtained cookie. You should now complete the login process.