random gallery image
random tutorial
preview

..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 what we're..

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
/* Creates a select menu for selecting functions in THC_XC */
if(!defined('IN_SCRIPT')){
    exit;
}
$_CONTEXT['xcselect'] = "\n                <select name=\"sOption\" class=\"sOption\">\n";
// determine maximum amount of fields
$_CONTEXT['maxfields'] = 0;
// do we have js available
$_CONTEXT['xcselectjs'] = "";
if(
false==($iOptions = @count($_CONVERT))){
    
$_CONTEXT['xcselect'] .= "                <option value=\"\">no options available</option>\n";
}
else{
    
$_CONTEXT['xcselect'] .= "                <option value=\"selected\" selected>select an option</option>\n";
    
// sort the data
    
$_CONVERT2 = array();
    for(
$x=0;$x<count($_CONVERT);$x++){
        
// skip if it doesn't exist
        
if(!isset($_CONVERT[$x]['group'])){
            continue;
        }
        
$iFields count($_CONVERT[$x]['fieldnames']);
        
$_CONTEXT['maxfields'] = ($iFields<=$_CONTEXT['maxfields'] ? $_CONTEXT['maxfields'] : $iFields);
        
// add it to a group or create a new one
        
$sGroupName str_replace(" ","_",$_CONVERT[$x]['group']);
        if(!isset(
$_CONVERT2[$sGroupName])){
            
$_CONVERT2[$sGroupName] = array();
        }
        
// reposition and make the data easier accessible
        
$_CONVERT2[$sGroupName][$_CONVERT[$x]['position']] = array($x,$_CONVERT[$x]['label'],$_CONVERT[$x]['fieldnames'],$_CONVERT[$x]['function'],$_CONVERT[$x]['description'],$_CONVERT[$x]['type']);
    }
    
// delete the old convert variable
    
$_CONVERT "";
    unset(
$_CONVERT);
    foreach(
$_CONVERT2 as $sGroup=>$aItems){
        
// if there are no valid options available then there's no need to add the optgroup tag
        
$bHasOptions false;
        
$sOptionsBuffer "";
        for(
$x=0;$x<count($aItems);$x++){
            if(isset(
$aItems[$x])){
                
$bHasOptions true;
                
$sOptionsBuffer .= "                        <option value=\"".$aItems[$x][3]."\" title=\"".$aItems[$x][4]."\">".$aItems[$x][1]."</option>\n";
            }
        }
        
$_CONTEXT['xcselect'] .= ($bHasOptions==true "                <optgroup label=\"".str_replace("_"," ",$sGroup)."\">\n".$sOptionsBuffer."                </optgroup>\n" "");
    }
}
$_CONTEXT['xcselect'] .= "                </select>\n";
$_CONVERT2 "";
unset(
$_CONVERT2);
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3836
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.