Created
February 22, 2016 21:46
-
-
Save ericlaw1979/f4ad91f5d7b3379ad237 to your computer and use it in GitHub Desktop.
Hashes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static ContextAction("Show Hashes") | |
function doHash(arrSess: Session[]) | |
{ | |
for (var i: int=0; i<arrSess.Length; i++) | |
{ | |
FiddlerObject.alert( | |
"_MD5_\n"+arrSess[i].GetResponseBodyHash("md5") + "\n\n" + | |
"_SHA1_\n"+arrSess[i].GetResponseBodyHash("sha1") + "\n\n" + | |
"_SHA256_\n"+arrSess[i].GetResponseBodyHash("sha256") + "\n" | |
); | |
} | |
} | |
ContextAction("VirusTotal") | |
public static | |
function doVTCheck(arrSess: Session[]) | |
{ | |
for (var i: int=0; i<arrSess.Length; i++) | |
{ | |
var oS = arrSess[i]; | |
if (oS.bHasResponse) | |
{ | |
Utilities.LaunchHyperlink(String.Format( | |
"https://www.virustotal.com/en/file/{0}/analysis/", | |
oS.GetResponseBodyHash("sha256").Replace("-",""))); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C# version: