..tutorial we are going to create a new app for the hacksuite. We're not going to do anything fancy here, we will make a simple app to get familiar how to write compatible scripts for the..
Attempts to find suspicious and evil files or code
<?php
/* Matches encrypted string with a hash
Checks if an encrypted string is equal to a hash
PARAMETERS:
$sWord: word to encrypt
$sHash: hash to match
$sEnc: function name(must be preloaded)
$sSalt: salt(OPTIONAL)
$iStructure: where to put salt in the string(OPTIONAL)
VALUES:
TRUE: match
FALSE: no match
*/
function AntiHash($sWord,$sHash,$sEnc,$sSalt="",$iStructure=""){
if($iStructure==1){
$sWord .= $sSalt;
}
else{
$sWord = $sSalt.$sWord;
}
return(($sEnc($sWord)==$sHash ? true : false));
}
?>