random gallery image
random tutorial
preview

..you how to make a multi bridge between THC_DO, THC_SS and THC_II and keep track of the output in realtime using iframes. So what exactly are we going to do? First of all if you don't..

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.
<?php
/* Uninstall apps, modules and callbacks

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 13-04-2015
*/
if(!defined('IN_SCRIPT')){
    exit;
}
if(isset(
$_GET['apps'])){
    
/* uninstall app */
    
$sPath "";
    
$sBuffer "";
    if(
0!=($iExtra = @count($aExtra))){
        
// find a match and make a buffer
        
$sBuffer "<?php\n";
        
$sBuffer .= "/*\n";
        
$sBuffer .= "Installed apps\n\n";
        
$sBuffer .= "Author: Remco Kouw\n";
        
$sBuffer .= "Site: http://www.hacksuite.com\n";
        
$sBuffer .= "Last Edit: ".date('d-m-Y',time())."\n";
        
$sBuffer .= "*/\n";
        
$sBuffer .= "if(!defined('IN_SCRIPT')){\n";
        
$sBuffer .= "\texit;\n";
        
$sBuffer .= "}\n";
        
$sBuffer .= "\$aExtra = array();\n";
        
$i 0;
        for(
$x=0;$x<$iExtra;$x++){
            if(
$aExtra[$x][0]==$_GET['apps']){
                
$sPath ExploitFilter(str_replace("//","/",$_PATHS['root']."/".$aExtra[$x][1]),0,1);
                continue;
            }
            
$sBuffer .= "\$aExtra[".$i."] = array(\"".$aExtra[$x][0]."\",\"".$aExtra[$x][1]."\");\n";
            
$i++;
        }
        
$sBuffer .= "?>";
        if(
$sPath==""){
            
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['error']."Can't find app</div>";
        }
        else{
            
// remove app
            
$oIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sPath),RecursiveIteratorIterator::CHILD_FIRST);
            foreach(
$oIterator as $oPath){
                if(
$oPath->isDir()){
                    @
rmdir($oPath->__toString());
                }
                else{
                    @
unlink($oPath->__toString());
                }
            }
            @
rmdir($sPath);
            
// update installed apps file
            
if(!function_exists("WriteF")){
                
$sDest $_PATHS['functions_root']."/fwrite.php";
                (!
IsThere($sDest) ? include_once($_PATHS['end']) : include_once($sDest));
            }
            if(!
WriteF($_PATHS['data_root']."/extra.php",$sBuffer,"w")){
                
// update failed
                
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Failed to uninstall the app, please remove the app from extra.php in /Data</div>";
            }
            else{
                
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Successfully removed app</div>";
            }
        }
    }
    else{
        
// no apps installed
        
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['error']."No apps installed</div>";
    }
}
elseif(isset(
$_GET['module'])){
    
/* uninstall module */
    
$sPath ExploitFilter($_PATHS['root']."/Modules/".$_GET['module'],0,1);
    
$oIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sPath),RecursiveIteratorIterator::CHILD_FIRST);
    foreach(
$oIterator as $oPath){
        if(
$oPath->isDir()){
            @
rmdir($oPath->__toString());
        }
        else{
            @
unlink($oPath->__toString());
        }
    }
    @
rmdir($sPath);
    
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Successfully uninstalled module<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
}
elseif(isset(
$_GET['callback'])){
    
/* uninstall callback */
    
if(!function_exists("GetFilesByDirectory")){
        include_once(
$_PATHS['functions_root']."/getfilebydir.php");
    }
    
$aFiles GetFilesByDirectory($_PATHS['root']."/Modules/thc_ss/CALLBACKS");
    
$sFile "";
    for(
$x=0;$x<count($aFiles);$x++){
        @include_once(
"Modules/thc_ss/CALLBACKS/".$aFiles[$x]);
        if(
$_CBACKD[0]==$_GET['callback']){
            
$sFile $_PATHS['root']."/Modules/thc_ss/CALLBACKS/".$_CBACKD[1];
            break;
        }
    }
    if(
$sFile!=""){
        if(!@
unlink($sFile)){
            
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Failed to remove callback<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
        }
        else{
            
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Successfully uninstalled callback<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
        }
    }
    else{
        
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['error']."Can't find callback<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
    }
}
else{
    
// unknown tool
    
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['error']."This kind of tool doesn't exist<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3889
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.