mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +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):
|
||||
if Backend.getIdentifiedDbms() not in (DBMS.MYSQL, DBMS.PGSQL):
|
||||
errMsg = "UDF injection feature is not yet implemented on %s" % Backend.getIdentifiedDbms()
|
||||
raise SqlmapUnsupportedFeatureException(errMsg)
|
||||
errMsg = "UDF injection feature only works on MySQL and PostgreSQL"
|
||||
logger.error(errMsg)
|
||||
return
|
||||
|
||||
if not isTechniqueAvailable(PAYLOAD.TECHNIQUE.STACKED) and not conf.direct:
|
||||
errMsg = "UDF injection feature requires stacked queries SQL injection"
|
||||
logger.error(errMsg)
|
||||
return
|
||||
|
||||
self.checkDbmsOs()
|
||||
|
|
Loading…
Reference in New Issue
Block a user