开始写如何用Fidder

This commit is contained in:
枫谷剑仙 2021-09-08 00:33:53 +08:00
parent c54ef6fa48
commit adae261c43
1 changed files with 68 additions and 15 deletions

View File

@ -15,6 +15,7 @@
background-color: rgba(175, 184, 193, 0.2);
border-radius: 6px;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
white-space: pre-wrap;
}
ul>li {
@ -44,20 +45,30 @@
<h2 id="android">安卓用户 | Android User</h2>
<h3 id="no-root">无 Root 设备用户 | No Root device user</h3>
<p>你需要在在电脑上安装一个能运行智龙迷城的安卓模拟器,比如 夜神模拟器、逍遥安卓、蓝叠模拟器。后面以<a href="https://www.bignox.com/">夜神模拟器国际版</a>进行讲解。(与夜神没有任何赞助关系。国际版自带谷歌套装,也能改中文)<br>
You'll need to install an Android simulator on your PC that runs P&amp;D, such as NoxPlayer, MEmu Play, BlueStacks. I'll use <a href="https://www.bignox.com/">NoxPlayer</a> later to explain. (There is no sponsorship relationship with NOX.)
<p>你需要在在电脑上安装一个能运行智龙迷城的安卓模拟器,比如 夜神模拟器、逍遥安卓、蓝叠模拟器。后面以<a
href="https://www.bignox.com/">夜神模拟器国际版</a>进行讲解。(与夜神没有任何赞助关系。国际版自带谷歌套装,也能改中文)<br>
You'll need to install an Android simulator on your PC that runs P&amp;D, such as NoxPlayer, MEmu Play,
BlueStacks. I'll use <a href="https://www.bignox.com/">NoxPlayer</a> later to explain. (There is no sponsorship
relationship with NOX.)
</p>
<p>自行安装智龙迷城游戏并登录你的游戏账号。<br>
Install P&amp;D and log in to your game account.<br>
<img src="images/player-emu-pad-download-data.webp" alt="下载PAD数据">
</p>
<p>如果闪退,打开多开器,添加一个能运行智龙迷城的版本,目前有 安卓7 和 安卓7-64位。<br>
If P&amp;D can't be opened, run the Multi-Player Manager and add a version that runs P&amp;D, currently available in Android 7 and Android 7-64 bits.<br>
If P&amp;D can't be opened, run the Multi-Drive and add a version that runs P&amp;D, currently available in
Android 7 and Android 7-64 bits.<br>
<img src="images/player-emu-add-new.webp" alt="添加模拟器">
</p>
<h4 id="use-HttpCanary">使用 HttpCanary | Use HttpCanary</h4>
<p>然后你可以选择在安卓内使用 APP 和电脑上用代理软件两种方式抓包。<br>
You can then choose to sniffer in both use the APP within Android and proxy software on your PC.<br>
<img src="images/player-emu-add-new.webp" alt="添加模拟器">
</p>
<h4 id="use-HttpCanary">使用 HttpCanary APP | Use HttpCanary APP</h4>
<p>请自行从网上搜索并安装 <a href="https://www.423down.com/9279.html">HttpCanary</a>(已被谷歌商店下架)。<br>
Please search the web and install <a href="https://apkpure.com/httpcanary-%E2%80%94-http-sniffer-capture-analysis/com.guoshi.httpcanary">HttpCanary</a> yourself (It's blocked by google store).<br>
Please search the web and install <a
href="https://apkpure.com/httpcanary-%E2%80%94-http-sniffer-capture-analysis/com.guoshi.httpcanary">HttpCanary</a>
yourself (It's blocked by google store).<br>
<img src="images/player-emu-install-apk.webp" alt="安装 APK">
</p>
<p>打开模拟器的 Root并重启。<br>
@ -65,11 +76,13 @@
<img src="images/player-emu-open-root.webp" alt="打开 Root">
</p>
<p>运行 HttpCanary按照提示配置本地 VPN 和导入证书(系统可能要求设置密码)。<br>
Run HttpCanary, follow the prompts to configure the local VPN and import certificates (The system may require a password).<br>
Run HttpCanary, follow the prompts to configure the local VPN and import certificates (The system may require a
password).<br>
<img src="images/player-emu-httpcanary-vpn.webp" alt="开启 VPN">
<img src="images/player-emu-httpcanary-cer.webp" alt="安装证书"><br>
授予 Root 权限,将证书移至系统目录。安卓 7 以上必须这样做才能嗅探到 https 的流量。<br>
Grant Root permission to move the certificates to the system directory. Android 7 or above must do this to sniff out https traffic.<br>
Grant Root permission to move the certificates to the system directory. Android 7 or above must do this to sniff
out https traffic.<br>
<img src="images/player-emu-httpcanary-move-cer.webp" alt="移动证书到系统目录">
</p>
<p>可以根据需要关闭 Root 了(日服客户端需要关闭 Root 才能运行)。<br>
@ -87,8 +100,10 @@
Run the P&amp;D game until log in successfully.<br>
<img src="images/player-emu-pad-login.webp" alt="登录游戏">
</p>
<p>返回 HttpCanary找到<code>padsv.gungho.jp/api.php?action=get_player_data</code>网络请求。(一般紧跟<code>api.php?action=login</code><br>
Go back to HttpCanary to find the network request <code>padsv.gungho.jp/api.php?action=get_player_data</code>. (Generally followed by <code>api.php?action=login</code>)<br>
<p>返回
HttpCanary找到<code>padsv.gungho.jp/api.php?action=get_player_data</code>网络请求。(一般紧跟<code>api.php?action=login</code><br>
Go back to HttpCanary to find the network request <code>padsv.gungho.jp/api.php?action=get_player_data</code>.
(Generally followed by <code>api.php?action=login</code>)<br>
<img src="images/player-emu-httpcanary-find-item.webp" alt="找到请求">
</p>
<p>进入该条目,保存响应体。<br>
@ -96,7 +111,9 @@
<img src="images/player-emu-httpcanary-save-response-body.webp" alt="保存响应体">
</p>
<p>使用文件管理器找到<code>手机储存/HttpCanary/download/[你保存的名称]/response_body.html</code>,这个就是你的游戏数据。<br>
Use the file manager to find <code>[Phone Storage]/HttpCanary/download/[The name you saved]/response_body.html</code>, and this is your game data.<br>
Use the file manager to find
<code>[Phone Storage]/HttpCanary/download/[The name you saved]/response_body.html</code>, and this is your game
data.<br>
<img src="images/player-emu-httpcanary-saved-data.webp" alt="保存的文件">
</p>
<p>打开模拟器的电脑共享目录。<br>
@ -104,7 +121,8 @@
<img src="images/player-emu-open-pc-folder.webp" alt="打开电脑共享路径">
</p>
<p><code>response_body.html</code>复制到<code>手机储存/Download</code>文件夹,即可在电脑上看到文件。<br>
Copy <code>response_body.html</code> to <code>[Phone Storage]/Download</code> folder to see files on your PC.<br>
Copy <code>response_body.html</code> to <code>[Phone Storage]/Download</code> folder to see files on your
PC.<br>
<img src="images/player-emu-httpcanary-copy-to-download.webp" alt="复制到下载文件夹">
</p>
<p>到我的箱子功能里打开即可。<br>
@ -115,13 +133,48 @@
Each time you get new data, repeat the steps to Start httpCanary > Log in to the game > Save Response Body.
</p>
<p>如果希望不要每次都重新使用 SNS 登录游戏,可以查看<a href="#multiple-devices">如何多设备登录</a><br>
If you want to not reuse the SNS login game every time, you can see <a href="#multiple-devices">How to login with multiple devices</a>.
If you want to not reuse the SNS login game every time, you can see <a href="#multiple-devices">How to login
with multiple devices</a>.
</p>
<h4 id="use-Fidder">使用 Fidder | Use Fidder</h4>
<p>在电脑上安装<a href="https://telerik-fiddler.s3.amazonaws.com/fiddler/FiddlerSetup.exe">Fiddler Classic</a></p>
<h4 id="use-Fidder">在电脑上使用 Fidder | Use Fidder on PC</h4>
<p>在电脑上安装<a href="https://telerik-fiddler.s3.amazonaws.com/fiddler/FiddlerSetup.exe">Fiddler Classic</a><br>
Install <a href="https://telerik-fiddler.s3.amazonaws.com/fiddler/FiddlerSetup.exe">Fiddler Classic</a> on your PC.<br>
<img src="images/player-fidder-install.png" alt="装好的 Fidder">
</p>
<p>为了使模拟器能连接 Fidder打开允许远程计算机连接的功能。<br>同时为避免抓到其他无用的流量,推荐你关闭自动设为系统代理的选项并重启 Fidder。<br>
In order for the simulator to connect to Fidder, turn on the feature that <em>Allow remote computers to connect</em>.<br>And for avoid catching unwanted traffic, it is recommended that turn off the option <em>Act as the system proxy on startup</em> and restart the Fidder.<br>
<img src="images/player-fidder-close-system-proxy.png" alt="关闭默认代理">
</p>
<p>打开 HTTPS 解密,警告询问你是否添加证书到电脑可以选择否,因为我们不需要解密电脑上的流量。<br>
Turn on <em>decrypt HTTPS traffic</em>. The warning asks if you want to add the certificate to your PC and you can choose No because we don't need to decrypt traffic from your PC.<br>
<img src="images/player-fidder-decrypt-https.png" alt="打开 HTTPS解密">
</p>
<p>将根证书导出到桌面。<br>
Export the root certificate to the desktop.<br>
<img src="images/player-fidder-export-cer-to-desktop.png" alt="导出证书到桌面">
</p>
<p>在桌面按住 Shift 点击鼠标右键,打开 PowerShell。<br>
</p>
<p>在 PowerShell 中,执行以下三行代码,之后你将会在桌面上,见到一个<code>FiddlerRoot.pem</code>文件。<br>
<code>
$cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2(Resolve-Path "FiddlerRoot.cer");
$pem="-----BEGIN CERTIFICATE-----`r`n"+[Convert]::ToBase64String($cert.RawData, [Base64FormattingOptions]::InsertLineBreaks)+"`r`n-----END CERTIFICATE-----";
$pem | Out-File -Encoding ascii -FilePath FiddlerRoot.pem
</code>
</p>
<p>打开模拟器的 Root并重启。<br>
Open the simulator's root and restart.<br>
<img src="images/player-emu-open-root.webp" alt="打开 Root">
</p>
<p><code>FiddlerRoot.pem</code>复制到<code>/systen/etc/security/cert</code>文件夹内,并重启模拟器。<br>
</p>
<p>可以根据需要关闭 Root 了(日服客户端需要关闭 Root 才能运行)。<br>
Root can be closed as needed. (The Japanese version client needs to close Root operation.)
</p>
<p>待写 To be written</p>
<h5>自动保存响应体 | Auto Save Response Body</h5>
<code style="white-space: pre-wrap;">//自动储存智龙迷城数据
<code>//自动储存智龙迷城数据
var PADDataPath = "D:\\PAD_Data\\";
if (oSession.HostnameIs("api-adr.padsv.gungho.jp") //日服域名
|| oSession.HostnameIs("api-ht-adr.padsv.gungho.jp") //港台服域名