⚡Megatron LLM Hub
←Back to search
Twitter

给出 Nmap 定位 PHP 服务的命令与加固清单,附 PHP2Shell 漏洞分析

可直接照抄的资产发现脚本,覆盖 CVE-2026-109618/109619 的排查
cve工具php
Two very useful posts on monitoring and hardening PHP services, plus an Nmap command to help find them in your environment: 1. Discovery with Nmap Common and alternative web ports; HTTP headers that may expose PHP versions: nmap -sT -sV --version-light -T4 --max-retries 1 --open -p 80,81,443,8000-8010,8080-8090,8181,8443,8880,8888,9000,9001,9080,9090,9443 --script http-headers --script-timeout 10s --script-args 'http-headers.path=/index.php,http-headers.useget=true' <target> Look for X-Powered-By: PHP/.... Fast inventory check; hidden PHP deployments can be missed, and version banners don’t confirm vulnerability. 2. Huntress: Monitoring and detection • Confirmed facts and remaining questions • Suspicious PHP child processes, shells and downloaders • Webshells and other post-exploitation activity • My process-watcher for Linux process visibility https://t.co/XLx8za50cZ 3. Vincent Schmalbach: Hardening and patching • Temporary nginx/Apache filters and upload-progress settings • WAF/origin bypass checks • Package and backport verification • PHP-FPM/worker restarts, container rebuilds • Side effects and checks for compromise https://t.co/30YfHmqIcR Temporary measures are stopgaps. Prepare to apply the official fixes as soon as available.