..tutorial 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..
THC Sscan is a very versatile tool for scanning (html) files
<?php
/* Fetches RSS Feeds
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 03-02-2015
*/
include_once("header.php");
$_CONTEXT['page_title'] = "THC HackSuite CMS: RSS FEEDS";
$_CONTEXT['subtitle'] = "RSS Viewer";
$sCode = (isset($sCode) ? $sCode : "");
if($_CONTEXT['allow_remote_locations']){
// load required files for feeds
$aRequire = array($_PATHS['functions_root']."/rss_class.php",$_PATHS['data_root']."/rss.php",$_PATHS['data_root']."/remote.php");
for($x=0;$x<count($aRequire);$x++){
(!IsThere($aRequire[$x]) ? include($_PATHS['end']) : include_once($aRequire[$x]));
}
$iFeedsEnabled = 0;
foreach($_CONTEXT['rsources'] as $sFeed=>$aValues){
if($aValues['state']==1){
$iFeedsEnabled++;
// only interested in feeds that are enabled
$sKey = $sFeed;
// well we need at least these two files, add other ones for dynamic configuration's sake!!!1
$rss = new lastRSS;
// set rss feed fetch options
$rss->CDATA = $_RSS[$sKey]['cdata'];
if($rs = $rss->get($_RSS[$sKey]['url'])){
include_once($_PATHS['rss_root']."/".$_RSS[$sKey]['base_handler'].".php");
}
}
}
if(!$iFeedsEnabled){
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['notice']."All RSS base handlers have been disabled, you can enable them in your configuration.</div>\n";
}
}
else{
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['notice']."RSS feeds have been disabled, you can enable them in your configuration.</div>\n";
}
include_once($_PATHS['style_root']."/index.php");
?>