Closed yehuoshun closed 1 year ago
mitmdump -s proxy.py -k
- install mitmproxy
- run the proxy
mitmdump -s proxy.py -k
- launch the game
I have done it as required, but I can't login
It is the official game to start the game directly
I was having some issues with using mitmproxy as well for some reason, the game just wouldn't redirect properly and I have no idea why as I've used it just fine for other anime games before. What I did as a stopgap fix is use Fiddler Classic with this 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(".mihoyo.com") ||
oS.host.EndsWith(".yuanshen.com:12401") ||
oS.host.EndsWith(".starrails.com") ||
oS.host.EndsWith(".kurogame.com") ||
oS.host.EndsWith(".zenlesszonezero.com") ||
oS.host.EndsWith(".api.g3.proletariat.com") ||
oS.host.EndsWith(".honkaiimpact3.com") ||
oS.host.EndsWith(".bh3.com") ||
oS.uriContains("http://overseauspider.yuanshen.com:8888/log"))
{
// This can also be replaced with another ip/domain server.
// oS.oRequest.headers.UriScheme = "http";
// oS.bypassGateway = true;
oS.host = "localhost";
// oS["x-overrideHost"] = '2.0.0.100';
}
}
};
This might come with it's own issues though, as I'm not sure how far we're supposed to be able to get into the login/ship entry process yet.
I was having same issues,
the ps also only work for sea and global game client without some modification.
How to operate after “npm run dev ”? It is the official game to start the game directly(Google Translation)