random gallery image
random tutorial
preview

..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 other
xConverter

THC xConverter is a tool that makes use of (php) functions in order to calculate, fetch, convert and encrypt data

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
/* Load the environment, sets the missing default paths and variable values

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 21-03-2015
*/
if(!defined("IN_SCRIPT")){
// ok let's make sure the scripts can't be accessed directly
    
define('IN_SCRIPT',1);
}
if(!
defined('SCREEN')){
    
// if the script isn't included on index.php, but from a stand-alone app like the screen.php iframe output files 
    
@include("paths.php");
}
if(!isset(
$_PATHS['root'])){
    
// if we can't load paths no need to bother doing anything anymore
    
die((!@file_exists("paths.php") ? "Failed to load <b>paths.php</b>" "Unexpected data in <b>paths.php</b>"));
}
// need the context variables also, just to keep track of the user's current action
if(!file_exists($_PATHS['root']."/vars.php") ? die("Root path in <b>paths.php</b> is invalid") : include_once($_PATHS['root']."/vars.php"));
// insert authentication
include_once($_PATHS['root']."/auth.php");
// set hacksuite version
include_once($_PATHS['data_root']."/version.php");
// load activity log - 0.6
if(file_exists($_PATHS['log_root']."/log_activity.php")){
    
// meaning...hacksuite is already installed
    
include_once($_PATHS['log_root']."/log_activity.php");
}
// style variable, if setup fails load the default style
include_once($_PATHS['data_root']."/style.php");
if(isset(
$_STYLE) && strlen($_STYLE)>0){
    
// is the location ok, let's do a test..
    
if(file_exists($_PATHS['root']."/Templates/".$_STYLE."/index.php")){
        
// setup the correct location of template files
        
$_PATHS['style_root'] = $_PATHS['root']."/Templates/".$_STYLE;
        
// user defined style, if this stays empty use the default style
        
$_PATHS['style_user'] = $_STYLE;
        
// the current style http root
        
$_PATHS['style_root_http'] = $_PATHS['root_http']."/Templates/".$_STYLE;
    }
    else{
        
// setup the correct location of template files
        
$_PATHS['style_root'] = $_PATHS['style_default_root'];
        
// the current style http root
        
$_PATHS['style_root_http'] = $_PATHS['style_default_root_http'];
    }
    
$_PATHS['end'] = $_PATHS['style_root']."/error/index.php";
}
// function to get directories from a directory
include_once($_PATHS['functions_root']."/getdirbydir.php");
// function to filter out evil content
include_once($_PATHS['functions_root']."/exploitfilter.php");
// function to see if a file is present
include_once($_PATHS['functions_root']."/isthere.php");
// get and set modules
include_once($_PATHS['includes_root']."/modset.php");
// html result headers - 0.6
include_once($_PATHS['data_root']."/result_headers.php");
// test servers - 0.6
include_once($_PATHS['data_root']."/testservers.php");
// load the link maps
include_once($_PATHS['data_root']."/link_map.php");
include_once(
$_PATHS['data_root']."/links_thc.php");
// load widgets
include_once($_PATHS['data_root']."/widgets.php");
// default appearance of widgets and other stuff
include_once($_PATHS['data_root']."/appearance.php");
// if we have a current module let's load it up
if($_CONTEXT['module_current']!="" && !defined('SCREEN')){
    include_once(
$_PATHS['includes_root']."/screens.php");
    include_once(
$_PATHS['functions_root']."/modform.php");
    include_once(
$_PATHS['module_default_root']."/index.php");
}
// if no module has been specified or any other location the current style's index page will be displayed
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3840
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.