Repository navigation
php2shell-scanner v1.0.0
First public release of php2shell-scanner: vulnerability detection and intrusion forensics for the PHP session.upload_progress RCE CVE-2026-109618 / CVE-2026-109619 ("php2shell").
Warning
For vulnerability detection and intrusion forensics on systems you own or are explicitly authorised to test only. Do not use it for any illegal purpose.
Download
php2shell-scanner.pyz is a single self-contained file — no installation, no dependencies, only Python 3.6.1+.
curl -fLO https://github.com/Evil0ctal/php2shell-scanner/releases/download/v1.0.0/php2shell-scanner.pyz
curl -fLO https://github.com/Evil0ctal/php2shell-scanner/releases/download/v1.0.0/php2shell-scanner.pyz.sha256
sha256sum -c php2shell-scanner.pyz.sha256Usage
python3 php2shell-scanner.pyz # interactive menu
python3 php2shell-scanner.pyz scan example.com # remote, non-destructive vulnerability check
sudo python3 php2shell-scanner.pyz forensics # on the server: was it compromised?
python3 php2shell-scanner.pyz forensics --root /mnt/disk # offline, mounted disk imageNo python3 on the server? BT Panel / aaPanel ship one (/www/server/panel/pyenv/bin/python3); RHEL/Alma/Rocky 8 have /usr/libexec/platform-python.
Highlights
scan — remote, non-destructive. Cross-checks independent techniques: version fingerprint over several pages and rounds (load balancers, distro-backport hints), exposed phpinfo(), composer/easter-egg hints, a WAF reachability check that sends no session ID, and passive heap-leak detection. Never exploits anything; identifiable User-Agent; per-request and per-target time limits; same-host redirects only.
forensics — read-only, works even after PHP/phpMyAdmin were removed.
- Poisoned PHP sessions, webshells (Behinder, Godzilla, AntSword, China Chopper, obfuscated,
.icoincludes), malicious.htaccess/.user.ini - Log evidence: LFI → session file, phpMyAdmin abuse, request bodies in WAF logs, served
.env, OOM /Session object destruction failed - Persistence (cron, systemd, SSH keys,
ld.so.preload), SSH/sudo auth logs, live processes and reverse shells, temp-dir droppers, MySQL UDF /INTO OUTFILE, trojaned system binaries - PHP apps (WordPress, Laravel, ThinkPHP, Drupal, Joomla, Magento, Discuz!, …), panels (1Panel, BT Panel, cPanel, Plesk, CyberPanel, HestiaCP, …), Docker / Podman containers seen from the host
- Security baseline: firewall, exposed Redis/MySQL/Docker API/panel ports, SSH settings
- Markdown report (plus optional JSON);
O_NOATIMEreads; symlink-safe--root; ReDoS-bounded signatures
Tested on Ubuntu 20.04/24.04, Debian 12, Rocky 9, AlmaLinux 8 (Python 3.6), Amazon Linux 2023, Alpine 3.20, openSUSE Leap 15.6 (Python 3.6) and Arch, against real PHP 7.4 / 8.2 / 8.3, WordPress and phpMyAdmin containers (297 automated tests).
中文说明
php2shell-scanner 首个正式版本:针对 PHP session.upload_progress 远程代码执行漏洞 CVE-2026-109618 / CVE-2026-109619(php2shell)的漏洞检测与入侵取证工具。
仅用于对你拥有或已获授权的系统进行漏洞检测和入侵取证,不得用于任何非法用途。
- 下载:
php2shell-scanner.pyz是单文件版本,无需安装、零依赖,只要 Python 3.6.1+。下载后用sha256sum -c php2shell-scanner.pyz.sha256校验。 scan远程检测:多种独立方法交叉验证,绝不进行利用,不发送任何 session ID。forensics入侵取证:严格只读,PHP/phpMyAdmin 已卸载也能查。覆盖投毒 session、webshell、日志痕迹、持久化后门、登录审计、进程与反弹 shell、MySQL 后门;支持主流 PHP 应用、宝塔/1Panel 等面板以及 Docker 容器;自动生成 Markdown 报告。- 没有 python3 的服务器:宝塔/aaPanel 可用自带的
/www/server/panel/pyenv/bin/python3。
详细文档见 README。
SHA-256
9c5fe4a11fb0e7a7b014494f615719fab35392e5768a8095c4b63648ac1ace7e php2shell-scanner.pyz