..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..
Creates a blueprint/map of a server folder
<?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);
}
?>