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
/*
Sets up the search for easy to guess passwords.
In order to debug requests you can add the following after $cTHC->LoadUsers();
var_dump($cTHC);

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/
set_time_limit(0);
ini_set('memory_limit''256M');
ignore_user_abort(true);
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
$_DYNAMIC_ROOT "../..";
include_once(
"../../header.php");
include_once(
"header.php");
// setup database connection
if(isset($_POST['sProduct'])){
    if(!isset(
$_POST['sSalt'])){
        
$_CONTEXT['db'] = array();
        if(isset(
$_POST['iProfile']) && $_POST['iProfile']==1){
            
// from profile
            
$aProfile = @explode(":",$_POST['sProfiles']);
            if(@isset(
$_CONTEXT['dbcon'][$aProfile[0]][$aProfile[1]])){
                
$_CONTEXT['db']['host'] = $_CONTEXT['dbcon'][$aProfile[0]][$aProfile[1]]['host'];
                
$_CONTEXT['db']['username'] = $_CONTEXT['dbcon'][$aProfile[0]][$aProfile[1]]['user'];
                
$_CONTEXT['db']['password'] = $_CONTEXT['dbcon'][$aProfile[0]][$aProfile[1]]['pass'];
                
$_CONTEXT['db']['database'] = $_CONTEXT['dbcon'][$aProfile[0]][$aProfile[1]]['db'];
            }
        }
        else{
            
// from user input
            
$_CONTEXT['db']['host'] = $_POST['sHostDB'];
            
$_CONTEXT['db']['username'] = $_POST['sUserDB'];
            
$_CONTEXT['db']['password'] = $_POST['sPassDB'];
            
$_CONTEXT['db']['database'] = $_POST['sNameDB'];
        }
        
$rConnect = @mysql_connect($_CONTEXT['db']['host'],$_CONTEXT['db']['username'],$_CONTEXT['db']['password']);
        if(!
is_resource($rConnect) || @mysql_select_db($_CONTEXT['db']['database'])===false){
            
// fail so abort
            
$_CONTEXT['errors'][] = "Invalid database connection credentials.";
            include_once(
$_PATHS['end']);
        }
        
// load setup and find easy passwords
        
$cTHC->LoadWordlist($_POST['sWordlist']);
        
$cTHC->LoadProperties($_POST['sProduct']);
        
$cTHC->LoadUsers();
    }
    else{
        
$cTHC->LoadWordlist($_POST['sWordlist']);
        
$cTHC->LoadProperties($_POST['sProduct']);
        
$aUser = array();
        
$aUser['crackuser'] = $_POST['sUser'];
        
$aUser['crackpass'] = $_POST['sHash'];
        if(!empty(
$_POST['sSalt'])){
            
$aUser['crackhash'] = $_POST['sSalt'];
        }
        
$cTHC->SetUser($aUser);
    }
    
$cTHC->CrackUsers(1);
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 4384
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.