mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{_ as a,r,o as l,c,a as e,b as t,d as i,e as o}from"./app-BRytTWpX.js";const s={},h=o('<h1 id="obtaining-stoken-containing-cookies-using-third-party-tools" tabindex="-1"><a class="header-anchor" href="#obtaining-stoken-containing-cookies-using-third-party-tools"><span>Obtaining Stoken-containing Cookies Using Third-Party Tools</span></a></h1><div class="hint-container warning"><p class="hint-container-title">Warning</p><ul><li>The software, open-source projects, and resources mentioned in the following steps are sourced from the internet and are not affiliated with DGP-Studio.</li><li>This documentation provides solutions for educational purposes only. Specific operations and their consequences are not associated with this project.</li></ul></div><h2 id="android" tabindex="-1"><a class="header-anchor" href="#android"><span>Android</span></a></h2><p>Android users can utilize the open-source project GetToken to acquire cookies containing the Stoken field.</p>',4),d={class:"hint-container tip"},p=e("p",{class:"hint-container-title"},"GetToken Open-Source Project",-1),m={href:"https://github.com/HolographicHat/GetToken",target:"_blank",rel:"noopener noreferrer"},u=o('<ul><li>The GetToken project's release includes two APK files, both ultimately achieving the same outcome. Choose the version suitable for your device: <ul><li><code>app-release.apk</code> is an LSPosed plugin that enables users to use GetToken functionality within the official miHoYo community app.</li><li>APK files ending with <code>lspatched</code> are modified versions of the miHoYo community app with GetToken functionality included. <ul><li>You'll need to uninstall the official miHoYo app to install this version.</li></ul></li></ul></li><li>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.</li><li>Click 🔑 icon in the top right corner.</li><li>Check the <code>Stoken</code> option.</li><li>Click <code>Copy Login Information</code>.</li><li>Send the copied Stoken to the computer where the Snap Hutao is installed.</li><li>In the Snap Hutao's account login section, click <code>Manual Input</code>.</li><li>Enter the previously obtained cookie. You should now complete the login process.</li></ul><h2 id="ios" tabindex="-1"><a class="header-anchor" href="#ios"><span>iOS</span></a></h2><p>iOS Users can download the packet capture software Stream from the App Store to obtain cookies containing the Stoken field.</p>',3),g={href:"https://apps.apple.com/cn/app/stream/id1312141691",target:"_blank",rel:"noopener noreferrer"},k=o("<li>Perform packet capture analysis on the domain <code>api-takumi.mihoyo.com</code>.</li><li>Locate and copy the data containing <code>Stoken</code>. <ul><li>It will be in the form of <code>stuid=****;stoken=v2****;mid=****;</code>.</li></ul></li><li>Send the copied Stoken to the computer where the Snap Hutao is installed.</li><li>In the Snap Hutao's account login section, click <code>Manual Input</code>.</li><li>Enter the obtained cookie. You should now complete the login process.</li>",5);function f(y,S){const n=r("ExternalLinkIcon");return l(),c("div",null,[h,e("div",d,[p,e("ul",null,[e("li",null,[t("GitHub: "),e("a",m,[t("HolographicHat/GetToken"),i(n)])])])]),u,e("ul",null,[e("li",null,[t("Download "),e("a",g,[t("Stream"),i(n)]),t(" from the App Store.")]),k])])}const T=a(s,[["render",f],["__file","get-stoken-cookie-from-the-third-party.html.vue"]]),b=JSON.parse('{"path":"/en/advanced/get-stoken-cookie-from-the-third-party.html","title":"Obtaining Stoken-containing Cookies Using Third-Party Tools","lang":"en-US","frontmatter":{"category":["FAQ","Third-Party Tools"],"icon":"iconfont icon-read","order":7,"comment":false,"description":"There are some third-party tools that can help you obtain the cookie from the miHoYo community with the Stoken field value and use it for Snap Hutao.","banner":"https://opengraph.snapgenshin.cn/generate?url=https://hut.ao/en/advanced/get-stoken-cookie-from-the-third-party.html&has_description=False","head":[["link",{"rel":"alternate","hreflang":"zh-cn","href":"https://hut.ao/zh/advanced/get-stoken-cookie-from-the-third-party.html"}],["link",{"rel":"alternate","hreflang":"id-id","href":"https://hut.ao/id/advanced/get-stoken-cookie-from-the-third-party.html"}],["link",{"rel":"alternate","hreflang":"ru-ru","href":"https://hut.ao/ru/advanced/get-stoken-cookie-from-the-third-party.html"}],["meta",{"property":"og:url","content":"https://hut.ao/en/advanced/get-stoken-cookie-from-the-third-party.html"}],["meta",{"property":"og:site_name","content":"Snap Hutao"}],["meta",{"property":"og:title","content":"Obtaining Stoken-containing Cookies Using Third-Party Tools"}],["meta",{"property":"og:description","content":"There are some third-party tools that can help you obtain the cookie from the miHoYo community with the Stoken field value and use it for Snap Hutao."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"https://opengraph.snapgenshin.cn/generate?url=https://hut.ao/en/advanced/get-stoken-cookie-from-the-third-party.html&has_description=False"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:locale:alternate","content":"zh-CN"}],["meta",{"property":"og:locale:alternate","content":"id-ID"}],["meta",{"property":"og:locale:alternate","content":"ru-RU"}],["meta",{"property":"og:updated_time","content":"2024-06-29T07:18:14.000Z"}],["meta",{"name":"twitter:card","content":"summary_large_image"}],["meta",{"name":"twitter:image:src","content":"https://opengraph.snapgenshin.cn/generate?url=https://hut.ao/en/advanced/get-stoken-cookie-from-the-third-party.html&has_description=False"}],["meta",{"name":"twitter:image:alt","content":"Obtaining Stoken-containing Cookies Using Third-Party Tools"}],["meta",{"property":"article:author","content":"DGP-Studio"}],["meta",{"property":"article:modified_time","content":"2024-06-29T07:18:14.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"Obtaining Stoken-containing Cookies Using Third-Party Tools\\",\\"image\\":[\\"https://opengraph.snapgenshin.cn/generate?url=https://hut.ao/en/advanced/get-stoken-cookie-from-the-third-party.html&has_description=False\\"],\\"dateModified\\":\\"2024-06-29T07:18:14.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"DGP-Studio\\",\\"url\\":\\"https://github.com/DGP-Studio\\"}]}"],["link",{"rel":"alternate","type":"application/rss+xml","href":"https://hut.ao/en/rss.xml","title":"Snap Hutao RSS Feed"}]]},"headers":[{"level":2,"title":"Android","slug":"android","link":"#android","children":[]},{"level":2,"title":"iOS","slug":"ios","link":"#ios","children":[]}],"git":{"createdTime":1673349882000,"updatedTime":1719645494000,"contributors":[{"name":"Masterain","email":"i@irain.in","commits":7},{"name":"Mikachu2333","email":"mikachu.23333@zohomail.com","commits":1},{"name":"Mr.Hope","email":"mister-hope@outlook.com","commits":1},{"name":"Natsume","email":"wardanadm2@gmail.com","commits":1}]},"readingTime":{"minutes":1.26,"words":378},"filePathRelative":"en/advanced/get-stoken-cookie-from-the-third-party.md","localizedDate":"January 10, 2023"}');export{T as comp,b as data};
|