Skip to content

Commit 19c6804

Browse files
committed
Fixed two minor bugs with PostgreSQL reported by Sven Klemm, thanks!
1 parent 2c98c11 commit 19c6804

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/core/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def setOs():
187187
elif "sp" not in kb.bannerFp and kb.os == "Windows":
188188
kb.osSP = 0
189189

190-
if kb.os and kb.osVersion:
190+
if kb.os and kb.osVersion and kb.osSP:
191191
infoMsg += " Service Pack %d" % kb.osSP
192192

193193
if infoMsg:

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
# sqlmap version and site
33-
VERSION = "0.7"
33+
VERSION = "0.8-dev1"
3434
VERSION_STRING = "sqlmap/%s" % VERSION
3535
SITE = "http://sqlmap.sourceforge.net"
3636

xml/queries.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@
151151
<blind query="SELECT (CASE WHEN usecreatedb THEN 1 ELSE 0 END), (CASE WHEN usesuper THEN 1 ELSE 0 END), (CASE WHEN usecatupd THEN 1 ELSE 0 END) FROM pg_user WHERE usename='%s' OFFSET %d LIMIT 1" count="SELECT COUNT(DISTINCT(usename)) FROM pg_user WHERE usename='%s'"/>
152152
</privileges>
153153
<dbs>
154-
<inband query="SELECT schemaname FROM pg_tables"/>
155-
<blind query="SELECT DISTINCT(schemaname) FROM pg_tables OFFSET %d LIMIT 1" count="SELECT COUNT(DISTINCT(schemaname)) FROM pg_tables"/>
154+
<inband query="SELECT datname FROM pg_database"/>
155+
<blind query="SELECT DISTINCT(datname) FROM pg_database OFFSET %d LIMIT 1" count="SELECT COUNT(DISTINCT(datname)) FROM pg_database"/>
156156
</dbs>
157157
<tables>
158158
<inband query="SELECT schemaname, tablename FROM pg_tables" condition="schemaname"/>

0 commit comments

Comments
 (0)