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

Script

This document contains code for handling requests in Fiddler by checking the host and either failing the session or modifying the host.

Uploaded by

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

Script

This document contains code for handling requests in Fiddler by checking the host and either failing the session or modifying the host.

Uploaded by

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

import System;

import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;

class Handlers
{
static function OnBeforeRequest(oS: Session) {
if (oS.host.Equals("overseauspider.yuanshen.com:8888")) {
oS.oRequest.FailSession(404, "Not Found", "Not Found");
}
else if(oS.host.EndsWith(".yuanshen.com") ||
oS.host.EndsWith(".hoyoverse.com") || oS.host.EndsWith(".mihoyo.com")) {
oS.host = "sg.genshin.ps.yuuki.me";
}
}
};

You might also like