..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..
Attempts to find suspicious and evil files or code
<?php
/* Native configuration links for menu
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 14-11-2014
*/
if(!defined('IN_SCRIPT')){
exit;
}
if($_CONTEXT['rightdisplay']['show_config']){
include_once($_PATHS['data_root']."/nativeconfig.php");
// filter natives per category
for($i=0;$i<count($_CONTEXT['native']);$i++){
if(!isset($_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]])){
$_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]] = array();
$_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]][] = array($i,$_CONTEXT['native'][$i][0]);
continue;
}
$_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]][] = array($i,$_CONTEXT['native'][$i][0]);
}
$_CONTEXT['htmlo'] .= " <div class=\"subname\" id=\"confgrtn\">configuration</div>\n";
$_CONTEXT['htmlo'] .= " <div class=\"confgrtn\">\n";
foreach($_CONTEXT['cfgcats'] as $sKey=>$aValues){
$_CONTEXT['htmlo'] .= " <div class=\"headcat\"><b>".str_replace("_"," ",$sKey)."</b></div>\n";
for($i=0;$i<count($aValues);$i++){
$_CONTEXT['htmlo'] .= " <div class=\"lnk\">- <a class=\"wrapcfg\" id=\"".$aValues[$i][0]."\" href=\"#\">".$aValues[$i][1]."</a></div>\n";
}
}
$_CONTEXT['htmlo'] .= " </div>\n";
}
?>