rafi1212122 / BH3_PS

A private server implementation for a third impact game sea mainly but should also work for glb and probably cn too
153 stars 38 forks source link

Need To reinput password #23

Closed Liujunhua007 closed 1 year ago

Liujunhua007 commented 1 year ago

image image

rafi1212122 commented 1 year ago

does that still happen after restarting the game? if still happen are you using mitmproxy proxy.py or some other fiddler script?

Liujunhua007 commented 1 year ago

does that still happen after restarting the game? if still happen are you using mitmproxy proxy.py or some other fiddler script?

using Fiddler Classic which has been setted for grasscuter. 127 0 0 1 443 I see cmd has create account in mogondb table

rafi1212122 commented 1 year ago
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 = "https";
            // oS.bypassGateway = true;
            oS.host = "127.0.0.1:443";
            // oS["x-overrideHost"] = '2.0.0.100';
        }
    }
};

try change the script with that

Liujunhua007 commented 1 year ago
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 = "https";
            // oS.bypassGateway = true;
            oS.host = "127.0.0.1:443";
            // oS["x-overrideHost"] = '2.0.0.100';
        }
    }
};

try change the script with that

image image network fail

rafi1212122 commented 1 year ago
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("bundle"))
        {
            // This can also be replaced with another ip/domain server.
            oS.oRequest.headers.UriScheme = "https";
            // oS.bypassGateway = true;
            oS.host = "127.0.0.1:443";
            // oS["x-overrideHost"] = '2.0.0.100';
        }
    }
};

how about this, i'm sorry if this is not working since i can't test because i don't have cn client

Liujunhua007 commented 1 year ago
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("bundle"))
        {
            // This can also be replaced with another ip/domain server.
            oS.oRequest.headers.UriScheme = "https";
            // oS.bypassGateway = true;
            oS.host = "127.0.0.1:443";
            // oS["x-overrideHost"] = '2.0.0.100';
        }
    }
};

how about this, i'm sorry if this is not working since i can't test because i don't have cn client

still network fail,i try with os cli tomorrow

Liujunhua007 commented 1 year ago

Finished,finally get into ps,find out that cn cli is 6.7ver which is 0.1 ahead of glb cli(6.6ver)