<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Sqlmap on Lei&#39;s Blog</title>
        <link>https://i.lilei.in/tags/sqlmap/</link>
        <description>Recent content in Sqlmap on Lei&#39;s Blog</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>zh-CN</language>
        <lastBuildDate>Wed, 19 Aug 2015 22:03:47 +0000</lastBuildDate><atom:link href="https://i.lilei.in/tags/sqlmap/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>sqlmap -hh</title>
            <link>https://i.lilei.in/posts/oldfromtypecho/201502192286/</link>
            <pubDate>Wed, 19 Aug 2015 22:02:37 +0000</pubDate>
            <guid>https://i.lilei.in/posts/oldfromtypecho/201502192286/</guid>
            <description>&lt;img src=&#34;https://images.metmuseum.org/CRDImages/ep/web-large/DP-15730-001.jpg&#34; alt=&#34;Featured image of post sqlmap -hh&#34; /&gt;&lt;p&gt;为了方便阅读，输出并摘录如下：&#xA;Linux lilei 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 i686&lt;/p&gt;&#xA;&lt;p&gt;The programs included with the Debian GNU/Linux system are free software;&#xA;the exact distribution terms for each program are described in the&#xA;individual files in /usr/share/doc/*/copyright.&lt;/p&gt;&#xA;&lt;p&gt;Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent&#xA;permitted by applicable law.&#xA;root@lilei:~# sqlmap&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sqlmap/0.9 - automatic SQL injection and database takeover tool&#xA;http://sqlmap.sourceforge.net&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Usage: python /root/sqlmap/sqlmap/sqlmap.py [options]&lt;/p&gt;&#xA;&lt;p&gt;sqlmap.py: error: missing a mandatory parameter (&amp;rsquo;-d&amp;rsquo;, &amp;lsquo;-u&amp;rsquo;, &amp;lsquo;-l&amp;rsquo;, &amp;lsquo;-r&amp;rsquo;, &amp;lsquo;-g&amp;rsquo;, &amp;lsquo;-c&amp;rsquo;, &amp;lsquo;&amp;ndash;wizard&amp;rsquo; or &amp;lsquo;&amp;ndash;update&amp;rsquo;), -h for help&#xA;root@lilei:~# sqlmap -hh&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;sqlmap/0.9 - automatic SQL injection and database takeover tool&#xA;http://sqlmap.sourceforge.net&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Usage: python /root/sqlmap/sqlmap/sqlmap.py [options]&lt;/p&gt;&#xA;&lt;p&gt;Options:&#xA;&amp;ndash;version             show program&amp;rsquo;s version number and exit&#xA;-h, &amp;ndash;help            show this help message and exit&#xA;-v VERBOSE            Verbosity level: 0-6 (default 1)&lt;/p&gt;&#xA;&lt;p&gt;Target:&#xA;At least one of these options has to be specified to set the source to&#xA;get target urls from.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-d DIRECT           Direct connection to the database&#xA;-u URL, --url=URL   Target url&#xA;-l LIST             Parse targets from Burp or WebScarab proxy logs&#xA;-r REQUESTFILE      Load HTTP request from a file&#xA;-g GOOGLEDORK       Process Google dork results as target urls&#xA;-c CONFIGFILE       Load options from a configuration INI file&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Request:&#xA;These options can be used to specify how to connect to the target url.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--data=DATA         Data string to be sent through POST&#xA;--cookie=COOKIE     HTTP Cookie header&#xA;--cookie-urlencode  URL Encode generated cookie injections&#xA;--drop-set-cookie   Ignore Set-Cookie header from response&#xA;--user-agent=AGENT  HTTP User-Agent header&#xA;--random-agent      Use randomly selected HTTP User-Agent header&#xA;--referer=REFERER   HTTP Referer header&#xA;--headers=HEADERS   Extra HTTP headers newline separated    --auth-type=ATYPE   HTTP authentication type (Basic, Digest or NTLM)&#xA;--auth-cred=ACRED   HTTP authentication credentials (name:password)&#xA;--auth-cert=ACERT   HTTP authentication certificate (key_file,cert_file)&#xA;--proxy=PROXY       Use a HTTP proxy to connect to the target url&#xA;--proxy-cred=PCRED  HTTP proxy authentication credentials (name:password)&#xA;--ignore-proxy      Ignore system default HTTP proxy&#xA;--delay=DELAY       Delay in seconds between each HTTP request&#xA;--timeout=TIMEOUT   Seconds to wait before timeout connection (default 30)&#xA;--retries=RETRIES   Retries when the connection timeouts (default 3)&#xA;--scope=SCOPE       Regexp to filter targets from provided proxy log&#xA;--safe-url=SAFURL   Url address to visit frequently during testing&#xA;--safe-freq=SAFREQ  Test requests between two visits to a given safe url&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Optimization:&#xA;These options can be used to optimize the performance of sqlmap.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-o                  Turn on all optimization switches&#xA;--predict-output    Predict common queries output&#xA;--keep-alive        Use persistent HTTP(s) connections&#xA;--null-connection   Retrieve page length without actual HTTP response body&#xA;--threads=THREADS   Max number of concurrent HTTP(s) requests (default 1)&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Injection:&#xA;These options can be used to specify which parameters to test for,&#xA;provide custom injection payloads and optional tampering scripts.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-p TESTPARAMETER    Testable parameter(s)&#xA;--dbms=DBMS         Force back-end DBMS to this value&#xA;--os=OS             Force back-end DBMS operating system to this value&#xA;--prefix=PREFIX     Injection payload prefix string&#xA;--suffix=SUFFIX     Injection payload suffix string&#xA;--tamper=TAMPER     Use given script(s) for tampering injection data&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Detection:&#xA;These options can be used to specify how to parse and compare page&#xA;content from HTTP responses when using blind SQL injection technique.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--level=LEVEL       Level of tests to perform (1-5, default 1)&#xA;--risk=RISK         Risk of tests to perform (0-3, default 1)&#xA;--string=STRING     String to match in page when the query is valid&#xA;--regexp=REGEXP     Regexp to match in page when the query is valid&#xA;--text-only         Compare pages based only on the textual content&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Techniques:&#xA;These options can be used to tweak testing of specific SQL injection&#xA;techniques.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--technique=TECH    SQL injection techniques to test for (default BEUST)&#xA;--time-sec=TIMESEC  Seconds to delay the DBMS response (default 5)&#xA;--union-cols=UCOLS  Range of columns to test for UNION query SQL injection&#xA;--union-char=UCHAR  Character to use for bruteforcing number of columns&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Fingerprint:&#xA;-f, &amp;ndash;fingerprint   Perform an extensive DBMS version fingerprint&lt;/p&gt;&#xA;&lt;p&gt;Enumeration:&#xA;These options can be used to enumerate the back-end database&#xA;management system information, structure and data contained in the&#xA;tables. Moreover you can run your own SQL statements.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-b, --banner        Retrieve DBMS banner&#xA;--current-user      Retrieve DBMS current user&#xA;--current-db        Retrieve DBMS current database&#xA;--is-dba            Detect if the DBMS current user is DBA&#xA;--users             Enumerate DBMS users&#xA;--passwords         Enumerate DBMS users password hashes    --privileges        Enumerate DBMS users privileges&#xA;--roles             Enumerate DBMS users roles&#xA;--dbs               Enumerate DBMS databases&#xA;--tables            Enumerate DBMS database tables&#xA;--columns           Enumerate DBMS database table columns&#xA;--dump              Dump DBMS database table entries&#xA;--dump-all          Dump all DBMS databases tables entries&#xA;--search            Search column(s), table(s) and/or database name(s)&#xA;-D DB               DBMS database to enumerate&#xA;-T TBL              DBMS database table to enumerate&#xA;-C COL              DBMS database table column to enumerate&#xA;-U USER             DBMS user to enumerate&#xA;--exclude-sysdbs    Exclude DBMS system databases when enumerating tables&#xA;--start=LIMITSTART  First query output entry to retrieve    --stop=LIMITSTOP    Last query output entry to retrieve&#xA;--first=FIRSTCHAR   First query output word character to retrieve&#xA;--last=LASTCHAR     Last query output word character to retrieve&#xA;--sql-query=QUERY   SQL statement to be executed&#xA;--sql-shell         Prompt for an interactive SQL shell&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Brute force:&#xA;These options can be used to run brute force checks.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--common-tables     Check existence of common tables&#xA;--common-columns    Check existence of common columns&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;User-defined function injection:&#xA;These options can be used to create custom user-defined functions.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--udf-inject        Inject custom user-defined functions    --shared-lib=SHLIB  Local path of the shared library&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;File system access:&#xA;These options can be used to access the back-end database management&#xA;system underlying file system.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--file-read=RFILE   Read a file from the back-end DBMS file system&#xA;--file-write=WFILE  Write a local file on the back-end DBMS file system&#xA;--file-dest=DFILE   Back-end DBMS absolute filepath to write to&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Operating system access:&#xA;These options can be used to access the back-end database management&#xA;system underlying operating system.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--os-cmd=OSCMD      Execute an operating system command&#xA;--os-shell          Prompt for an interactive operating system shell&#xA;--os-pwn            Prompt for an out-of-band shell, meterpreter or VNC&#xA;--os-smbrelay       One click prompt for an OOB shell, meterpreter or VNC&#xA;--os-bof            Stored procedure buffer overflow exploitation&#xA;--priv-esc          Database process&#39; user privilege escalation&#xA;--msf-path=MSFPATH  Local path where Metasploit Framework 3 is installed&#xA;--tmp-path=TMPPATH  Remote absolute path of temporary files directory&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Windows registry access:&#xA;These options can be used to access the back-end database management&#xA;system Windows registry.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;--reg-read          Read a Windows registry key value&#xA;--reg-add           Write a Windows registry key value data&#xA;--reg-del           Delete a Windows registry key value&#xA;--reg-key=REGKEY    Windows registry key&#xA;--reg-value=REGVAL  Windows registry key value&#xA;--reg-data=REGDATA  Windows registry key value data&#xA;--reg-type=REGTYPE  Windows registry key value type&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;General:&#xA;These options can be used to set some general working parameters.&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;-t TRAFFICFILE      Log all HTTP traffic into a textual file&#xA;-s SESSIONFILE      Save and resume all data retrieved on a session file&#xA;--flush-session     Flush session file for current target&#xA;--fresh-queries     Ignores query results stored in session file&#xA;--eta               Display for each output the estimated time of arrival&#xA;--update            Update sqlmap&#xA;--save              Save options on a configuration INI file&#xA;--batch             Never ask for user input, use the default behaviour&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Miscellaneous:&#xA;&amp;ndash;beep              Alert when sql injection found&#xA;&amp;ndash;check-payload     IDS detection testing of injection payloads&#xA;&amp;ndash;cleanup           Clean up the DBMS by sqlmap specific UDF and tables&#xA;&amp;ndash;forms             Parse and test forms on target url&#xA;&amp;ndash;gpage=GOOGLEPAGE  Use Google dork results from specified page number&#xA;&amp;ndash;page-rank         Display page rank (PR) for Google dork results&#xA;&amp;ndash;parse-errors      Parse DBMS error messages from response pages&#xA;&amp;ndash;replicate         Replicate dumped data into a sqlite3 database&#xA;&amp;ndash;tor               Use default Tor (Vidalia/Privoxy/Polipo) proxy address&#xA;&amp;ndash;wizard            Simple wizard interface for beginner users&#xA;root@lilei:~#&lt;/p&gt;</description>
        </item></channel>
</rss>
