This technique works only when the web application has been configured to disclose back-end database management system error messages.sqlmap replaces or appends to the affected parameter a database-specific error message provoking statement and parses the HTTP response headers and body in search of DBMS error messages containing the injected pre-defined chain of characters and the subquery statement output within.Like for boolean-based technique, the bisection algorithm is applied. For each HTTP response, by making a comparison between the HTTP response time with the original request, the tool inference the output of the injected statement character by character.sqlmap replaces or appends to the affected parameter in the HTTP request, a syntactically valid SQL statement string containing a query which put on hold the back-end DBMS to return for a certain number of seconds.Where the output is not within the clear-text plain charset, sqlmap will adapt the algorithm with bigger ranges to detect the output.The bisection algorithm implemented in sqlmap to perform this technique is able to fetch each character of the output with a maximum of seven HTTP requests.Alternatively, the user can provide a string or regular expression to match on True pages. For each HTTP response, by making a comparison between the HTTP response headers/body with the original request, the tool inference the output of the injected statement character by character.sqlmap replaces or appends to the affected parameter in the HTTP request, a syntatically valid SQL statement string containing a SELECT sub-statement, or any other SQL statement whose the user want to retrieve the output.Sqlmap is able to detect and exploit five different SQL injection types: Support for database process’ user privilege escalation via Metasploit’s Meterpreter getsystemcommand.Īlso Read Lynis – Open source security auditing tool – A Detailed Explanation Techniques:.This channel can be an interactive command prompt, a Meterpreter session or a graphical user interface (VNC) session as per user’s choice.
Support to execute arbitrary commands and retrieve their standard output on the database server underlying operating system when the database software is MySQL, PostgreSQL or Microsoft SQL Server.
Full support for MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access, IBM DB2, SQLite, Firebird, Sybase, SAP MaxDB, HSQLDB and Informix database management systems.