random gallery image
random tutorial
preview

..I will show you how to create native tools. I'm not going to make a new tool though, instead I will show you what is required to create one. You can find all the native tools in the..

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
set_time_limit
(0);
session_cache_limiter('nocache');
header('Expires: '.gmdate('r',0));
header('Content-type: application/json');
$_DYNAMIC_ROOT "../..";
include_once(
"../../header.php");
// set variable to be able to save a task
$_MODULE_C "thc_pg";
include_once(
$_PATHS['includes_root']."/task_start.php");
$aDataR = array();
$aDataR['jresult'] = false;
$aDataR['jerror'] = "Invalid post data";
$_CONTEXT['words'] = array();
if(isset(
$_POST['sInput']) && isset($_POST['sFile'])){
    
// does file exist?
    
$sFile $_PATHS['wordlists_root']."/".ExploitFilter($_POST['sFile'],0,1);
    if(
file_exists($sFile)){
        
$aDataR['jerror'] = "Wordlist already exists";
    }
    else{
        if(!
function_exists("WriteF")){
            include_once(
$_PATHS['functions_root']."/fwrite.php");
        }
        if(!
WriteF($sFile,"","w")){
            
// create file
            
$aDataR['jerror'] = "Failed to create wordlist";
        }
        else{
            
// include common file
            
include_once($_PATHS['module_default_root']."/common.php");
            
// include password generator
            
include_once($_PATHS['module_default_root']."/func_createpass.php");
            
// include password structures
            
include_once($_PATHS['module_default_root']."/pass_structure.php");
            
// buffer words
            
$sBuffer "";
            if(isset(
$_POST['iCommon']) && $_POST['iCommon']==1){
                for(
$x=0;$x<count($_CONTEXT['common']);$x++){
                    
$sBuffer .= $_CONTEXT['common'][$x]."\n";
                }
            }
            
$aInput explode(",",$_POST['sInput']);
            
$aInput CreateWords($aInput,$_CONTEXT['common']);
            
/*
            This part is new since 0.6, in earlier versions all passwords were stored in one go, which could lead to memory problems.
            In 0.6 we will write the wordlist in smaller portions to prevent this issue.
            First create the data file and then write each result buffer.
            */
            
if(!WriteF($sFile,"","w")){
                
// write words to file
                
$aDataR['jerror'] = "Failed to create wordlist";
            }
            else{
                
// keep track of the wordlist file size
                
$iSize 0;
                
// combinations
                
foreach($_CONTEXT['wliststruc'] as $iKey=>$aValues){
                    
CreatePasses($aInput,$_CONTEXT['common'],$aValues);
                    if(
$sBuffer!=""){
                        
$iSize += strlen($sBuffer);
                        
WriteF($sFile,$sBuffer,"a");
                        
// reset current buffer
                        
$sBuffer "";
                    }
                }
            }
            if(
$iSize>0){
                
$aDataR['jresult'] = true;
                
$aDataR['jwlsize'] = round(($iSize/1024)/1024,1)." MB";
            }
            else{
                
$aDataR['jerror'] = "No data to put into wordlist";
            }
        }
    }
}
echo 
json_encode($aDataR);
// update entry in background task file
include_once($_PATHS['includes_root']."/task_end.php");
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 4021
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.