mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Proper fix for --technique=U bug
This commit is contained in:
parent
8e8886cd20
commit
ac2550535c
|
@ -450,7 +450,7 @@ class Agent:
|
||||||
else:
|
else:
|
||||||
return query
|
return query
|
||||||
|
|
||||||
if Backend.getIdentifiedDbms() == DBMS.MYSQL:
|
if Backend.isDbms(DBMS.MYSQL):
|
||||||
if fieldsExists:
|
if fieldsExists:
|
||||||
concatenatedQuery = concatenatedQuery.replace("SELECT ", "CONCAT('%s'," % kb.misc.start, 1)
|
concatenatedQuery = concatenatedQuery.replace("SELECT ", "CONCAT('%s'," % kb.misc.start, 1)
|
||||||
concatenatedQuery += ",'%s')" % kb.misc.stop
|
concatenatedQuery += ",'%s')" % kb.misc.stop
|
||||||
|
|
|
@ -421,11 +421,19 @@ class Backend:
|
||||||
# Comparison methods
|
# Comparison methods
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def isDbms(dbms):
|
def isDbms(dbms):
|
||||||
return Backend.getDbms() is not None and Backend.getDbms() == aliasToDbmsEnum(dbms)
|
if Backend.getDbms() is not None:
|
||||||
|
return Backend.getDbms() == aliasToDbmsEnum(dbms)
|
||||||
|
else:
|
||||||
|
return Backend.getIdentifiedDbms() == aliasToDbmsEnum(dbms)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def isDbmsWithin(aliases):
|
def isDbmsWithin(aliases):
|
||||||
return Backend.getDbms() is not None and Backend.getDbms().lower() in aliases
|
if Backend.getDbms() is not None:
|
||||||
|
return Backend.getDbms().lower() in aliases
|
||||||
|
elif Backend.getIdentifiedDbms() is not None:
|
||||||
|
return Backend.getIdentifiedDbms().lower() in aliases
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def isVersion(version):
|
def isVersion(version):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user