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

Skip to content

Commit b3bc401

Browse files
committed
Fixing #4768
1 parent 06cd97f commit b3bc401

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

data/xml/queries.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
</dbs>
129129
<tables>
130130
<inband query="SELECT schemaname,tablename FROM pg_tables" condition="schemaname"/>
131-
<blind query="SELECT tablename FROM pg_tables WHERE schemaname='%s' ORDER BY tablename OFFSET %d LIMIT 1" count="SELECT COUNT(tablename) FROM pg_tables WHERE schemaname='%s'"/>
131+
<blind query="SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE LENGTH('%s')>0 OFFSET %d LIMIT 1" count="SELECT COUNT(table_name) FROM INFORMATION_SCHEMA.TABLES WHERE LENGTH('%s')>0"/>
132132
</tables>
133133
<columns>
134134
<inband query="SELECT attname,typname FROM pg_attribute b JOIN pg_class a ON a.oid=b.attrelid JOIN pg_type c ON c.oid=b.atttypid JOIN pg_namespace d ON a.relnamespace=d.oid WHERE b.attnum>0 AND a.relname='%s' AND nspname='%s' ORDER BY attname" condition="attname"/>

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.8.0"
23+
VERSION = "1.5.8.1"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/hash.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,10 @@ def storeHashesToFile(attack_dict):
636636

637637
with openFile(filename, "w+") as f:
638638
for item in items:
639-
f.write(item)
639+
try:
640+
f.write(item)
641+
except (UnicodeError, TypeError):
642+
pass
640643

641644
def attackCachedUsersPasswords():
642645
if kb.data.cachedUsersPasswords:

0 commit comments

Comments
 (0)