update README_zh-CN.md and README_zh-TW.md (#7)

* Update README_zh-CN.md

* Update README_zh-CN.md

* Update README_zh-CN.md

* Update README_zh-CN.md

* Update README_zh-CN.md

* Update README_zh-CN.md

* Update README_zh-TW.md

* Update README_zh-TW.md

* Update README_zh-TW.md

* Update README_zh-TW.md
This commit is contained in:
moraxs
2023-06-10 13:40:02 +08:00
committed by GitHub
parent e58417f4fa
commit 13b8d319bf
2 changed files with 159 additions and 79 deletions

View File

@@ -2,19 +2,19 @@
<div align="center"><a href="https://discord.gg/fbsRYc7bBA"><img alt="Discord - Server for Lesser Konwn Anime Games" src="https://i.imgtg.com/2023/06/08/O5Lt2S.jpg"></a></div>
[EN](../README.md) [简中](Docs/README_zh-CN.md) [繁中](README_zh-TW.md)
[EN](../README.md) | [简中](Docs/README_zh-CN.md) | [繁中](README_zh-TW.md)
# PemukulPaku
A private server implementation for a third impact game but made in see sharp
## 快速开始
**先决条件*
阅读文章的能力
GitHub 账户
[.NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
**前提条件*
* 阅读文章的能力
* GitHub 账户
* [.NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
在命令行运行如下命令
```
dotnet dev-certs https
dotnet dev-certs https --trust
```
[MongoDB](https://www.mongodb.com/try/download/community)
* [MongoDB](https://www.mongodb.com/try/download/community)
**快速开始*
克隆存储库
```
@@ -34,12 +34,38 @@ git clone https://github.com/rafi1212122/PemukulPaku.git
```
**运行服务*
1.运行 PemukulPaku.exe
**连结至服务器*
**在运行前请确保MongoDB服务已经正确启动**
**连接至服务器*
选择你想要的代理工具 (mitmproxy/Fiddler reccomended)
使用以下脚本之一进行代理配置::
[mitmproxy](https://gist.github.com/rafi1212122/5cc76297d6cf6396de5fc572d1e55812#file-proxy-py)
使用以下工具之一进行代理配置::
[mitmproxy](https://mitmproxy.org/)
[Fiddler](https://github.com/rafi1212122/PemukulPaku/wiki/Starting#connecting-to-the-server)
若出现 ``为了账号安全,请重新输入密码``可尝试使用mitmproxy
## 使用Fiddler
1.运行 Fiddler Classic, 开启解密http通信 ``Tools-options-Https-勾选Decrypt HTTPS traffic``并将端口设为任意未占用端口``Tools-options-Https-Connections``
2.点击Fiddler Script并填入以下内容
```
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
class Handlers
{
static function OnBeforeRequest(oS: Session) {
if(oS.host.EndsWith(".yuanshen.com") || oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".starrails.com") || oS.host.EndsWith(".bhsr.com") || oS.host.EndsWith(".kurogame.com") || oS.host.EndsWith(".zenlesszonezero.com") || oS.host.EndsWith(".g3.proletariat.com") || oS.host.EndsWith("west.honkaiimpact3.com") || oS.host.EndsWith("westglobal01.honkaiimpact3.com") || oS.host.EndsWith(".os.honkaiimpact3.com") || oS.host.EndsWith("overseas01-appsflyer-report.honkaiimpact3.com") || oS.host.EndsWith(".mihoyo.com") || (oS.host.EndsWith("bh3.com") && !oS.host.Contains("bundle"))) {
oS.host = "localhost";
}
}
}
```
## 使用mitmproxy
1.从[这里](https://gist.github.com/rafi1212122/5cc76297d6cf6396de5fc572d1e55812#file-proxy-py)获取proxy.py
2.在proxy.py所在目录运行 `mitmdump -s proxy.py -k`命令
3.设置系统代理为你所设置的端口,默认为 ``127.0.0.1:8080``
4.信任CA证书
* mitmproxy 的 CA 证书通常存放在 `%USERPROFILE%\ .mitmproxy` 或者浏览器访问 ``http://mitm.it``下载证书,如果你访问该地址后看到了 ``If you can see this, traffic is not passing through mitmproxy.``说明mitmproxy配置有误请重新配置
* 双击安装证书,或者运行 ``certutil -addstore root %USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.p12``命令
了解更多[GitHub wiki](https://github.com/rafi1212122/PemukulPaku/wiki)
@@ -65,4 +91,4 @@ git clone https://github.com/rafi1212122/PemukulPaku.git
了解更多[development](https://github.com/rafi1212122/PemukulPaku/wiki/Development)
## 支持
[Discord server](https://discord.gg/fbsRYc7bBA) or GitHub issue
加入[Discord server](https://discord.gg/fbsRYc7bBA) or 提交GitHub issue

View File

@@ -3,7 +3,8 @@
[EN](../README.md)|[簡中](README_zh-CN.md)|[繁中](Docs/README_zh-TW.md)
[EN](../README.md)|[簡中](README_zh-CN.md)|[繁中](README_zh-TW.md)
# PemukulPaku
@@ -11,23 +12,23 @@ A private server implementation for a third impact game but made in see sharp
##快速開始
**先決條件*
**前提條件*
閱讀文章的能力
*閱讀文章的能力
GitHub帳戶
* GitHub帳戶
[.NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
* [.NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
在命令列運行如下命令
```
dotnet dev-certs https
dotnet dev-certs https --trust
```
[MongoDB](https://www.mongodb.com/try/download/community )
* [MongoDB](https://www.mongodb.com/try/download/community)
**快速開始*
@@ -41,7 +42,7 @@ git clone https://github.com/rafi1212122/PemukulPaku.git
從[這裡]下載最新action(https://github.com/rafi1212122/PemukulPaku/actions)下載最新action.
從[這裡](https://github.com/rafi1212122/PemukulPaku/actions)下載最新action.
進入PemukulPaku資料夾將下載的action解壓到該資料夾下
@@ -66,16 +67,69 @@ git clone https://github.com/rafi1212122/PemukulPaku.git
1.運行PemukulPaku.exe
**連結至服務器*
**在運行前請確保MongoDB服務已經正確啟動**
**連接至服務器*
選擇你想要的代理工具(mitmproxy/Fiddler reccomended)
使用以下腳本之一進行代理配寘::
使用以下工具之一進行代理配寘::
[mitmproxy](https://gist.github.com/rafi1212122/5cc76297d6cf6396de5fc572d1e55812#file -proxy-py)
[mitmproxy](https://mitmproxy.org/)
[Fiddler](https://github.com/rafi1212122/PemukulPaku/wiki/Starting#connecting-to-the-server)
若出現``為了帳號安全,請重新輸入密碼``可嘗試使用mitmproxy
##使用Fiddler
1.運行Fiddler Classic開啟解密http通信``Tools-options-Https-勾選Decrypt HTTPS traffic``並將埠設為任意未佔用埠``Tools-options-Https-Connections``
2.點擊Fiddler Script並填入以下內容
```
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
class Handlers
{
static function OnBeforeRequest(oS: Session){
if(oS.host.EndsWith(".yuanshen.com")|| oS.host.EndsWith(".hoyoverse.com")|| oS.host.EndsWith(".starrails.com")|| oS.host.EndsWith(".bhsr.com")|| oS.host.EndsWith(".kurogame.com")|| oS.host.EndsWith(".zenlesszonezero.com")|| oS.host.EndsWith(".g3.proletariat.com")|| oS.host.EndsWith("west.honkaiimpact3.com")|| oS.host.EndsWith("westglobal01.honkaiimpact3.com")|| oS.host.EndsWith( ".os.honkaiimpact3.com")|| oS.host.EndsWith("overseas01-appsflyer-report.honkaiimpact3.com")|| oS.host.EndsWith(".mihoyo.com")||(oS.host.EndsWith("bh3.com")&&! oS.host.Contains("bundle"))){
oS.host ="localhost";
}
}
}
```
##使用mitmproxy
1.從[這裡](https://gist.github.com/rafi1212122/5cc76297d6cf6396de5fc572d1e55812#file-proxy-py)獲取proxy.py
2.在proxy.py所在目錄運行`mitmdump -s proxy.py -k`命令
3.設定系統代理為你所設定的埠,默認為``127.0.0.1:8080``
4.信任CA證書
* mitmproxy的CA證書通常存放在`%USERPROFILE%\ .mitmproxy`或者瀏覽器訪問`` http://mitm.it ``下載證書,如果你訪問該地址後看到了``If you can see thistraffic is not passing through mitmproxy.`` 說明mitmproxy配寘有誤請重新配寘
*按兩下安裝證書,或者運行``certutil -addstore root %USERPROFILE%\.mitmproxy\mitmproxy-ca-cert.p12``命令
@@ -127,4 +181,4 @@ git clone https://github.com/rafi1212122/PemukulPaku.git
##支持
[Discord server]( https://discord.gg/fbsRYc7bBA)or GitHub issue
加入[Discord server](https://discord.gg/fbsRYc7bBA)or提交GitHub issue