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 explain..

read more

random stress testing
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
/*
Set and gets modules

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/
if(!defined('IN_SCRIPT')){
    exit;
}
if(
false!==($aDirs GetDirByDir($_PATHS['root']."/Modules",0))){
    for(
$x=0;$x<count($aDirs);$x++){
        
// modules start with 'thc_'
        
if(substr($aDirs[$x],0,4)=="thc_"){
            
// get the properties for the module
            
$sSetup $_PATHS['root']."/Modules/".$aDirs[$x]."/setup.php";
            if(
file_exists($sSetup)){
                include_once(
$sSetup);
                if(!isset(
$_CONTEXT['modcats'][$aProperties['category']])){
                    
$_CONTEXT['modcats'][$aProperties['category']] = array();
                }
                
$_CONTEXT['modcats'][$aProperties['category']][] = array($aDirs[$x],$aProperties['name']);
                
$_CONTEXT['modules'][$aDirs[$x]] = $aProperties;
                if(!isset(
$_CONTEXT['modules'][$aDirs[$x]])){
                    
// make sure the module dir can be used as array key
                    
die("Invalid module name, make sure it matches this pattern: thc_[a-zA-Z0-9_]{2,3}");
                }
            }
            else{
                die(
"No setup file present for module <b>".$aDirs[$x]."</b>");
            }
        }
    }
}
// request for module, if it exists set it as default to make sure we are working with the right modules
if(isset($_GET['module']) || defined('SCREEN')){
    
$_GET['module'] = (!isset($_GET['module']) ? $_MODULE_C $_GET['module']);
    if(isset(
$_CONTEXT['modules'][$_GET['module']])){
        
// set as current module
        
$_CONTEXT['module_current'] = $_GET['module'];
        
// default module root
        
$_PATHS['module_default_root'] = $_PATHS['root']."/Modules/".$_CONTEXT['module_current'];
        
// default module root http
        
$_PATHS['module_default_root_http'] = $_PATHS['root_http']."/Modules/".$_CONTEXT['module_current'];
        
// set sub title
        
$_CONTEXT['subtitle'] = $_CONTEXT['modules'][$_GET['module']]['name'];
    }
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 4372
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.