正在自动登录…
← 返回项目列表assetnote/
assetnote/ php2shell-scanner
用于检测 PHP 应用中 CVE-2026-109618 和 CVE-2026-109619 漏洞的命令行扫描工具,通过发送构造的 multipart 探测请求并分析响应来判断目标是否易受攻击。适合安全研究人员和运维人员使用。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/22 14:51:43 · 查看原文
- 累计 Stars
- 105
- 当前热度
- 1 天内 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/22 14:51:43
- 适用场景
适用于对 PHP 应用进行漏洞检测,可指定 SAPI 模式(mod_php 或 PHP-FPM)以匹配不同运行环境。
查看 README 依据
### SAPI Modes The default `--sapi auto` mode applies both mod_php and PHP-FPM verdict rules, matching the combined behavior of Assetnote's postmodules. Use `--sapi mod_php` or `--sapi fpm` to restrict detection to a known SAPI. ### Network Impact Each tested path may receive a 42-byte control request and three probes totalling about 29 MiB. Probing stops as soon as the verdict is settled, and duplicate input URLs are scanned once. ## Requirements - Python 3.9+ - h11 - tqdm ## Installation ``` pip install -r requirements.txt ``` ## Usage Scan a single host: ```
- 使用方式
通过命令行使用,支持单 URL、列表文件、多线程、自定义路径和自定义请求头。
查看 README 依据
python3 scanner.py -u https://example.com ``` Scan a list of hosts: ``` python3 scanner.py -l hosts.txt ``` Scan with multiple threads and save results: ``` python3 scanner.py -l hosts.txt -t 20 -o results.json ``` Scan with custom headers: ``` python3 scanner.py -u https://example.com -H "Authorization: Bearer token" -H "Cookie: session=abc" ``` Scan a custom path: ``` python3 scanner.py -u https://example.com --path /phpinfo.php python3 scanner.py -u https://example.com --path /index.php --path /admin.php python3 scanner.py -u https://example.com --path-file paths.txt ```
Use only PHP-FPM verdict rules: ``` python3 scanner.py -u https://example.com --sapi fpm ``` ## Options ``` -u, --url Single URL to check -l, --list File containing hosts (one per line) -t, --threads Number of concurrent threads (default: 10) --timeout Request timeout in seconds (default: 60) -o, --output Output file for results (JSON) --all-results Save all results, not just vulnerable hosts -k, --insecure Disable TLS certificate verification -H, --header Custom header (can be used multiple times)
- 部署要求
需要 Python 3.9+ 以及 h11 和 tqdm 库。
查看 README 依据
### SAPI Modes The default `--sapi auto` mode applies both mod_php and PHP-FPM verdict rules, matching the combined behavior of Assetnote's postmodules. Use `--sapi mod_php` or `--sapi fpm` to restrict detection to a known SAPI. ### Network Impact Each tested path may receive a 42-byte control request and three probes totalling about 29 MiB. Probing stops as soon as the verdict is settled, and duplicate input URLs are scanned once. ## Requirements - Python 3.9+ - h11 - tqdm ## Installation ``` pip install -r requirements.txt ``` ## Usage Scan a single host: ```
- 已知限制
不跟随重定向,且仅当探测产生特定错误信号时才判定为易受攻击。
查看 README 依据
A target is reported vulnerable when the probe produces a PHP memory-exhaustion error, a differential empty HTTP 500, a PHP-FPM worker failure, or an advertised PHP version known to be unpatched. Initial 5xx responses, common request-rejection statuses, and nonempty HTTP 500 responses without the PHP fatal-error signature are not treated as crash signals. The scanner tests `/index.php` by default. A path supplied in the URL is preserved, and `--path` or `--path-file` can test custom paths. phpMyAdmin targets are automatically retested at `/show_config_errors.php`. Redirects are not followed.
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/22 11:53:20
- 首次达标收录
- 2026/10/22 14:46:36
- 统计更新时间
- 2026/10/22 19:01:03
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
普通加权总分 3.7 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/22 14:46:36 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/22 17:41:52
- 许可证标识
- 未识别,请查看仓库说明
- Fork 数
- 18
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目