random gallery image
random tutorial
preview

..create a different 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..

read more

random information gathering
THC Discover

Discovers interesting locations, paths and data of a website

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
/* Manager for remote rss locations

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 07-03-2015
*/
if(!defined('IN_SCRIPT')){
    exit;
}
$_CONTEXT['subtitle'] = "RSS Manager";
// target files we need, so make sure they are present
$aFiles = array($_PATHS['functions_root']."/fwrite.php",$_PATHS['data_root']."/remote.php",$_PATHS['functions_root']."/get_file_data.php");
for(
$x=0;$x<count($aFiles);$x++){
    (!
IsThere($aFiles[$x]) ? include_once($_PATHS['end']) : include_once($aFiles[$x]));
}
if(!isset(
$_CONTEXT['rsources'])){
    
$_CONTEXT['errors'][] = "No rss resources present";
    include_once(
$_PATHS['end']);
}
// verify if handlers exist
foreach($_CONTEXT['rsources'] as $sKey=>$aValues){
    if(!@
file_exists($_PATHS['rss_root']."/".$aValues['rssfile'])){
        
$_CONTEXT['errors'][] = "Failed to find rss file: ".$aValues['rssfile'];
        include_once(
$_PATHS['end']);
    }
}
if(isset(
$_POST['submit'])){
    switch(
$_POST['submit']){
        
// disable rss
        
case"Disable RSS":
        if(!
$_CONTEXT['allow_remote_locations']){
            
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['notice']."RSS feeds have already been disabled.. click <a href=\"javascript:history.go(-1)\">here</a> to return</div>\n";
        }
        else{
            
$_CONTEXT['switchfeeds'] = array("\$_CONTEXT['allow_remote_locations'] = true;","\$_CONTEXT['allow_remote_locations'] = false;");
        }
        break;
        
// enable rss
        
case"Enable RSS":
        if(
$_CONTEXT['allow_remote_locations']){
            
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['notice']."RSS feeds have already been enabled.. click <a href=\"javascript:history.go(-1)\">here</a> to return</div>\n";
        }
        else{
            
$_CONTEXT['switchfeeds'] = array("\$_CONTEXT['allow_remote_locations'] = false;","\$_CONTEXT['allow_remote_locations'] = true;");
        }
        break;
        
// activate or deactivate feeds
        
case"Change State":
        if(
false==($sData GetFileData($_PATHS['data_root']."/remote.php"))){
            include_once(
$_PATHS['end']);
        }
        
$sBeforeH md5($sData);
        foreach(
$_POST as $sKey=>$iValue){
            if(isset(
$_CONTEXT['rsources'][$sKey])){
                
$_POST[$sKey] = ($_POST[$sKey]==0);
                if(
$_CONTEXT['rsources'][$sKey]['state']!=$_POST[$sKey]){
                    
// replace old value
                    
$sData str_replace("\$_CONTEXT['rsources']['".$sKey."']['state'] = ".$_CONTEXT['rsources'][$sKey]['state'].";","\$_CONTEXT['rsources']['".$sKey."']['state'] = ".$_POST[$sKey].";",$sData);
                }
            }
        }
        
$sAfterH md5($sData);
        if(
$sAfterH==$sBeforeH){
            
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."No changes have been made.. click <a href=\"javascript:history.go(-1)\">here</a> to return</div>\n";
        }
        else{
            if(!
WriteF($_PATHS['data_root']."/remote.php",$sData,"w")){
                include_once(
$_PATHS['end']);
            }
            else{
                
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Update succeeded, click <a href=\"javascript:history.go(-1)\">here</a> to return</div>\n";
            }
        }
        break;
        
// default
        
default:
        
$_CONTEXT['errors'][] = "Invalid submission button value";
        include_once(
$_PATHS['end']);
    }
    if(isset(
$_CONTEXT['switchfeeds'])){
        if(
false==($sData GetFileData($_PATHS['root']."/vars.php"))){
            include_once(
$_PATHS['end']);
        }
        
$sData str_replace($_CONTEXT['switchfeeds'][0],$_CONTEXT['switchfeeds'][1],$sData);
        if(!
WriteF($_PATHS['root']."/vars.php",$sData,"w")){
            include_once(
$_PATHS['end']);
        }
        else{
            
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Update succeeded, click <a href=\"javascript:history.go(-1)\">here</a> to return</div>\n";
        }
    }
}
else{
    
// output form
    
$sCode .= "            <form method=\"post\">\n";
    
$sCode .= "            <div class=\"emboss borderr5 border1pxtrans pad5 edgeglow overflw\">\n";
    
$sCode .= "                <div class=\"embosshdrnocenter border1pxtrans pad10\">Enable or disable RSS feeds</div>\n";
    foreach(
$_CONTEXT['rsources'] as $sKey=>$aValues){
        
$sCode .= "                <div class=\"cc_record emboss overflw borderr5 mt5\">\n";
        
$iCurrent $aValues['state']!=1;
        
$sCode .= "                    <div class=\"flt pad3 w150\">".$aValues['label']."</div>\n";
        
$sCode .= "                    <div class=\"flt pad3\"><b>active</b> <input type=\"radio\" name=\"".$sKey."\" value=\"1\" ".($iCurrent=="checked" "")." /> <b>disabled</b> <input type=\"radio\" name=\"".$sKey."\" value=\"0\" ".($iCurrent=="checked" "")." /></div>\n";
        
$sCode .= "                </div>\n";
        
$sCode .= "                <div class=\"clear\"></div>\n";
    }
    
$sCode .= "                <div class=\"cc_record\">\n";
    
$sCode .= "                    <div class=\"flt pad3\"><input type=\"submit\" name=\"submit\" value=\"Change State\" /> <input type=\"submit\" name=\"submit\" value=\"".($_CONTEXT['allow_remote_locations'] ? "Disable" "Enable")." RSS\" /><input type=\"hidden\" name=\"iCFG\" value=\"".$_POST['iCFG']."\" /></div>\n";
    
$sCode .= "                </div>\n";
    
$sCode .= "                <div class=\"clear\"></div>\n";
    
$sCode .= "            </div>\n";
    
$sCode .= "            </form>\n";
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3837
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.