mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-12 09:03:12 +03:00
Major bug fixes
This commit is contained in:
parent
9c125a2b57
commit
e10ab5aa0e
|
@ -389,6 +389,8 @@ def checkConnection():
|
||||||
conf.seqMatcher.set_seq1(page)
|
conf.seqMatcher.set_seq1(page)
|
||||||
|
|
||||||
except sqlmapConnectionException, exceptionMsg:
|
except sqlmapConnectionException, exceptionMsg:
|
||||||
|
exceptionMsg = str(exceptionMsg)
|
||||||
|
|
||||||
if conf.multipleTargets:
|
if conf.multipleTargets:
|
||||||
exceptionMsg += ", skipping to next url"
|
exceptionMsg += ", skipping to next url"
|
||||||
logger.warn(exceptionMsg)
|
logger.warn(exceptionMsg)
|
||||||
|
|
|
@ -100,6 +100,10 @@ SQL_STATEMENTS = {
|
||||||
"SQL data control": (
|
"SQL data control": (
|
||||||
"grant ", ),
|
"grant ", ),
|
||||||
|
|
||||||
|
"SQL data execution": (
|
||||||
|
"exec ",
|
||||||
|
"execute ", ),
|
||||||
|
|
||||||
"SQL transaction": (
|
"SQL transaction": (
|
||||||
"start transaction ",
|
"start transaction ",
|
||||||
"begin work ",
|
"begin work ",
|
||||||
|
|
|
@ -184,7 +184,7 @@ class MSSQLServerMap(Fingerprint, Enumeration, Filesystem, Takeover):
|
||||||
logger.info(logMsg)
|
logger.info(logMsg)
|
||||||
|
|
||||||
for version in ( 0, 5, 8 ):
|
for version in ( 0, 5, 8 ):
|
||||||
payload = agent.fullPayload(" AND SUBSTRING((@@VERSION), 25, 1)='%d'" % version)
|
payload = agent.fullPayload(" AND SUBSTRING((@@VERSION), 25, 1)=%d" % version)
|
||||||
result = Request.queryPage(payload)
|
result = Request.queryPage(payload)
|
||||||
|
|
||||||
if result == True:
|
if result == True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user