error-log-mining

Mine exposed PHP error logs for credentials, API keys, and server paths.

1.1k|191|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/uphiago/recon-skills --skill error-log-mining
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-log-mining
Source: https://github.com/uphiago/recon-skills/tree/main/recon/error-log-mining
Command: npx skills add https://github.com/uphiago/recon-skills --skill error-log-mining

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Exposed PHP error logs on misconfigured WordPress, Laravel, or custom PHP sites routinely leak sensitive server data including database credentials, API keys, SQL queries, and full directory paths that are otherwise inaccessible during standard reconnaissance.

Core Features & Use Cases

  • Discovers accessible error log files across 11 common paths on target web servers, with content validation to avoid false positives from SPAs or custom 404 pages.
  • Extracts high-value intelligence including server paths, email addresses, database credentials, API keys, SQL queries, WordPress salts, internal IPs, and installed plugin/theme names.
  • Use Case: During a penetration test of a WordPress e-commerce site, this skill pulled 879 SQL queries and 47 unique server paths from a 1.7MB exposed error log to map the server structure and identify potential attack vectors.

Quick Start

Use the error-log-mining skill to scan your target WordPress site for exposed error logs and extract all available database credentials, API keys, and server paths from any discovered log files.

Frequently Asked Questions about error-log-mining

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

FAQPage Schema
How do I extract database credentials from exposed PHP error logs during a penetration test?

This skill automates WordPress and Laravel reconnaissance by scanning 11 common server paths for exposed error_log files, applying content validation to filter out false positives from custom 404 pages or SPAs, and extracting high-value intelligence like server paths and database credentials.

Can I analyze large multi-GB error log files without crashing the scan?

Yes, this skill supports extracting data from large PHP error logs using size-aware download handling. It safely processes multi-GB exposed error_log files to extract server paths, SQL queries, and API keys even from misconfigured servers with display_errors enabled.

Does error log mining work for custom PHP applications or only WordPress sites?

Error log mining works for WordPress, Laravel, and custom PHP applications. The skill applies regex-based pattern matching to any accessible PHP error_log file to extract directory paths, email addresses, and installed plugin or theme names.

What specific sensitive data can be mined from exposed PHP error logs?

You can mine database credentials, API keys, SQL queries, WordPress salts, server paths, internal IPs, email addresses, and installed plugin or theme names from exposed PHP error logs. This extracted intelligence maps server structure and identifies potential attack vectors during security assessments.

How do I find accessible error log files on a target web server?

This skill discovers accessible error log files by checking 11 common paths on the target web server. It applies content validation to ensure discovered files contain genuine PHP error data rather than false positives from SPAs or custom 404 pages.