mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
--read-file on PostgreSQL now relies on the new sys_fileread() UDF so that also binary files can be read.
Fixed a minor bug in custom UDF injection feature --udf-inject. Major code refactoring.
This commit is contained in:
parent
f728208ff7
commit
89dc99188d
9 changed files with 63 additions and 100 deletions
|
|
@ -285,12 +285,7 @@ class Filesystem:
|
|||
|
||||
fileContent = newFileContent
|
||||
|
||||
if kb.dbms in ( "MySQL", "Microsoft SQL Server" ):
|
||||
fileContent = self.__unhexString(fileContent)
|
||||
|
||||
elif kb.dbms == "PostgreSQL":
|
||||
fileContent = self.__unbase64String(fileContent)
|
||||
|
||||
fileContent = self.__unhexString(fileContent)
|
||||
rFilePath = dataToOutFile(fileContent)
|
||||
|
||||
self.cleanup(onlyFileTbl=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue