sqli-sql-injection

Detect and exploit SQL injection with DBMS-specific UNION, boolean, and time-based techniques.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/lNwNl/Methodos --skill sqli-sql-injection-lnwnl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sqli-sql-injection
Source: https://github.com/lNwNl/Methodos/tree/main/docker/opencode/skills/sqli-sql-injection
Command: npx skills add https://github.com/lNwNl/Methodos --skill sqli-sql-injection-lnwnl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you identify and exploit SQL injection paths when user input reaches SQL queries, authentication checks, sorting/filtering logic, or blind/out-of-band execution channels.

Core Features & Use Cases

  • DBMS-aware exploitation playbook: Guides payload design and pivoting for MySQL, MSSQL, Oracle, PostgreSQL, SQLite, and Cassandra-specific constraints.
  • Extraction via UNION, boolean-blind, and time-based techniques: Supports fast inline data retrieval and fallback inference when results are suppressed.
  • Out-of-band (OOB) exfiltration and escalation: Provides targeted approaches like Oracle UTL_HTTP/UTL_INADDR and MSSQL OpenRowSet to exfiltrate or verify when in-band output is unavailable.
  • Second-order injection and parameterization bypass scenarios: Covers cases where inputs are stored safely but later re-used unsafely in new query construction.
  • WAF/filter evasion guidance: Includes keyword/whitespace/comment and encoding tricks to reach executable SQL syntax under filtering.

Quick Start

Tell the assistant: "Use the SQL injection expert playbook to analyze this suspected SQL sink, determine the likely DBMS from responses, then propose a minimal first-pass boolean or time-based test and the next OOB exfil step if output is blind."

Frequently Asked Questions about sqli-sql-injection

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

FAQPage Schema
How do I detect and exploit SQL injection when the application suppresses query output?

SQL injection testing in blind scenarios uses boolean-based and time-based inference techniques to infer data character by character. When in-band output is unavailable, out-of-band exfiltration methods like Oracle UTL_HTTP or MSSQL OpenRowSet can verify execution through external network interactions.

What's the best way to fingerprint the DBMS before selecting SQL injection payloads?

DBMS fingerprinting during SQL injection testing identifies the target database engine by analyzing response behaviors, error signatures, and timing characteristics across MySQL, MSSQL, Oracle, PostgreSQL, SQLite, and Cassandra. This determines which payload families and syntax constraints apply for successful exploitation.

Can I bypass WAF filters blocking common SQL injection keywords and syntax?

WAF evasion for SQL injection uses keyword substitution, whitespace alternatives, comment-based syntax splitting, and encoding tricks to reach executable SQL under filtering. Payload families are adapted to match each DBMS-specific syntax constraints while avoiding known filter patterns.

How does second-order SQL injection work when input is stored safely initially?

Second-order SQL injection occurs when user input is stored parameterized but later reused unsafely in a new query construction without sanitization. Testing requires injecting payloads that activate during subsequent query execution at different application sinks rather than immediate reflection points.

Does this SQL injection testing approach support multiple database engines like PostgreSQL and Oracle?

SQL injection testing supports DBMS-specific exploitation workflows for MySQL, MSSQL, Oracle, PostgreSQL, SQLite, and Cassandra. Each engine has tailored payload design, pivoting strategies, and escalation paths matching its unique SQL syntax, system tables, and stored procedure capabilities.

When should I escalate from UNION-based extraction to out-of-band exfiltration during penetration testing?

Out-of-band exfiltration is used when UNION-based and boolean-blind techniques fail due to suppressed output or restrictive response handling. SQL injection testing routes to OOB channels like Oracle UTL_INADDR or MSSQL OpenRowSet to exfiltrate data through DNS or HTTP callbacks when assessment scope permits.