random gallery image
random tutorial

..we are going to create a new app for the hacksuite. We're not going to do anything fancy here, we will make a simple app to get familiar how to write compatible scripts for the..

read more

random generators
THC xMap

Creates a blueprint/map of a server folder

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.
/* Control center configure, will be included when you first load the hacksuite

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 10-1-2015
// for security reasons we want to make a map of the hacksuite installation, so let's make sure it's not already there
$sDest $_PATHS['root']."/Modules/thc_xm/profiles.php";
// attempt to create it
$_CONTEXT['errors'][] = "Expecting profiles.php in thc_xm module";
$_CONTEXT['fatal'] = true;
// get the content of the file
$_CONTEXT['blueprints']) || !is_array($_CONTEXT['blueprints'])){
// corrupt data file
$_CONTEXT['errors'][] = "Expecting array data in thc_xm/profiles.php";
$_CONTEXT['fatal'] = true;
// content should be ok, we're looking for a profile name by the name install...if it isn't there it means this is either <0.6 or a first load of 0.6
// yes, it should be the first record, but who knows, this might be an old installation
$_CONTEXT['blueprintskip'] = true;
    There's no map made of the installation, we will force the hacksuite to generate it regardless of what the user wants (unless you have access to 'diff' it's highly NOT recommended)
    In case you don't want it to be generated, just comment the line where cc_setup.php file is included...you can find the command in default.php:
    We need to load the js that sends a json request to Modules/thc_xm/mapper.php which will generate the map in the background, we can't use handler.js as there's form to extract values from
$_CONTEXT['htmlo'] .= "\n<script>\n";
$_CONTEXT['htmlo'] .= "\$(document).ready(function(){\n";
$_CONTEXT['htmlo'] .= "    dataString = \$(\"form.sendform\").serialize();\n";
$_CONTEXT['htmlo'] .= "    \$.ajax({\n";
$_CONTEXT['htmlo'] .= "        type: \"POST\",\n";
$_CONTEXT['htmlo'] .= "        url: \"Modules/thc_xm/mapper.php\",\n";
$_CONTEXT['htmlo'] .= "        data: { sBluePrintFolder: \"".$_PATHS['root']."\",sName: \"install\",sFileZ: \"thchs\" },\n";
$_CONTEXT['htmlo'] .= "        dataType: \"json\",\n";
$_CONTEXT['htmlo'] .= "        beforeSend:function(){\n";
$_CONTEXT['htmlo'] .= "            \$('div.cc_notifications').html('Setting up installation blueprint...');\n";
$_CONTEXT['htmlo'] .= "        },\n";
$_CONTEXT['htmlo'] .= "        success: function(json){\n";
$_CONTEXT['htmlo'] .= "            if(json.jresult==false){\n";
$_CONTEXT['htmlo'] .= "                alert(json.jerror);\n";
$_CONTEXT['htmlo'] .= "            }\n";
$_CONTEXT['htmlo'] .= "            else{\n";
$_CONTEXT['htmlo'] .= "                \$('div.cc_notifications').html('Successfully mapped installation, thank you for installing!');\n";
$_CONTEXT['htmlo'] .= "            }\n";
$_CONTEXT['htmlo'] .= "        }\n";
$_CONTEXT['htmlo'] .= "    });\n";
$_CONTEXT['htmlo'] .= "});\n";
$_CONTEXT['htmlo'] .= "</script>";     
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 4308
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!
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.