mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-18 05:57:23 +00:00
Adding gadget fallback for non-query statement execution without stacked queries (PostgreSQL dblink)
This commit is contained in:
parent
8a3b312950
commit
529fc7aebb
7 changed files with 58 additions and 3 deletions
|
|
@ -102,7 +102,7 @@ class Takeover(GenericTakeover):
|
|||
def copyExecCmd(self, cmd):
|
||||
output = None
|
||||
|
||||
if isStackingAvailable() or conf.direct:
|
||||
if isStackingAvailable() or conf.direct or inject.getGadget():
|
||||
# Reference: https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5
|
||||
self._forgedCmd = "DROP TABLE IF EXISTS %s;" % self.cmdTblName
|
||||
self._forgedCmd += "CREATE TABLE %s(%s text);" % (self.cmdTblName, self.tblField)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue