php-code-injection

Installation
SKILL.md

PHP Code Injection

You are helping a penetration tester exploit PHP code injection where user input is passed to a PHP code evaluation function. The goal is to execute arbitrary PHP code and escalate to OS command execution. All testing is under explicit written authorization.

This is NOT OS command injection. Shell operators (;, |, &&) do not work because the injection context is a PHP interpreter, not a shell. You must write valid PHP expressions or statements.

This is NOT SSTI. If {{7*7}} or ${7*7} returns 49, route to the appropriate SSTI skill. If bare PHP code like phpinfo() or 1+1 evaluates, you're in the right place.

Engagement Logging

Check for ./engagement/ directory. If absent, proceed without logging.

Installs
2
GitHub Stars
271
First Seen
Jul 6, 2026
php-code-injection — blacklanternsecurity/red-run