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

Skip to content

Commit 9a48a27

Browse files
committed
Patch related to the #4613
1 parent 6ae0d0f commit 9a48a27

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

data/txt/sha256sums.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ bf77f9fc4296f239687297aee1fd6113b34f855965a6f690b52e26bd348cb353 lib/core/profi
187187
4eff81c639a72b261c8ba1c876a01246e718e6626e8e77ae9cc6298b20a39355 lib/core/replication.py
188188
bbd1dcda835934728efc6d68686e9b0da72b09b3ee38f3c0ab78e8c18b0ba726 lib/core/revision.py
189189
eed6b0a21b3e69c5583133346b0639dc89937bd588887968ee85f8389d7c3c96 lib/core/session.py
190-
e61388bf2a8ce5df511d28fb09749a937cbef4bd8878c2c7bc85f244e15e25ec lib/core/settings.py
190+
3c7e7655ac72fc1a6676438dfc2be407df5e50bd5addd38bdc205a2927015be0 lib/core/settings.py
191191
2bec97d8a950f7b884e31dfe9410467f00d24f21b35672b95f8d68ed59685fd4 lib/core/shell.py
192192
e90a359b37a55c446c60e70ccd533f87276714d0b09e34f69b0740fd729ddbf8 lib/core/subprocessng.py
193193
54f7c70b4c7a9931f7ff3c1c12030180bde38e35a306d5e343ad6052919974cd lib/core/target.py
@@ -460,8 +460,8 @@ acc41465f146d2611fca5a84bd8896bc0ccd2b032b8938357aea3e5b173a5a10 plugins/dbms/v
460460
7ac6006e0fc6da229c37fbce39a1406022e5fcc4cac5209814fa20818b8c031a plugins/dbms/virtuoso/takeover.py
461461
e6dfaab13d9f98ccffdc70dd46800ca2d61519731d10a267bc82f9fb82cd504d plugins/generic/connector.py
462462
664be8bb4157452f2e40c4f98a359e26b559d7ef4f4148564cb8533b5ebf7d54 plugins/generic/custom.py
463-
22b85d8b07a5f00a9a0d61093b96accd3c5a3daf50701366feef1b5b58d4042e plugins/generic/databases.py
464-
37e83713dbd6564deadb7fe68478129d411de93eaf5c5e0276124248e9373025 plugins/generic/entries.py
463+
2a52c448a9395bd527fc40ef826e220e2d093e28e5ca296144a4f7550989a819 plugins/generic/databases.py
464+
f8fc1af049d08e7ff87899cad7766f376cc6dfe45baafb86ef13e7252b833e00 plugins/generic/entries.py
465465
a734d74599761cd1cf7d49c88deeb121ea57d80c2f0447e361a4e3a737154c0e plugins/generic/enumeration.py
466466
1c2e812096015eaef55be45d3a0bcd92b4db27eace47e36577aeff7b4246ad35 plugins/generic/filesystem.py
467467
05f33c9ba3897e8d75c8cf4be90eb24b08e1d7cd0fc0f74913f052c83bc1a7c1 plugins/generic/fingerprint.py

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from thirdparty import six
2020

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

plugins/generic/databases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def getTables(self, bruteForce=None):
321321
values = [(dbs[0], _) for _ in values]
322322

323323
for db, table in filterPairValues(values):
324-
table = unArrayizeValue(table)
324+
table = unArrayizeValue(table).strip()
325325

326326
if not isNoneValue(table):
327327
db = safeSQLIdentificatorNaming(db)

plugins/generic/entries.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,14 @@ def dumpTable(self, foundData=None):
134134
kb.dumpTable = "%s:%s" % (conf.db, tbl)
135135
elif Backend.isDbms(DBMS.SQLITE):
136136
kb.dumpTable = tbl
137+
elif METADB_SUFFIX.upper() in conf.db.upper():
138+
kb.dumpTable = tbl
137139
else:
138140
kb.dumpTable = "%s.%s" % (conf.db, tbl)
139141

140142
if safeSQLIdentificatorNaming(conf.db) not in kb.data.cachedColumns or safeSQLIdentificatorNaming(tbl, True) not in kb.data.cachedColumns[safeSQLIdentificatorNaming(conf.db)] or not kb.data.cachedColumns[safeSQLIdentificatorNaming(conf.db)][safeSQLIdentificatorNaming(tbl, True)]:
141143
warnMsg = "unable to enumerate the columns for table '%s'" % unsafeSQLIdentificatorNaming(tbl)
142-
if METADB_SUFFIX not in conf.db:
144+
if METADB_SUFFIX.upper() not in conf.db.upper():
143145
warnMsg += " in database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
144146
warnMsg += ", skipping" if len(tblList) > 1 else ""
145147
logger.warning(warnMsg)
@@ -154,7 +156,7 @@ def dumpTable(self, foundData=None):
154156

155157
if not colList:
156158
warnMsg = "skipping table '%s'" % unsafeSQLIdentificatorNaming(tbl)
157-
if METADB_SUFFIX not in conf.db:
159+
if METADB_SUFFIX.upper() not in conf.db.upper():
158160
warnMsg += " in database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
159161
warnMsg += " (no usable column names)"
160162
logger.warning(warnMsg)
@@ -168,7 +170,7 @@ def dumpTable(self, foundData=None):
168170
if conf.col:
169171
infoMsg += " of column(s) '%s'" % colNames
170172
infoMsg += " for table '%s'" % unsafeSQLIdentificatorNaming(tbl)
171-
if METADB_SUFFIX not in conf.db:
173+
if METADB_SUFFIX.upper() not in conf.db.upper():
172174
infoMsg += " in database '%s'" % unsafeSQLIdentificatorNaming(conf.db)
173175
logger.info(infoMsg)
174176

0 commit comments

Comments
 (0)