mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-09-27 13:34:33 +00:00
Enabling PostgreSQL file write over a gadget when stacked queries are unavailable
This commit is contained in:
parent
529fc7aebb
commit
bec4dedbc9
2 changed files with 8 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.8.48"
|
||||
VERSION = "1.10.8.49"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
|||
|
|
@ -315,6 +315,13 @@ class Filesystem(object):
|
|||
debugMsg += "stacked query technique"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
written = self.stackedWriteFile(localFile, remoteFile, fileType, forceCheck)
|
||||
self.cleanup(onlyFileTbl=True)
|
||||
elif Backend.isDbms(DBMS.PGSQL) and inject.getGadget():
|
||||
debugMsg = "going to upload the file '%s' with " % fileType
|
||||
debugMsg += "large object technique through a gadget"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
written = self.stackedWriteFile(localFile, remoteFile, fileType, forceCheck)
|
||||
self.cleanup(onlyFileTbl=True)
|
||||
elif isTechniqueAvailable(PAYLOAD.TECHNIQUE.UNION) and Backend.isDbms(DBMS.MYSQL):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue