Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2976ed7

Browse files
committed
Updated user's manual, added details about URI injection
1 parent dac59a5 commit 2976ed7

3 files changed

Lines changed: 103 additions & 4 deletions

File tree

doc/README.html

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <H1>sqlmap user's manual</H1>
99

1010
<H2>by
1111
<A HREF="mailto:[email protected]">Bernardo Damele A. G.</A>,
12-
<A HREF="mailto:[email protected]">Miroslav Stampar</A></H2>version 0.9, April 10, 2011
12+
<A HREF="mailto:[email protected]">Miroslav Stampar</A></H2>version 1.0-dev, XXX XX, 2011
1313
<HR>
1414
<EM>This document is the user's manual to use
1515
<A HREF="http://sqlmap.sourceforge.net">sqlmap</A>.</EM>
@@ -858,7 +858,7 @@ <H2><A NAME="s5">5.</A> <A HREF="#toc5">Usage</A></H2>
858858
<PRE>
859859
$ python sqlmap.py -h
860860

861-
sqlmap/0.9 - automatic SQL injection and database takeover tool
861+
sqlmap/1.0 - automatic SQL injection and database takeover tool
862862
http://sqlmap.sourceforge.net
863863

864864
Usage: python sqlmap.py [options]
@@ -961,6 +961,8 @@ <H2><A NAME="s5">5.</A> <A HREF="#toc5">Usage</A></H2>
961961
--dbs Enumerate DBMS databases
962962
--tables Enumerate DBMS database tables
963963
--columns Enumerate DBMS database table columns
964+
--schema Enumerate DBMS schema
965+
--count Retrieve number of entries for table(s)
964966
--dump Dump DBMS database table entries
965967
--dump-all Dump all DBMS databases tables entries
966968
--search Search column(s), table(s) and/or database name(s)
@@ -1039,6 +1041,7 @@ <H2><A NAME="s5">5.</A> <A HREF="#toc5">Usage</A></H2>
10391041
--cleanup Clean up the DBMS by sqlmap specific UDF and tables
10401042
--forms Parse and test forms on target url
10411043
--gpage=GOOGLEPAGE Use Google dork results from specified page number
1044+
--mobile Imitate smartphone through HTTP User-Agent header
10421045
--page-rank Display page rank (PR) for Google dork results
10431046
--parse-errors Parse DBMS error messages from response pages
10441047
--replicate Replicate dumped data into a sqlite3 database
@@ -1537,6 +1540,28 @@ <H3>Testable parameter(s)</H3>
15371540
<CODE>User-Agent</CODE> only, provide <CODE>-p id,user-agent</CODE>.</P>
15381541

15391542

1543+
<H3>URI injection point</H3>
1544+
1545+
<P>There are special cases when injection point is within the URI itself.
1546+
sqlmap does not perform any automatic test against URI paths, unless
1547+
manually pointed to.
1548+
You have to specify these injection points in the command line by
1549+
appending an asterisk (<CODE>*</CODE>) after each URI point that you want
1550+
sqlmap to test for and exploit a SQL injection.</P>
1551+
1552+
<P>This is particularly useful when, for instance, Apache web server's
1553+
<A HREF="http://httpd.apache.org/docs/current/mod/mod_rewrite.html">mod_rewrite</A> module is in use or other similar technologies.</P>
1554+
1555+
<P>An example of valid command line would be:</P>
1556+
<P>
1557+
<BLOCKQUOTE><CODE>
1558+
<PRE>
1559+
$ python sqlmap.py -u "http://targeturl/param1/value1*/param2/value2/"
1560+
</PRE>
1561+
</CODE></BLOCKQUOTE>
1562+
</P>
1563+
1564+
15401565
<H3>Force the database management system name</H3>
15411566

15421567
<P>Switch: <CODE>-</CODE><CODE>-dbms</CODE></P>
@@ -2147,6 +2172,20 @@ <H3>Enumerate database table columns</H3>
21472172
<CODE>public</CODE>.</P>
21482173

21492174

2175+
<H3>Enumerate database management system schema</H3>
2176+
2177+
<P>Switches: <CODE>-</CODE><CODE>-schema</CODE></P>
2178+
2179+
<P>TODO</P>
2180+
2181+
2182+
<H3>Retrieve number of entries for table(s)</H3>
2183+
2184+
<P>Switches: <CODE>-</CODE><CODE>-count</CODE></P>
2185+
2186+
<P>TODO</P>
2187+
2188+
21502189
<H3>Dump database table entries</H3>
21512190

21522191
<P>Switches: <CODE>-</CODE><CODE>-dump</CODE>, <CODE>-C</CODE>, <CODE>-T</CODE>, <CODE>-D</CODE>,
@@ -3081,6 +3120,13 @@ <H3>Use Google dork results from specified page number</H3>
30813120
to retrieve target URLs from.</P>
30823121

30833122

3123+
<H3>Imitate smartphone</H3>
3124+
3125+
<P>Switch: <CODE>-</CODE><CODE>-mobile</CODE></P>
3126+
3127+
<P>TODO</P>
3128+
3129+
30843130
<H3>Display page rank (PR) for Google dork results</H3>
30853131

30863132
<P>Switch: <CODE>-</CODE><CODE>-page-rank</CODE></P>

doc/README.pdf

3.92 KB
Binary file not shown.

doc/README.sgml

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<title>sqlmap user's manual
66
<author>by <htmlurl url="mailto:[email protected]" name="Bernardo Damele A. G.">, <htmlurl url="mailto:[email protected]" name="Miroslav Stampar">
7-
<date>version 0.9, April 10, 2011
7+
<date>version 1.0-dev, XXX XX, 2011
88
<abstract>
99
This document is the user's manual to use <htmlurl url="http://sqlmap.sourceforge.net" name="sqlmap">.
1010
</abstract>
@@ -772,7 +772,7 @@ This is strongly recommended <bf>before</bf> reporting any bug to the
772772
<tscreen><verb>
773773
$ python sqlmap.py -h
774774

775-
sqlmap/0.9 - automatic SQL injection and database takeover tool
775+
sqlmap/1.0 - automatic SQL injection and database takeover tool
776776
http://sqlmap.sourceforge.net
777777

778778
Usage: python sqlmap.py [options]
@@ -875,6 +875,8 @@ Options:
875875
--dbs Enumerate DBMS databases
876876
--tables Enumerate DBMS database tables
877877
--columns Enumerate DBMS database table columns
878+
--schema Enumerate DBMS schema
879+
--count Retrieve number of entries for table(s)
878880
--dump Dump DBMS database table entries
879881
--dump-all Dump all DBMS databases tables entries
880882
--search Search column(s), table(s) and/or database name(s)
@@ -953,6 +955,7 @@ Options:
953955
--cleanup Clean up the DBMS by sqlmap specific UDF and tables
954956
--forms Parse and test forms on target url
955957
--gpage=GOOGLEPAGE Use Google dork results from specified page number
958+
--mobile Imitate smartphone through HTTP User-Agent header
956959
--page-rank Display page rank (PR) for Google dork results
957960
--parse-errors Parse DBMS error messages from response pages
958961
--replicate Replicate dumped data into a sqlite3 database
@@ -1512,6 +1515,29 @@ For instance, to test for GET parameter <tt>id</tt> and for HTTP
15121515
<tt>User-Agent</tt> only, provide <tt>-p id,user-agent</tt>.
15131516

15141517

1518+
<sect2>URI injection point
1519+
1520+
<p>
1521+
There are special cases when injection point is within the URI itself.
1522+
sqlmap does not perform any automatic test against URI paths, unless
1523+
manually pointed to.
1524+
You have to specify these injection points in the command line by
1525+
appending an asterisk (<tt>*</tt>) after each URI point that you want
1526+
sqlmap to test for and exploit a SQL injection.
1527+
1528+
<p>
1529+
This is particularly useful when, for instance, Apache web server's
1530+
<htmlurl url="http://httpd.apache.org/docs/current/mod/mod_rewrite.html"
1531+
name="mod_rewrite"> module is in use or other similar technologies.
1532+
1533+
<p>
1534+
An example of valid command line would be:
1535+
1536+
<tscreen><verb>
1537+
$ python sqlmap.py -u "http://targeturl/param1/value1*/param2/value2/"
1538+
</verb></tscreen>
1539+
1540+
15151541
<sect2>Force the database management system name
15161542

15171543
<p>
@@ -2189,6 +2215,24 @@ application's user is connected to, which is always aliased by
21892215
<tt>public</tt>.
21902216

21912217

2218+
<sect2>Enumerate database management system schema
2219+
2220+
<p>
2221+
Switches: <tt>-</tt><tt>-schema</tt>
2222+
2223+
<p>
2224+
TODO
2225+
2226+
2227+
<sect2>Retrieve number of entries for table(s)
2228+
2229+
<p>
2230+
Switches: <tt>-</tt><tt>-count</tt>
2231+
2232+
<p>
2233+
TODO
2234+
2235+
21922236
<sect2>Dump database table entries
21932237

21942238
<p>
@@ -3201,6 +3245,15 @@ this switch, <tt>-</tt><tt>-gpage</tt>, some page other than the first one
32013245
to retrieve target URLs from.
32023246

32033247

3248+
<sect2>Imitate smartphone
3249+
3250+
<p>
3251+
Switch: <tt>-</tt><tt>-mobile</tt>
3252+
3253+
<p>
3254+
TODO
3255+
3256+
32043257
<sect2>Display page rank (PR) for Google dork results
32053258

32063259
<p>

0 commit comments

Comments
 (0)