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

Skip to content

Commit e10ab5a

Browse files
committed
Major bug fixes
1 parent 9c125a2 commit e10ab5a

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ def checkConnection():
389389
conf.seqMatcher.set_seq1(page)
390390

391391
except sqlmapConnectionException, exceptionMsg:
392+
exceptionMsg = str(exceptionMsg)
393+
392394
if conf.multipleTargets:
393395
exceptionMsg += ", skipping to next url"
394396
logger.warn(exceptionMsg)

lib/core/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
"SQL data control": (
101101
"grant ", ),
102102

103+
"SQL data execution": (
104+
"exec ",
105+
"execute ", ),
106+
103107
"SQL transaction": (
104108
"start transaction ",
105109
"begin work ",

plugins/dbms/mssqlserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def checkDbms(self):
184184
logger.info(logMsg)
185185

186186
for version in ( 0, 5, 8 ):
187-
payload = agent.fullPayload(" AND SUBSTRING((@@VERSION), 25, 1)='%d'" % version)
187+
payload = agent.fullPayload(" AND SUBSTRING((@@VERSION), 25, 1)=%d" % version)
188188
result = Request.queryPage(payload)
189189

190190
if result == True:

0 commit comments

Comments
 (0)