..to 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..
Mister LG can create upload forms and test targets on file upload vulnerabilities
<?php
/*
Handler for Discovery
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 13-04-2015
*/
set_time_limit(0);
// set variable to be able to save a task
$_MODULE_C = "thc_ds";
include_once("../../Includes/screen_header.php");
$sDest = $_PATHS['module_default_root']."/plugins.php";
(!IsThere($sDest) ? include_once($_PATHS['end']) : include_once($sDest));
include_once($_PATHS['style_root']."/screen.php");
// options
$sOptions = "<b>logging:</b> ".($_CONTEXT['log']==true ? "on" : "off")."<br>\n";
$sOptions .= "<b>silence:</b> ".($_CONTEXT['silent']==true ? "on" : "off")."<br>\n";
$sOptions .= "<b>verbose:</b> ".($_CONTEXT['verbose']==true ? "on" : "off")."\n";
include_once($_PATHS['functions_root']."/scrn.php");
if(isset($_POST['submit'])){
switch($_POST['submit']){
case"Discover":
$aHost = @parse_url($_POST['sHost']);
if(!isset($aHost['host'])){
die(Screen($sOut."<b id=h7>Host isn't valid</b>".$sEnd."<br>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']));
}
$sHost = "http://".$aHost['host'];
// go through all plugins and see which and if plugins can be loaded
$aLoad = array();
foreach($_CONTEXT['plugs'] as $sKey=>$aValues){
if(isset($_POST[$sKey])){
$aLoad[] = $aValues[1];
}
}
if(!@count($aLoad)){
die(Screen($sOut."No plugins were selected to be loaded".$sEnd."<br>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']));
}
include_once($_PATHS['includes_root']."/task_start.php");
echo Screen($sOut."<br>\n<b>Running scan on ".$sHost."..</b><p>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
// spit fire...
flush();
ob_flush();
break;
default:
// default template
echo $sOut;
echo $sOptions;
echo $sEnd;
exit;
}
}
else{
echo $sOut;
echo $sOptions;
echo $sEnd;
exit;
}
for($x=0;$x<count($aLoad);$x++){
include_once($_PATHS['module_default_root']."/plugins/".$aLoad[$x]);
}
// update entry in background task file
include_once($_PATHS['includes_root']."/task_end.php");
echo $sEnd;
?>