mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-11 10:41:09 +00:00
Fixing stacked writing for PgSQL
This commit is contained in:
parent
6d1382f448
commit
46ba1d1bf1
3 changed files with 4 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ class Filesystem(GenericFilesystem):
|
|||
for sqlQuery in sqlQueries:
|
||||
inject.goStacked(sqlQuery)
|
||||
|
||||
inject.goStacked("INSERT INTO pg_largeobject VALUES (%d, %d, DECODE((SELECT %s FROM %s), 'base64'))" % (self.oid, self.page, self.tblField, self.fileTblName))
|
||||
inject.goStacked("INSERT INTO pg_largeobject VALUES (%d, %d, DECODE((SELECT ARRAY_TO_STRING(ARRAY_AGG(%s), '') FROM %s), 'base64'))" % (self.oid, self.page, self.tblField, self.fileTblName))
|
||||
inject.goStacked("DELETE FROM %s" % self.fileTblName)
|
||||
|
||||
self.page += 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue