Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
c77aa3ff
Commit
c77aa3ff
authored
Apr 23, 2022
by
WangYneos
Browse files
make mitmproxy ignore non Genshin hosts
parent
ca6315f2
Changes
2
Show whitespace changes
Inline
Side-by-side
README.md
View file @
c77aa3ff
...
...
@@ -29,7 +29,7 @@ A WIP server reimplementation for *some anime game* 2.3-2.6
### Connecting with the client
½. Create an account using
*server console command*
below
1.
Run a proxy daemon: (choose either one)
-
mitmdump:
`mitmdump -s proxy.py -k`
-
mitmdump:
`mitmdump -s proxy.py -k`
--allow-hosts ".
*\.yuanshen\.com|.*
\.
mihoyo
\.
com|.
*
\.
hoyoverse
\.
com"
-
Fiddler Classic: Run Fiddler Classic, turn on
`Decrypt https traffic`
in setting and change the default port there (Tools -> Options -> Connections) to anything other than
`8888`
, and load
[
this script
](
https://github.lunatic.moe/fiddlerscript
)
.
-
[
Hosts file
](
https://github.com/Melledy/Grasscutter/wiki/Running#traffic-route-map
)
2.
Trust CA certificate:
...
...
start.cmd
View file @
c77aa3ff
...
...
@@ -75,7 +75,7 @@ for /f "tokens=2*" %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVe
@rem TODO: External proxy when ORIG_PROXY_ENABLE == 0x1
echo
set
ws
=
createobject
(
"wscript.shell"
)
>
"
%temp%
\proxy.vbs"
echo
ws
.currentdirectory
=
"
%MITMDUMP_PATH%
"
>>
"
%temp%
\proxy.vbs"
echo
ws
.run
"cmd /c mitmdump.exe -s "
^&
chr
(
34
)
^&
"
%PROXY_SCRIPT_NAME%
"
^&
chr
(
34
)
^&
" -k"
,
0
>>
"
%temp%
\proxy.vbs"
echo
ws
.run
"cmd /c mitmdump.exe -s "
^&
chr
(
34
)
^&
"
%PROXY_SCRIPT_NAME%
"
^&
chr
(
34
)
^&
" -k
--allow-hosts \"
.
*
\.yuanshen\.com
|
.
*
\.mihoyo\.com
|
.
*
\.hoyoverse\.com\
"
"
,
0
>>
"
%temp%
\proxy.vbs"
"
%temp%
\proxy.vbs"
del
/f /q
"
%temp%
\proxy.vbs"
>
nul
2
>
nul
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment