random gallery image
random tutorial
preview

..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 know..

read more

random stress testing
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
/* Gets subdirectories from a directory

Returns absolute or relative paths to subdirectories inside the parent directory.
GetDirByDir fetches the names of directories found one level deep in the directory structure, 
or fetches all absolute directory paths from location $sParentDir.

PARAMETERS:
$sParentDir: directory to obtain subdirectories from
$iAbsolute: store absolute or relative paths(OPTIONAL)
0: store relative paths
1: store absolute paths(default)

RETURNS:
FALSE: failed to open directory $sDir

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/

function GetDirByDir($sParentDir,$iAbsolute=1){
    
    global 
$_CONTEXT;

    if(!
$rHandle = @opendir($sParentDir)){
        
$_CONTEXT['errors'][] = "Failed to open directory <b>".$sParentDir."</b>";
        return(
false);
    }
    
$aDirBuffer = array();
    while(
false!==($sDir = @readdir($rHandle))){
        if(
$sDir=="." || $sDir==".."){
            continue;
        }
        
$sPath $sParentDir."/".$sDir;
        if(@
is_dir($sPath)){
            if(
$iAbsolute==1){
                
// buffer absolute subdirectories
                
$aDirBuffer[] = $sPath;
            }
            else{
                
// buffers relative subdirectories
                
$aDirBuffer[] = $sDir;
            }
        }
    }
    @
closedir($rHandle);
    return(
$aDirBuffer);
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 4028
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.