phpinfo-to-rce

Analyze exposed phpinfo files to identify remote code execution vectors.

3|1|Updated Jul 2, 2026
One-click install
npx skills add https://github.com/EntroVyx/hermes-agent-offsec --skill phpinfo-to-rce-entrovyx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phpinfo-to-rce
Source: https://github.com/EntroVyx/hermes-agent-offsec/tree/main/skills/offsec/recon/phpinfo-to-rce
Command: npx skills add https://github.com/EntroVyx/hermes-agent-offsec --skill phpinfo-to-rce-entrovyx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, nmap, python3, masscan, subfinder, httpx, nuclei.

What problem does it solve?

This skill addresses the security gap where an exposed phpinfo file provides an attacker with the necessary configuration details to confirm and execute a Remote Code Execution (RCE) chain.

Core Features & Use Cases

  • Configuration Analysis: Automatically parses phpinfo output to identify disabled functions and critical security settings like allow_url_fopen and open_basedir.
  • Exploit Chain Validation: Determines if RCE is viable by checking for available execution functions and identifying potential upload vectors like XMLRPC or contact forms.
  • Use Case: During a penetration test, you discover an exposed info.php file. Use this skill to quickly verify if the server allows system command execution and to map out the necessary steps to deliver a webshell.

Quick Start

Use the phpinfo-to-rce skill to analyze the target at example.com and determine if remote code execution is possible.

Frequently Asked Questions about phpinfo-to-rce

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How can I exploit an exposed phpinfo file to achieve remote code execution?

An exposed phpinfo file can be exploited for remote code execution by analyzing its server configuration details to identify disabled functions, verify available execution primitives, and map upload vectors like XMLRPC to deliver a webshell.

What specific PHP security settings do I need to check when parsing phpinfo for RCE vectors?

When parsing phpinfo for RCE vectors, you must check critical security settings including disable_functions, allow_url_fopen, and open_basedir to determine if system command execution is viable and unrestricted.

How do I validate an exploit chain from phpinfo exposure during a penetration test?

You validate an exploit chain from phpinfo exposure during a penetration test by verifying if available execution functions bypass disabled restrictions and mapping necessary steps to upload and trigger a webshell.

Do I need specific tools installed to perform comprehensive phpinfo analysis and target assessment?

Yes, comprehensive phpinfo analysis and target assessment require installing curl, nmap, python3, masscan, subfinder, httpx, and nuclei to fully evaluate server configurations and execution vectors.

What is the best way to map upload vectors for webshell delivery after finding exposed phpinfo?

The best way to map upload vectors for webshell delivery after finding exposed phpinfo is to analyze the configuration for available execution functions and identify potential entry points like XMLRPC or contact forms.

Are there limitations when trying to achieve RCE if PHP system command execution functions are disabled?

Yes, if PHP system command execution functions are disabled, achieving RCE is significantly limited; you must analyze disable_functions and open_basedir settings to find alternative execution primitives or bypass methods.