As seen in the previous recipe, exploiting SQLi can be an industrious process. SQLMap is a command-line tool included in Kali Linux that can help us with the automation of detecting and exploiting SQL injections with multiple techniques and in a wide variety of databases.
In this recipe, we will use SQLMap to detect and exploit an SQLi vulnerability and to obtain usernames and passwords of an application.