Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 77
  • 1.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-rce

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install phpinfo-to-rce in Claude Code

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

A

No 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 →

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.

phpinfo-to-rce Install

Add to stack

Loading.