code working in fiddler,but not working in fiddlercore?
//init function
FiddlerApplication.BeforeResponse += onBeforeResponse;
//onBeforeResponse
private static void onBeforeResponse(Session oSession)
{
if (oSession.url.IndexOf("/p_manager/")!=-1)
{
oSession.utilDecodeResponse();
oSession.utilReplaceOnceInResponse("</body>", "<script>alert(1)</script></body>", false);
//this code not working in fiddlercore,but this code in fiddler is working. i think maybe must append some code like
//oSession["X-ResponseBody"] ,but i do not know how to do that.
// i read fiddler's CustomRules.js but it not say how to do it.
// i
// recently ,in my hometown the google is no access. so i consult you again.
}
}
//init function
FiddlerApplication.BeforeResponse += onBeforeResponse;
//onBeforeResponse
private static void onBeforeResponse(Session oSession)
{
if (oSession.url.IndexOf("/p_manager/")!=-1)
{
oSession.utilDecodeResponse();
oSession.utilReplaceOnceInResponse("</body>", "<script>alert(1)</script></body>", false);
//this code not working in fiddlercore,but this code in fiddler is working. i think maybe must append some code like
//oSession["X-ResponseBody"] ,but i do not know how to do that.
// i read fiddler's CustomRules.js but it not say how to do it.
// i
// recently ,in my hometown the google is no access. so i consult you again.
}
}