{"id":2759,"date":"2016-02-24T01:56:18","date_gmt":"2016-02-24T01:56:18","guid":{"rendered":"http:\/\/www.pir8geek.com\/?p=2759"},"modified":"2016-02-24T01:56:18","modified_gmt":"2016-02-24T01:56:18","slug":"sqlmap-automatic-sql-injection-and-database-takeover-tool","status":"publish","type":"post","link":"https:\/\/www.jameseduard.com\/?p=2759","title":{"rendered":"SQLMap &#8211; Automatic SQL Injection And Database Takeover Tool"},"content":{"rendered":"<div><strong>sqlmap<\/strong> is an<em> open source penetration testing tool<\/em> that automates the process of detecting and <em>exploiting SQL injection<\/em> flaws and taking over of database servers. It comes with a powerful detection engine, many niche features for the ultimate penetration tester and a broad range of switches lasting from database fingerprinting, over data fetching from the database, to accessing the underlying file system and executing commands on the operating system via out-of-band connections.<\/div>\n<p><strong>Features:<\/strong><\/p>\n<ul>\n<li>Full support for <strong>MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access, IBM DB2, SQLite, Firebird, Sybase, SAP MaxDB and HSQLDB<\/strong> database management systems.<\/li>\n<li>Full support for six SQL injection techniques: <strong>boolean-based blind, time-based blind, error-based, UNION query-based, stacked queries and out-of-band<\/strong>.<\/li>\n<li>Support to <strong>directly connect to the database<\/strong> without passing via a SQL injection, by providing DBMS credentials, IP address, port and database name.<\/li>\n<li>Support to enumerate <strong>users, password hashes, privileges, roles, databases, tables and columns<\/strong>.<\/li>\n<li>Automatic recognition of password hash formats and support for <strong>cracking them using a dictionary-based attack<\/strong>.<\/li>\n<li>Support to <strong>dump database tables<\/strong> entirely, a range of entries or specific columns as per user&#8217;s choice. The user can also choose to dump only a range of characters from each column&#8217;s entry.<\/li>\n<li>Support to <strong>search for specific database names, specific tables across all databases or specific columns across all databases&#8217; tables<\/strong>. This is useful, for instance, to identify tables containing custom application credentials where relevant columns&#8217; names contain string like name and pass.<\/li>\n<li>Support to <strong>download and upload any file<\/strong> from the database server underlying file system when the database software is MySQL, PostgreSQL or Microsoft SQL Server.<\/li>\n<li>Support to <strong>execute arbitrary commands and retrieve their standard output<\/strong> on the database server underlying operating system when the database software is MySQL, PostgreSQL or Microsoft SQL Server.<\/li>\n<li>Support to <strong>establish an out-of-band stateful TCP connection between the attacker machine and the database server<\/strong> underlying operating system. This channel can be an interactive command prompt, a Meterpreter session or a graphical user interface (VNC) session as per user&#8217;s choice.<\/li>\n<li>Support for <strong>database process&#8217; user privilege escalation<\/strong> via Metasploit&#8217;s Meterpreter <code>getsystem<\/code> command.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.blogger.com\/null\" name=\"features\"><\/a><br \/>\n<strong>Installation:<\/strong><br \/>\nYou can download the latest tarball by clicking here or latest zipball by clicking here.<br \/>\nPreferably, you can download sqlmap by cloning the Git repository:<\/p>\n<pre>git clone https:\/\/github.com\/sqlmapproject\/sqlmap.git sqlmap-dev\n<\/pre>\n<p>sqlmap works out of the box with Python version 2.6.x and 2.7.x on any platform.<br \/>\n<strong>Usage:<\/strong><br \/>\nTo get a list of basic options and switches use:<\/p>\n<pre>python sqlmap.py -h\n<\/pre>\n<p>To get a list of all options and switches use:<\/p>\n<pre>python sqlmap.py -hh\n<\/pre>\n<div style=\"text-align: center;\"><b><a href=\"http:\/\/sqlmap.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Download\u00a0SQLMap<\/a><\/b><\/div>\n","protected":false},"excerpt":{"rendered":"<p>sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. It comes with a powerful detection engine, many niche features for the ultimate penetration tester and a broad range of switches lasting from database fingerprinting, over data fetching from the<\/p>\n","protected":false},"author":1,"featured_media":2760,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[615,278],"tags":[36,654],"class_list":["post-2759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vulnerability-scanner","category-web-application","tag-sql-injection","tag-sql-map"],"_links":{"self":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/2759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2759"}],"version-history":[{"count":0,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=\/wp\/v2\/posts\/2759\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jameseduard.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}