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

Skip to content

Commit bce3abc

Browse files
committed
Fixes #4612
1 parent 8d6125f commit bce3abc

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

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.5.3.18"
21+
VERSION = "1.5.3.19"
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)

lib/utils/sqlalchemy.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,22 @@ def fetchall(self):
101101
return None
102102

103103
def execute(self, query):
104+
retVal = False
105+
104106
try:
105107
self.cursor = self.connector.execute(query)
108+
retVal = True
106109
except (_sqlalchemy.exc.OperationalError, _sqlalchemy.exc.ProgrammingError) as ex:
107110
logger.log(logging.WARN if conf.dbmsHandler else logging.DEBUG, "(remote) %s" % getSafeExString(ex))
108111
except _sqlalchemy.exc.InternalError as ex:
109112
raise SqlmapConnectionException(getSafeExString(ex))
110113

114+
return retVal
115+
111116
def select(self, query):
112-
self.execute(query)
113-
return self.fetchall()
117+
retVal = None
118+
119+
if self.execute(query):
120+
retVal = self.fetchall()
121+
122+
return retVal

0 commit comments

Comments
 (0)