mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 13:03:50 +03:00
notify user if --udf-inject is provided but no stacked queries SQLi is detected
This commit is contained in:
parent
d6a361f859
commit
dea15b5892
|
@ -165,10 +165,13 @@ class UDF:
|
||||||
|
|
||||||
def udfInjectCustom(self):
|
def udfInjectCustom(self):
|
||||||
if Backend.getIdentifiedDbms() not in (DBMS.MYSQL, DBMS.PGSQL):
|
if Backend.getIdentifiedDbms() not in (DBMS.MYSQL, DBMS.PGSQL):
|
||||||
errMsg = "UDF injection feature is not yet implemented on %s" % Backend.getIdentifiedDbms()
|
errMsg = "UDF injection feature only works on MySQL and PostgreSQL"
|
||||||
raise SqlmapUnsupportedFeatureException(errMsg)
|
logger.error(errMsg)
|
||||||
|
return
|
||||||
|
|
||||||
if not isTechniqueAvailable(PAYLOAD.TECHNIQUE.STACKED) and not conf.direct:
|
if not isTechniqueAvailable(PAYLOAD.TECHNIQUE.STACKED) and not conf.direct:
|
||||||
|
errMsg = "UDF injection feature requires stacked queries SQL injection"
|
||||||
|
logger.error(errMsg)
|
||||||
return
|
return
|
||||||
|
|
||||||
self.checkDbmsOs()
|
self.checkDbmsOs()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user