hunting-for-webshells-in-web-servers
Installation
SKILL.md
Instructions
- Install dependencies:
pip install yara-python - Identify web server document roots to scan (e.g.,
/var/www/html,/opt/lampp/htdocs). - Run the agent to scan for webshells:
- Shannon entropy analysis flags files with entropy > 5.5
- Pattern matching detects eval(), base64_decode(), system(), passthru(), shell_exec()
- File modification time analysis finds recently changed files
- Extension filtering targets .php, .jsp, .asp, .aspx, .cgi, .py files
python scripts/agent.py --webroot /var/www/html --output webshell_report.json