diff --git a/doc/export-player-data.html b/doc/export-player-data.html index fb69aadc..701fdfdc 100644 --- a/doc/export-player-data.html +++ b/doc/export-player-data.html @@ -17,7 +17,11 @@ font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; white-space: pre-wrap; } - + .block-code + { + display: block; + background-color: #ddd; + } ul>li { margin-bottom: 5px; } @@ -139,66 +143,124 @@
在电脑上安装Fiddler Classic
Install Fiddler Classic on your PC.
-
+
为了使模拟器能连接 Fidder,打开允许远程计算机连接的功能。
同时为避免抓到其他无用的流量,推荐你关闭自动设为系统代理的选项并重启 Fidder。
In order for the simulator to connect to Fidder, turn on the feature that Allow remote computers to connect.
And for avoid catching unwanted traffic, it is recommended that turn off the option Act as the system proxy on startup and restart the Fidder.
-
+
打开 HTTPS 解密,警告询问你是否添加证书到电脑可以选择否,因为我们不需要解密电脑上的流量。
Turn on decrypt HTTPS traffic. 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.
-
+
将根证书导出到桌面。
- Export the root certificate to the desktop.
-
+
将根证书导出到桌面,之后你将会在桌面上看到一个FiddlerRoot.cer
文件。
+ Export the root certificate to the desktop. You will then see a file FiddlerRoot.cer
on your desktop.
+
在桌面按住 Shift 点击鼠标右键,打开 PowerShell。
+
在桌面按住 Shift 点击鼠标右键,在此打开 PowerShell。
+ Press and hold Shift on the desktop and right-click to open PowerShell here.
+
在 PowerShell 中,执行以下三行代码,之后你将会在桌面上,见到一个FiddlerRoot.pem
文件。
-
- $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
-
+
在 PowerShell 中,执行以下代码,之后你将会在桌面上,见到一个269953fb.0
文件。
+ In PowerShell, execute the following codes, and then you'll see a 269953fb.0
file on your desktop.
+# get the cer full path
+$cert_path=Resolve-Path "FiddlerRoot.cer";
+# create a cert object
+$cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($cert_path);
+# create a md5 object
+$md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider;
+# to openssl hash "-subject_hash_old"
+# get the cert SubjectName md5 hash
+$md5bin = $md5.ComputeHash($cert.SubjectName.RawData);
+# convert to this format bytes
+$hashnum = ([long]$md5bin[0] -bor ([long]$md5bin[1] -shl 8) -bor ([long]$md5bin[2] -shl 16) -bor ([long]$md5bin[3] -shl 24)) -band 0xffffffff;
+# convert bytes to file name
+$pem_name = [Convert]::ToString($hashnum, 16).padleft(8,"0")+".0";
+# create PEM format content
+$str=New-Object System.Text.StringBuilder("");
+$str.AppendLine("-----BEGIN CERTIFICATE-----");
+$str.AppendLine([Convert]::ToBase64String($cert.RawData, [Base64FormattingOptions]::InsertLineBreaks));
+$str.AppendLine("-----END CERTIFICATE-----");
+# save the file
+$str.ToString() | Out-File -Encoding ascii -FilePath $pem_name
+
打开模拟器的 Root,并重启。
Open the simulator's root and restart.
将FiddlerRoot.pem
复制到/systen/etc/security/cert
文件夹内,并重启模拟器。
+
使用共享文件夹,将269953fb.0
转移到模拟器。
+ Use the shared folder to transfer 269953fb.0
to the simulator.
+
+
将269953fb.0
复制到/system/etc/security/cacerts
文件夹内。
+ Copy the 269953fb.0
to the /system/etc/security/cacerts
folder.
+
+
打开269953fb.0
文件属性,设置权限为-rw-r--r--(644)
。
+ Open 269953fb.0
file properties and set permissions to -rw-r--r--(644)
+
+
重启模拟器,以使证书被系统读取。
+ Restart the simulator so that the certificate is read by the system.
可以根据需要关闭 Root 了(日服客户端需要关闭 Root 才能运行)。
Root can be closed as needed. (The Japanese version client needs to close Root operation.)
待写 To be written
+修改模拟器内 WiFi 的代理,改为手动模式,主机名为电脑的网卡 IP,端口号为 8888。
+ Modify the proxy of WiFi in the simulator to manual mode, the host name is the computer's network card IP, port number 8888.
+
+ 你可以在电脑网卡属性里找到当前 IP。
+ You can find the current IP in the PC network card properties.
+
+
打开 Fiddler 的自动解码和流式传输。
+ Turn on Fiddler's auto Decode and Stream.
+
+
运行智龙迷城游戏,直到登陆成功。
+ Run the P&D game until log in successfully.
+
+
然后在 Fidder 内找到padsv.gungho.jp/api.php?action=get_player_data
网络请求。(一般紧跟api.php?action=login
)
+ Go back to Fidder to find the network request padsv.gungho.jp/api.php?action=get_player_data
.
+
+
在右键菜单内选择保存响应体。
+ Select Save Response Body within the right-click menu.
+
+
到我的箱子功能里打开即可。
+ Open my box function and open it.
+
+
每次获取新的数据,重复 开启 Fidder > 模拟器内登录游戏 > 保存响应体 的步骤。
+ Each time you get new data, repeat the steps to Start Fidder > Log in to the game in the simulator > Save Response Body.
+
如果希望不要每次都重新使用 SNS 登录游戏,可以查看如何多设备登录。
+ If you want to not reuse the SNS login game every time, you can see How to login
+ with multiple devices.
+
//自动储存智龙迷城数据
-var PADDataPath = "D:\\PAD_Data\\";
-if (oSession.HostnameIs("api-adr.padsv.gungho.jp") //日服域名
- || oSession.HostnameIs("api-ht-adr.padsv.gungho.jp") //港台服域名
- || oSession.HostnameIs("api-na-adrv2.padsv.gungho.jp") //美服域名
- || oSession.HostnameIs("api-kr-adrv2.padsv.gungho.jp") //韩服域名
-) {
- var serverName;
- switch (oSession.hostname)
- {
- case "api-adr.padsv.gungho.jp": //日服域名
- case "api-ht-adr.padsv.gungho.jp": //港台服域名
- serverName = "ja"
- break;
- case "api-na-adrv2.padsv.gungho.jp": //美服域名
- serverName = "en"
- break;
- case "api-kr-adrv2.padsv.gungho.jp": //韩服域名
- serverName = "ko"
- break;
- }
- if (oSession.uriContains("action=get_player_data")) { //自动保存怪物数据
- oSession.SaveResponseBody(PADDataPath + serverName + "-player-data-" + new Date().getTime() + ".json");
- }
+ Fidder 可以使用脚本自动保存响应体。
+ Fidder can use scripts to automatically save Response Body.
+
+ 在 Fidder 脚本中,快速跳转到OnBeforeResponse
。
+ In the Fidder Script, quickly jump to the OnBeforeResponse
+
+
+ 将以下代码插入OnBeforeResponse
代码括号内,并保存。
+ Insert the following code into the parenthesis of the OnBeforeResponse
code and save it.
+ 
+ 记得将第一行的文件路径修搞到你自己的文件夹,因为是转义符,右斜杠需要写两次。
+ Remember to fix the first line of file paths to your own folder, because it's an escape character, and the right slash needs to be written twice.
+ // the file saved path
+var PADDataPath = "D:\\PAD_Data";
+if (oSession.uriContains("action=get_player_data")) {
+ oSession.SaveResponseBody(PADDataPath + "\\player-data-" + new Date().getTime() + ".json");
}
+
+
如何多设备登录 | How to login with multiple devices
导出data048.bin
待写 To be written
diff --git a/doc/images/player-fidder-close-system-proxy.webp b/doc/images/player-fidder-close-system-proxy.webp
new file mode 100644
index 00000000..8ae0c761
Binary files /dev/null and b/doc/images/player-fidder-close-system-proxy.webp differ
diff --git a/doc/images/player-fidder-decrypt-https.webp b/doc/images/player-fidder-decrypt-https.webp
new file mode 100644
index 00000000..808a9545
Binary files /dev/null and b/doc/images/player-fidder-decrypt-https.webp differ
diff --git a/doc/images/player-fidder-export-cer-convert.webp b/doc/images/player-fidder-export-cer-convert.webp
new file mode 100644
index 00000000..a1173274
Binary files /dev/null and b/doc/images/player-fidder-export-cer-convert.webp differ
diff --git a/doc/images/player-fidder-export-cer-copy-to-system.webp b/doc/images/player-fidder-export-cer-copy-to-system.webp
new file mode 100644
index 00000000..dc7d1d8e
Binary files /dev/null and b/doc/images/player-fidder-export-cer-copy-to-system.webp differ
diff --git a/doc/images/player-fidder-export-cer-get-pc-ip.webp b/doc/images/player-fidder-export-cer-get-pc-ip.webp
new file mode 100644
index 00000000..bc2a9b30
Binary files /dev/null and b/doc/images/player-fidder-export-cer-get-pc-ip.webp differ
diff --git a/doc/images/player-fidder-export-cer-open-powershell.webp b/doc/images/player-fidder-export-cer-open-powershell.webp
new file mode 100644
index 00000000..acc42c3a
Binary files /dev/null and b/doc/images/player-fidder-export-cer-open-powershell.webp differ
diff --git a/doc/images/player-fidder-export-cer-set-permissions.webp b/doc/images/player-fidder-export-cer-set-permissions.webp
new file mode 100644
index 00000000..7303be16
Binary files /dev/null and b/doc/images/player-fidder-export-cer-set-permissions.webp differ
diff --git a/doc/images/player-fidder-export-cer-set-proxy.webp b/doc/images/player-fidder-export-cer-set-proxy.webp
new file mode 100644
index 00000000..34a6d615
Binary files /dev/null and b/doc/images/player-fidder-export-cer-set-proxy.webp differ
diff --git a/doc/images/player-fidder-export-cer-shared-folder.webp b/doc/images/player-fidder-export-cer-shared-folder.webp
new file mode 100644
index 00000000..99cbb08d
Binary files /dev/null and b/doc/images/player-fidder-export-cer-shared-folder.webp differ
diff --git a/doc/images/player-fidder-export-cer-to-desktop.webp b/doc/images/player-fidder-export-cer-to-desktop.webp
new file mode 100644
index 00000000..b87c2ffc
Binary files /dev/null and b/doc/images/player-fidder-export-cer-to-desktop.webp differ
diff --git a/doc/images/player-fidder-found-traffic.webp b/doc/images/player-fidder-found-traffic.webp
new file mode 100644
index 00000000..9d5e0a44
Binary files /dev/null and b/doc/images/player-fidder-found-traffic.webp differ
diff --git a/doc/images/player-fidder-go-to-script.webp b/doc/images/player-fidder-go-to-script.webp
new file mode 100644
index 00000000..f70371ee
Binary files /dev/null and b/doc/images/player-fidder-go-to-script.webp differ
diff --git a/doc/images/player-fidder-install.webp b/doc/images/player-fidder-install.webp
new file mode 100644
index 00000000..ef5e4a6e
Binary files /dev/null and b/doc/images/player-fidder-install.webp differ
diff --git a/doc/images/player-fidder-open-auto-decode.webp b/doc/images/player-fidder-open-auto-decode.webp
new file mode 100644
index 00000000..2ac020c9
Binary files /dev/null and b/doc/images/player-fidder-open-auto-decode.webp differ
diff --git a/doc/images/player-fidder-paste-code.webp b/doc/images/player-fidder-paste-code.webp
new file mode 100644
index 00000000..bad56e68
Binary files /dev/null and b/doc/images/player-fidder-paste-code.webp differ
diff --git a/doc/images/player-fidder-save-response-body.webp b/doc/images/player-fidder-save-response-body.webp
new file mode 100644
index 00000000..aee97d4e
Binary files /dev/null and b/doc/images/player-fidder-save-response-body.webp differ