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

Skip to content

Commit a42a7c8

Browse files
committed
Fixes #3841
1 parent b5063fc commit a42a7c8

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

lib/core/dump.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -676,28 +676,28 @@ def dbColumns(self, dbColumnsDict, colConsider, dbs):
676676
else:
677677
colConsiderStr = " '%s' was" % unsafeSQLIdentificatorNaming(column)
678678

679-
msg = "column%s found in the " % colConsiderStr
680-
msg += "following databases:"
681-
self._write(msg)
682-
683-
_ = {}
684-
679+
found = {}
685680
for db, tblData in dbs.items():
686681
for tbl, colData in tblData.items():
687682
for col, dataType in colData.items():
688683
if column.lower() in col.lower():
689-
if db in _:
690-
if tbl in _[db]:
691-
_[db][tbl][col] = dataType
684+
if db in found:
685+
if tbl in found[db]:
686+
found[db][tbl][col] = dataType
692687
else:
693-
_[db][tbl] = {col: dataType}
688+
found[db][tbl] = {col: dataType}
694689
else:
695-
_[db] = {}
696-
_[db][tbl] = {col: dataType}
690+
found[db] = {}
691+
found[db][tbl] = {col: dataType}
697692

698693
continue
699694

700-
self.dbTableColumns(_)
695+
if found:
696+
msg = "column%s found in the " % colConsiderStr
697+
msg += "following databases:"
698+
self._write(msg)
699+
700+
self.dbTableColumns(found)
701701

702702
def sqlQuery(self, query, queryRes):
703703
self.string(query, queryRes, content_type=CONTENT_TYPE.SQL_QUERY)

lib/core/settings.py

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

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

0 commit comments

Comments
 (0)