Skip to content

Instantly share code, notes, and snippets.

@ziyahan
Created December 13, 2015 15:58
Show Gist options
  • Save ziyahan/1c8ff9d79ca56844e769 to your computer and use it in GitHub Desktop.
Save ziyahan/1c8ff9d79ca56844e769 to your computer and use it in GitHub Desktop.
case "allduplicate":
// Written by Ziyahan @Netsparker - [email protected]
/* oSessions.Length*/
var oS = FiddlerApplication.UI.GetAllSessions();
for (var x: int = 0; x < oS.Length; x++) {
var currentSession = oS[x];
currentSession.oFlags["myself"]=true;
if (currentSession.oFlags.ContainsKey["duplicate"]) continue;
for (var y: int = 0; y < oS.Length; y++) {
var searchingSession = oS[y];
if(searchingSession.oFlags.ContainsKey("myself")) continue;
if(currentSession.url==searchingSession.url && currentSession.oRequest.headers.HTTPMethod==searchingSession.oRequest.headers.HTTPMethod) {
searchingSession.oFlags["duplicate"] = true;
searchingSession.oResponse.headers.Add("Duplicate","true");
}
}
currentSession.oFlags.Remove("myself");
}
FiddlerApplication.UI.actSelectSessionsWithResponseHeaderValue("Duplicate", "true");
FiddlerObject.StatusText = "Found " + FiddlerApplication.UI.GetSelectedSessions().Length + " duplicate(s)";
return true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment