random gallery image
random tutorial
preview

..cool, we will make a new module and not just some new module, nope let's make a fully automatic injection script! This tutorial is the first step into making this. Let's first..

read more

random vulnerability assesment
THC AntiEvil

Attempts to find suspicious and evil files or code

more about this module
more of this category
more modules

HackSuite File Library
File Library
Here you can find the latest files and structure of the THC HackSuite, note that if you have an earlier version of the suite it's not recommended to update files manually. Instead you should overwrite your existing HackSuite environment.
<?php
/* Creates attack url

Poisons an attack url with exploits

PARAMETERS:
$sUrl: full url
$aExploitsData: exploit array in inject.php
$sExploit: exploit to use
$mVars:
ARRAY: variables to attack
BOOLEAN: poison all variables

RETURNS:
STRING: filtered data
*/

function ExploitUrl($sUrl,$aExploitsData,$sExploit,$mVars=false){
    
$aUrl = @parse_url($sUrl);
    if(!isset(
$aUrl['query']) || !isset($aUrl['host']) || !isset($aUrl['path'])){
        
// invalid url
        
return(false);
    }
    if(!isset(
$aExploitsData[$sExploit])){
        
// unknown exploit
        
return(false);
    }
    if(
strpos($aUrl['query'],"=")===false){
        
// no values, no luck
        
return(false);
    }
    
$aVarValues = @explode("&",$aUrl['query']);
    if(!
$iVarValues = @count($aVarValues)){
        return(
false);
    }
    
$sUrl2 "http://".$aUrl['host'].$aUrl['path']."?";
    for(
$x=0;$x<$iVarValues;$x++){
        
$aValues explode("=",$aVarValues[$x]);
        if(
is_array($mVars)){
            if(!
in_array($aValues[0],$mVars)){
                
$sUrl2 .= $aVarValues[$x];
                continue;
            }
        }
        if(
$x>0){
            
$sUrl .= "&";
        }
        
$sUrl2 .= $aValues[0]."=".$aExploitsData[$sExploit]['trigger'];
    }
    if(
$sUrl2==$sUrl){
        
// failed to create url
        
return(false);
    }
    return(
$sUrl2);
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3840
native: 26
modules: 21
apps: 2
support development
It takes lots of calories in order to create new things for the hacksuite, so it would be grand if you could buy me a protein shake or extra energy to keep me going. Thanks!
disclaimer
We are not responsible for any direct or indirect damage caused by abusing the tools provided on hacksuite.com. The suite is developed for educational purposes, use at your own risk!
Created by Remco Kouw. Powered by protein shakes and a high calorie diet.