0% found this document useful (0 votes)
81 views

Script Server 2

This script modifies Genshin Impact network requests by intercepting and redirecting URLs to force HTTPS and change the host. It contains a list of 24 Genshin Impact API domains and checks each request URL against the list, replacing "http://" with "https://" and changing the host if a match is found. It also blocks requests to a specific logging domain.

Uploaded by

Dalila Cabral
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views

Script Server 2

This script modifies Genshin Impact network requests by intercepting and redirecting URLs to force HTTPS and change the host. It contains a list of 24 Genshin Impact API domains and checks each request URL against the list, replacing "http://" with "https://" and changing the host if a match is found. It also blocks requests to a specific logging domain.

Uploaded by

Dalila Cabral
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

/* Original script by NicknameGG Been Renamed By VincDev*/

import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
var list = [
"https://api-os-takumi.mihoyo.com/", //1
"https://hk4e-api-os-static.mihoyo.com/", //2
"https://hk4e-sdk-os.mihoyo.com/",
"https://dispatchosglobal.yuanshen.com/",
"https://osusadispatch.yuanshen.com/", // 5
"https://account.mihoyo.com/",
"https://log-upload-os.mihoyo.com/",
"https://dispatchcntest.yuanshen.com/",
"https://devlog-upload.mihoyo.com/",
"https://webstatic.mihoyo.com/", // 10
"https://log-upload.mihoyo.com/",
"https://hk4e-sdk.mihoyo.com/",
"https://api-beta-sdk.mihoyo.com/",
"https://api-beta-sdk-os.mihoyo.com/",
"https://cnbeta01dispatch.yuanshen.com/", // 15
"https://dispatchcnglobal.yuanshen.com/",
"https://cnbeta02dispatch.yuanshen.com/",
"https://sdk-os-static.mihoyo.com/",
"https://webstatic-sea.mihoyo.com/",
"https://webstatic-sea.hoyoverse.com/", // 20
"https://hk4e-sdk-os-static.hoyoverse.com/",
"https://sdk-os-static.hoyoverse.com/",
"https://api-account-os.hoyoverse.com/",
"https://hk4e-sdk-os.hoyoverse.com/",
];
class Handlers
{
static function OnBeforeRequest(oS: Session) {
var active = true;
if(active) {
if(oS.uriContains("http://overseauspider.yuanshen.com:8888/log")){
oS.oRequest.FailSession(404, "Blocked", "yourmom");
}
for(var i = 0; i < 24 ;i++) {
if(oS.uriContains(list[i])) {
oS.fullUrl = oS.fullUrl.Replace("http://", "https://");
oS.host = "game.yuuki.me"; // This can also be replaced with
another IP address.
break;
}
}
}
}
};

You might also like