After finding a SQLi vulnerability, we can use a few techniques to gather as much information as possible. In the next four subsections, we will learn how to obtain column counts, server information, table result sets, and all records from tables and databases, using the SQLi vulnerability and Perl.
Let's turn our attention to what we can do with the column count. We should instantly recognize that we can put simple MySQL keywords or functions into one of the fields, for instance,
@@version, to find the version of the DBMS for potential future remote exploitation.
@@datadir can be used to provide insight into the structure of the server's filesystem. Also,
@@hostname can produce the hostname of ...