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

Skip to content

Commit 981c7a4

Browse files
committed
Updated Microsoft SQL Server XML signature db
1 parent 793c323 commit 981c7a4

2 files changed

Lines changed: 37 additions & 10 deletions

File tree

doc/README.sgml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,13 +2567,12 @@ $ python sqlmap.py -u "http://192.168.1.121/sqlmap/pgsql/get_int.php?id=1" --is-
25672567
[...]
25682568
back-end DBMS: PostgreSQL
25692569

2570-
[hh:mm:52] [INFO] testing if current user is DBA
2571-
[hh:mm:52] [INFO] query: SELECT (CASE WHEN ((SELECT usesuper=true FROM pg_user WHERE
2572-
usename=CURRENT_USER OFFSET 0 LIMIT 1)=CHR(116)||CHR(114)||CHR(117)||CHR(101)) THEN 1
2573-
ELSE 0 END)
2574-
[hh:mm:52] [INFO] retrieved:
2575-
[hh:mm:52] [INFO] performed 6 queries in 0 seconds
2576-
current user is DBA: 'False'
2570+
[hh:mm:49] [INFO] testing if current user is DBA
2571+
[hh:mm:49] [INFO] query: SELECT (CASE WHEN ((SELECT usesuper=true FROM pg_user WHERE
2572+
usename=CURRENT_USER OFFSET 0 LIMIT 1)) THEN 1 ELSE 0 END)
2573+
[hh:mm:49] [INFO] retrieved: 1
2574+
[hh:mm:50] [INFO] performed 13 queries in 0 seconds
2575+
current user is DBA: 'True'
25772576
</verb></tscreen>
25782577

25792578
<p>
@@ -3612,6 +3611,8 @@ Example of TAB completion on a <bf>MySQL 5.0.67</bf> target:
36123611
$ python sqlmap.py -u "http://192.168.1.121/sqlmap/mysql/get_int.php?id=1" --sql-shell -v 0
36133612

36143613
sql> [TAB TAB]
3614+
LIMIT
3615+
(SELECT super_priv FROM mysql.user WHERE user=(SUBSTRING_INDEX(CURRENT_USER(), '@', 1)) LIMIT 0, 1)='Y'
36153616
AND ORD(MID((%s), %d, 1)) > %d
36163617
CAST(%s AS CHAR(10000))
36173618
COUNT(%s)
@@ -3623,14 +3624,16 @@ LIMIT %d, %d
36233624
MID((%s), %d, %d)
36243625
ORDER BY %s ASC
36253626
SELECT %s FROM %s.%s
3626-
SELECT column_name, column_type FROM information_schema.COLUMNS WHERE table_name='%s' AND
3627-
table_schema='%s'
3627+
SELECT (CASE WHEN (%s) THEN 1 ELSE 0 END)
3628+
SELECT column_name, column_type FROM information_schema.COLUMNS WHERE table_name='%s' AND table_schema='%s'
36283629
SELECT grantee FROM information_schema.USER_PRIVILEGES
36293630
SELECT grantee, privilege_type FROM information_schema.USER_PRIVILEGES
36303631
SELECT schema_name FROM information_schema.SCHEMATA
36313632
SELECT table_schema, table_name FROM information_schema.TABLES
36323633
SELECT user, password FROM mysql.user
3634+
SLEEP(%d)
36333635
VERSION()
3636+
\s+LIMIT\s+([\d]+)\s*\,\s*([\d]+)
36343637
sql> SE[TAB]
36353638
sql> SELECT
36363639
</verb></tscreen>
@@ -3676,7 +3679,7 @@ table_schema=CHAR(116,101,115,116) LIMIT 2, 1
36763679
[hh:mm:48] [INFO] retrieved: surname
36773680
[hh:mm:48] [INFO] performed 55 queries in 0 seconds
36783681
[hh:mm:48] [INFO] the query with column names is: SELECT id, name, surname FROM test.users
3679-
[hh:mm:48] [INPUT] does the SQL query that you provide might return multiple entries? [Y/n] y
3682+
[hh:mm:48] [INPUT] can the SQL query provided return multiple entries? [Y/n] y
36803683
[hh:mm:04] [INFO] query: SELECT IFNULL(CAST(COUNT(id) AS CHAR(10000)), CHAR(32)) FROM test.users
36813684
[hh:mm:04] [INFO] retrieved: 5
36823685
[hh:mm:04] [INFO] performed 13 queries in 0 seconds

xml/banner/mssql.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
<?xml version="1.0" ?>
22
<root>
33
<signatures release="2008">
4+
<signature>
5+
<version>
6+
10.00.1779
7+
</version>
8+
<servicepack>
9+
+Q958186
10+
</servicepack>
11+
</signature>
12+
<signature>
13+
<version>
14+
10.00.1771
15+
</version>
16+
<servicepack>
17+
+Q958611
18+
</servicepack>
19+
</signature>
420
<signature>
521
<version>
622
10.00.1750
@@ -43,6 +59,14 @@
4359
</signature>
4460
</signatures>
4561
<signatures release="2005">
62+
<signature>
63+
<version>
64+
9.00.4207
65+
</version>
66+
<servicepack>
67+
3+Q959195
68+
</servicepack>
69+
</signature>
4670
<signature>
4771
<version>
4872
9.00.4035

0 commit comments

Comments
 (0)