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 information gathering
THC Discover

Discovers interesting locations, paths and data of a website

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
/* Outputs the converted text or displays the result

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 11-04-2015
*/
$_MODULE_C "thc_xc";
include_once(
"../../Includes/screen_header.php");
$sDest "convertopt.php";
@include_once(
$sDest);
if(!
$iItems = @count($_CONVERT)){
    die(
"<br>\n<b>Invalid convert file, expecting convert_opt.php to contain \$_CONVERT</b><br>\n");
}
$mIndex false;
foreach(
$_CONVERT as $iKey=>$aValues){
    if(
$aValues['function']==$_POST['sOption']){
        
$mIndex $iKey;
        break;
    }
}
if(
$mIndex===false){
    die(
"<br>\n<b>Specified function doesn't exist</b><br>\n");
}
// first of all let's see if the method option is valid..
$sFunction = @$_CONVERT[$mIndex]['function'];
if(!@
function_exists($sFunction)){
    
$sDest "CONVERTERS/".$sFunction.".php";
    if(!
file_exists($sDest)){
        die(
"<br>\n<b>Converter file ".$sDest." doesn't exist, also note that function names should correspond with filenames (function ".$sFunction." = /CONVERTERS/".$sFunction.".php)</b><br>\n");
    }
    include_once(
$sDest);
    if(!@
function_exists($sFunction)){
        die(
"<br>\n<b>Function ".$sFunction." isn't available</b><br>\n");
    }
}
$iItems = @count($_CONVERT[$mIndex]['fieldnames']);
switch(
$iItems){
    case 
8:
    
$sOut $sFunction($_POST['sInput0'],$_POST['sInput1'],$_POST['sInput2'],$_POST['sInput3'],$_POST['sInput4'],$_POST['sInput5'],$_POST['sInput6'],$_POST['sInput7']);
    break;
    case 
7:
    
$sOut $sFunction($_POST['sInput0'],$_POST['sInput1'],$_POST['sInput2'],$_POST['sInput3'],$_POST['sInput4'],$_POST['sInput5'],$_POST['sInput6']);
    break;
    case 
6:
    
$sOut $sFunction($_POST['sInput0'],$_POST['sInput1'],$_POST['sInput2'],$_POST['sInput3'],$_POST['sInput4'],$_POST['sInput5']);
    break;
    case 
5:
    
$sOut $sFunction($_POST['sInput0'],$_POST['sInput1'],$_POST['sInput2'],$_POST['sInput3'],$_POST['sInput4']);
    break;
    case 
4:
    
$sOut $sFunction($_POST['sInput0'],$_POST['sInput1'],$_POST['sInput2'],$_POST['sInput3']);
    break;
    case 
3:
    
$sOut $sFunction($_POST['sInput0'],$_POST['sInput1'],$_POST['sInput2']);
    break;
    case 
2:
    
$sOut $sFunction($_POST['sInput0'],$_POST['sInput1']);
    break;
    case 
1:
    
$sOut $sFunction($_POST['sInput0']);
    break;
    case 
0:
    
$sOut $sFunction();
    break;
}
if(isset(
$_CONVERT[$mIndex]['nl2br'])){
    
$sOut nl2br($sOut);
}
echo 
$sOut;
?>
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.