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 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
/*
Handler for Discovery

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 13-04-2015
*/
set_time_limit(0);
// set variable to be able to save a task
$_MODULE_C "thc_ds";
include_once(
"../../Includes/screen_header.php");
$sDest $_PATHS['module_default_root']."/plugins.php";
(!
IsThere($sDest) ? include_once($_PATHS['end']) : include_once($sDest));
include_once(
$_PATHS['style_root']."/screen.php");
// options
$sOptions "<b>logging:</b> ".($_CONTEXT['log']==true "on" "off")."<br>\n";
$sOptions .= "<b>silence:</b> ".($_CONTEXT['silent']==true "on" "off")."<br>\n";
$sOptions .= "<b>verbose:</b> ".($_CONTEXT['verbose']==true "on" "off")."\n";
include_once(
$_PATHS['functions_root']."/scrn.php");
if(isset(
$_POST['submit'])){
    switch(
$_POST['submit']){
        case
"Discover":
        
$aHost = @parse_url($_POST['sHost']);
        if(!isset(
$aHost['host'])){
            die(
Screen($sOut."<b id=h7>Host isn't valid</b>".$sEnd."<br>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']));
        }
        
$sHost "http://".$aHost['host'];
        
// go through all plugins and see which and if plugins can be loaded
        
$aLoad = array();
        foreach(
$_CONTEXT['plugs'] as $sKey=>$aValues){
            if(isset(
$_POST[$sKey])){
                
$aLoad[] = $aValues[1];
            }
        }
        if(!@
count($aLoad)){
            die(
Screen($sOut."No plugins were selected to be loaded".$sEnd."<br>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']));
        }
        include_once(
$_PATHS['includes_root']."/task_start.php");
        echo 
Screen($sOut."<br>\n<b>Running scan on ".$sHost."..</b><p>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
        
// spit fire...
        
flush();
        
ob_flush();
        break;
        default:
        
// default template
        
echo $sOut;
        echo 
$sOptions;
        echo 
$sEnd;
        exit;
    }
}
else{
    echo 
$sOut;
    echo 
$sOptions;
    echo 
$sEnd;
    exit;
}
for(
$x=0;$x<count($aLoad);$x++){
    include_once(
$_PATHS['module_default_root']."/plugins/".$aLoad[$x]);
}
// update entry in background task file
include_once($_PATHS['includes_root']."/task_end.php");
echo 
$sEnd;
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3945
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.