random gallery image
random tutorial
preview

..index page for the suite. It's very easy because the only thing you need to do is change the content of default.php. I don't want to create something like hello world or..

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
/* Changes your test server settings for the HackSuite

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 07-02-2015
*/
session_cache_limiter('nocache');
header('Expires: '.gmdate('r',0));
header('Content-type: application/json');
$_DYNAMIC_ROOT "..";
$bWriteMe false;
include_once(
"../header.php");
$sDest "../vars.php";
$aDataR = array();
$aDataR['jresult'] = false;
$aDataR['jmessage'] = "an error occured";
// target files we need, so make sure they are present
$aFiles = array($_PATHS['functions_root']."/fwrite.php",$_PATHS['functions_root']."/get_file_data.php");
for(
$x=0;$x<count($aFiles);$x++){
    if(!
file_exists($aFiles[$x])){
        
$aDataR['jmessage'] = "Missing required file: ".$aFiles[$x];
        die(
json_encode($aDataR));
    }
    @include_once(
$aFiles[$x]);
}
if(!
is_writable($sDest)){
    
$aDataR['jmessage'] = "Make sure the file vars.php in root is writable";
}
else{
    
$sData GetFileData($sDest);
    
// update the settings
    
$sOld "\$_CONTEXT['allow_testservers'] = ".($_CONTEXT['allow_testservers'] ? "true" "false").";";
    
$sNew "\$_CONTEXT['allow_testservers'] = ".($_CONTEXT['allow_testservers'] ? "false" "true").";";
    
$sData str_replace($sOld,$sNew,$sData);
    
$aDataR['jmessage'] = "Setting has been successfully changed";
    
WriteF($sDest,$sData,"w");
    
$aDataR['jresult'] = true;
    
$bWriteMe true;
}
echo 
json_encode($aDataR);
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3921
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.