0% found this document useful (0 votes)
117 views1 page

Script Server

This script modifies network requests for a Genshin Impact game client by intercepting and redirecting URLs from a list of MiHoYo domains to HTTPS and a custom host. It fails requests to a specific logging domain. The script contains a list of MiHoYo domain URLs and a function that runs on each request before it is sent, checks if the request URL contains a domain from the list, replaces HTTP with HTTPS if there is a match, changes the host, and fails a request to a specific logging domain.

Uploaded by

Eli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views1 page

Script Server

This script modifies network requests for a Genshin Impact game client by intercepting and redirecting URLs from a list of MiHoYo domains to HTTPS and a custom host. It fails requests to a specific logging domain. The script contains a list of MiHoYo domain URLs and a function that runs on each request before it is sent, checks if the request URL contains a domain from the list, replaces HTTP with HTTPS if there is a match, changes the host, and fails a request to a specific logging domain.

Uploaded by

Eli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
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";
break;
}
}
}
}
};

You might also like