mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
bug fix (pgsql drop function requires input arguments - at cleanup() in plugins/generic/misc.py it's already fixed before)
This commit is contained in:
parent
99adbbeaa3
commit
68c7247ee4
|
@ -69,7 +69,7 @@ class Takeover(GenericTakeover):
|
||||||
ret = inpRet["return"]
|
ret = inpRet["return"]
|
||||||
|
|
||||||
# Reference: http://www.postgresql.org/docs/8.3/interactive/sql-createfunction.html
|
# Reference: http://www.postgresql.org/docs/8.3/interactive/sql-createfunction.html
|
||||||
inject.goStacked("DROP FUNCTION %s" % udf)
|
inject.goStacked("DROP FUNCTION %s(%s)" % (udf, inp))
|
||||||
inject.goStacked("CREATE OR REPLACE FUNCTION %s(%s) RETURNS %s AS '%s', '%s' LANGUAGE C RETURNS NULL ON NULL INPUT IMMUTABLE" % (udf, inp, ret, self.udfRemoteFile, udf))
|
inject.goStacked("CREATE OR REPLACE FUNCTION %s(%s) RETURNS %s AS '%s', '%s' LANGUAGE C RETURNS NULL ON NULL INPUT IMMUTABLE" % (udf, inp, ret, self.udfRemoteFile, udf))
|
||||||
|
|
||||||
self.createdUdf.add(udf)
|
self.createdUdf.add(udf)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user