..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..
Mister LG can create upload forms and test targets on file upload vulnerabilities
<?php
/* Delete Directory handler
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 14-11-2014
*/
if(!defined('IN_SCRIPT')){
exit;
}
if(!is_dir($sDest)){
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['error']."Invalid source directory<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
}
else{
$oIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sDest),RecursiveIteratorIterator::CHILD_FIRST);
foreach($oIterator as $oPath){
if($oPath->isDir()){
@rmdir($oPath->__toString());
}
else{
@unlink($oPath->__toString());
}
}
@rmdir($sDest);
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Successfully removed directory<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
}
?>