..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..
xAnalyze is a module that can search through corrupt data and configuration files in order to find the exact position of errors
<?php
/*
JSON requests for:
1- dump passwords
2- removing tasks from tasks.php
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-11-2014
*/
$_DYNAMIC_ROOT = "../..";
include_once("../../header.php");
include_once("header.php");
$cTHC = new THC();
$aDataR = array();
$aDataR['jresult'] = false;
$aDataR['jmessage'] = "Invalid request received.";
if(isset($_GET['getresult'])){
/* dump results */
$sDataFile = "results/".$cTHC->ExploitFilter($_GET['getresult'].".txt",0,1);
$sData = @file_get_contents($sDataFile);
if(!$sData){
$aDataR['jmessage'] = "Failed to get results file data";
}
else{
$aDataR['jdump'] = "";
$aData = @unserialize($sData);
if(is_array($aData)){
$aDataR['jresult'] = true;
if(false!==($iCracked = @count($aData['users']))){
for($x=0;$x<$iCracked;$x++){
$aDataR['jdump'] .= $aData['users'][$x][0].":".$aData['users'][$x][1]."<br />\n";
}
}
else{
$aDataR['jdump'] = "No users cracked in this session";
}
}
else{
$aDataR['jmessage'] = "Invalid result file data";
}
}
}
elseif(isset($_GET['removetask'])){
/* remove a task and a result file */
$sTaskFile = "tasks.php";
$aData = $cTHC->RawToArray($sTaskFile);
$bFound = false;
$sBuffer = "";
for($x=0;$x<count($aData);$x++){
if($aData[$x][0]==$_GET['removetask']){
$bFound = true;
continue;
}
$sBuffer .= @implode("|",$aData[$x]);
}
if(!$bFound){
$aDataR['jmessage'] = "Failed to find task: ".$cTHC->ExploitFilter($_GET['removetask'],1);
}
else{
$sResultFile = "results/".$_GET['removetask'].".txt";
if(!@unlink($cTHC->ExploitFilter($sResultFile,0,1))){
$aDataR['jmessage'] = "Failed to remove results file: ".$sResultFile;
}
else{
if($bFound){
$aDataR['jresult'] = true;
$cTHC->WriteF($sTaskFile,$sBuffer,"w");
}
}
}
}
session_cache_limiter('nocache');
header('Expires: '.gmdate('r',0));
header('Content-type: application/json');
die(json_encode($aDataR));
?>