phpinfo-to-rce
Skill by uphiago
PHPInfo to RCE Chain checks exposed phpinfo() pages for PHP settings and exec restrictions. It then looks for upload vectors that could lead to code execution on the same host.
Install phpinfo-to-rce
Built from the published package, never by AI.
git clone --depth 1 https://github.com/uphiago/recon-skills /tmp/recon-skills && mkdir -p ~/.claude/skills && cp -r /tmp/recon-skills/recon/phpinfo-to-rce ~/.claude/skills/phpinfo-to-rceRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/uphiago/recon-skills /tmp/recon-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/recon-skills/recon/phpinfo-to-rce ~/.gemini/antigravity-cli/skills/phpinfo-to-rceAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
PHPInfo to RCE Chain is a skill for reviewing exposed phpinfo() pages. It fetches info.php or phpinfo.php, confirms the page is real by looking for the text "PHP Version", and reads key directives such as disable_functions, allow_url_fopen, allow_url_include, open_basedir and display_errors. It reports whether exec-style functions appear to be available or blocked, and checks for bypass options such as putenv() and FFI.
The skill also searches for file upload vectors, including WordPress open registration, XMLRPC wp.uploadFile, contact forms with file fields, and Elementor or Gravity Forms endpoints. It describes a simple PHP webshell and a verification step that runs id, uname and cat commands. The source states that enabled process functions alone do not create RCE without a separate code or file-execution primitive. It is categorized under recon and links to related skills for source leak hunting and WordPress compromise.
Written from the project's SKILL.md and checked against it.
What it can do
- phpinfo verificationConfirms a page is a real phpinfo page by checking for the text "PHP Version".
- disable_functions reviewChecks whether exec, system, passthru, shell_exec, popen or proc_open are blocked.
- Bypass viability checksLooks for putenv() and FFI availability as possible bypass routes.
- Upload vector searchChecks WordPress registration, XMLRPC wp.uploadFile, contact forms and some plugin endpoints.
- Webshell verificationDescribes a simple PHP webshell and tests commands such as id and uname -a.
What you need
- Linux
- curl
- python3
- nmap
- masscan
- subfinder
Try asking
- Check this phpinfo page and summarize the PHP version and disable_functions.
- Review the allow_url_include and open_basedir settings from this phpinfo output.
- List the file upload vectors found on this WordPress site.
Good to know
- Enabled exec functions do not mean RCE without a separate upload or execution primitive.
- LD_PRELOAD bypass needs a .so file built for the target architecture and libc.
- FFI bypass requires PHP 7.4 or later and FFI::cdef() not in disable_functions.
- A WAF or mod_security may block the webshell or phpinfo paths.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: recon/phpinfo-to-rce/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to phpinfo-to-rce
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
phpinfo-to-rce: common questions
What does this skill check on an exposed phpinfo page?
It checks the PHP version, disable_functions, and other directives such as allow_url_fopen, open_basedir and display_errors. It reports whether exec functions appear to be blocked.
Does enabled exec mean the server can be compromised?
No. The source says enabled process functions do not create RCE without an authorized code or file-execution primitive.
What is needed for the RCE step in this chain?
A file upload vector on the same host, such as XMLRPC with credentials, open registration or a contact form with file upload.
How do I install phpinfo-to-rce?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is phpinfo-to-rce free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is phpinfo-to-rce safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to phpinfo-to-rce?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
