bittersecurity/decepticon/blind-sqli
Claude Code and agent skill by bittersecurity/decepticon
- community
Checking that the SKILL.md file is still in the repository.
Blind SQL injection under hostile WAF — manual bypass playbook for when sqlmap fails because common tokens (SUBSTRING, IF, AND, WHERE, single quotes) are filtered. Covers token-fingerprinting probe loops, arithmetic-multiplication boolean evaluation, hex-encoded literals, and exponential-probe binary search. Loaded on top of sqli.md when the binary oracle exists but tampers can't pass the WAF.
Install
npx vskill@latest install bittersecurity/decepticon/blind-sqliSKILL.md
The same SKILL.md was published earlier as bittersecurity/decepticon/blind-sqli.
Blind SQL Injection — Manual WAF Bypass
Companion to sqli.md. Load this only after you have:
- Confirmed a stable binary oracle (two distinct page states: "User exists" vs "No results", different content lengths, or different HTTP codes).
- Confirmed sqlmap with
--tampercannot pass the WAF. If sqlmap returns clean dumps, stop and use it — this skill is more expensive in tokens and wall-clock.
If both conditions hold, the goal is to hand-craft a payload that substitutes every filtered SQL token until each oracle probe returns a clean true/false signal, then extract the flag bit-by-bit with the smallest possible request count.
Confirm the oracle first (≤2 minutes)
The whole playbook collapses if your "true" and "false" responses aren't distinguishable. Reduce the response to a single grep-able token before any extraction:
A single ambiguous response means you do NOT have an oracle yet — re-do recon. Time-based oracles work too, but bash's time resolution and HTTP jitter make a content oracle 5-10× more reliable.
Step 1 — WAF token fingerprint (batched probe script)
Test 10-15 candidate tokens in one script, log each as a labelled line. One script run beats 15 sequential bash calls (saves ~70% of the round-trip cost).
Every line that returns ??? (no matching signature) or filtered is a banned token. Every line that flips the oracle correctly (User exists for the true rows, No results for the false rows) is a usable primitive.
Common WAF substitution map (the bench-tested replacements that have worked across multiple targets):
| Filtered token | Substitute that survives | |||
|---|---|---|---|---|
SUBSTRING(s,i,n) | MID(s,i,n) | |||
IF(c,t,f) | (CASE WHEN c THEN t ELSE f END) or arithmetic (see below) | |||
AND | && | |||
OR | `\ | \ | ` | |
WHERE | JOIN ... ON subquery, or move predicate into SUM((c1)*(c2)) | |||
'literal' | 0x6c6974657261 (hex) or CHAR(108,105,116,...) | |||
GROUP_CONCAT(IF(c,t,0)) | SUM((c)*ASCII(...)) per position |
Step 2 — boolean evaluation without IF/WHERE/AND
When the WAF strips IF, AND, WHERE together, the cleanest replacement is arithmetic multiplication of booleans. MySQL treats (comparison) as an integer in {0,1}, and * distributes as logical AND:
Concrete payload that enumerates information_schema.columns without ever using WHERE/IF/AND:
If the page returns "User exists" the predicate is true (column exists), "No results" → false. One probe per (schema, table, column) triple.
Step 3 — hex every string literal you send
Single and double quotes are usually filtered. Convert every literal to hex once at the top of your script, then never use bare strings inside the SQL payload:
Reuse these in every payload. Saves you from re-checking which quote variant the WAF blocked this iteration.
Step 4 — exponential-probe binary search for length
Don't binary-search from 1..N — most targets have passwords/flags between 16 and 64 chars. Probe exponentially first, then refine:
Worst case 11 + ~10 = 21 requests for any password ≤1024 chars. Pure linear scan would be O(N).
Step 5 — extract characters with one request per bit (or per char)
Once length is known, the shortest extraction is per-character ASCII binary search (≤7 requests per char for printable ASCII). Use MID() and ASCII():
For a 30-char value that's ~210 requests serially. If the server tolerates concurrency, parallelize positions (NOT bit-bisection within a position — that requires serial state). 10 concurrent positions cuts wall-clock by ~10×.
Step 6 — sanity gate before launching extraction
Before you start a multi-hundred-request loop, always confirm the EXTRACT_EXPR returns non-empty length on a known-good probe. Otherwise you spend 5+ minutes extracting from an empty/wrong target.
Anti-patterns — don't do these
- Don't poll background sessions for `extract.py` without a progress signal. If the script doesn't emit per-character logs, you cannot tell the difference between "still working" and "stuck on an empty result". Either log every position, or kill and restart in foreground.
- Don't reuse the same `bash` session for both interactive probe scripts and long extraction loops — interactive prompts collide with background output and you'll burn
bash_killcalls. Run extraction in a named session (work,extract, etc.) and keepmainfor ad-hoc probes. - Don't enumerate `information_schema` blindly with `GROUP_CONCAT` when
WHEREis filtered — the unfiltered concat dumps every table/column in the database and you get a 100 KB blob of0,0,0,...,usersbecause non-matching rows return 0. Use the arithmetic-multiplication predicate instead and check one cell at a time. - Don't hex-encode the WAF token itself to bypass — the WAF tokenizes after URL-decode, so
0x53454c454354(hex SELECT) still matches. Hex helps for string literals inside the query, not for SQL keywords.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/decepticon/decepticon/skills/standard/exploit/web/blind-sqli/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bittersecurity/decepticon/blind-sqli)