Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
84 views

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
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

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
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