..will show you how to create native tools. I'm not going to make a new tool though, instead I will show you what is required to create one. You can find all the native tools in the..
Attempts to find suspicious and evil files or code
<?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";
}
?>