MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / fileEncode

Method fileEncode

plugins/generic/filesystem.py:124–135  ·  view source on GitHub ↗

Called by MySQL and PostgreSQL plugins to write a file on the back-end DBMS underlying file system

(self, fileName, encoding, single, chunkSize=256)

Source from the content-addressed store, hash-verified

122 return sqlQueries
123
124 def fileEncode(self, fileName, encoding, single, chunkSize=256):
125 """
126 Called by MySQL and PostgreSQL plugins to write a file on the
127 back-end DBMS underlying file system
128 """
129
130 checkFile(fileName)
131
132 with open(fileName, "rb") as f:
133 content = f.read()
134
135 return self.fileContentEncode(content, encoding, single, chunkSize)
136
137 def fileContentEncode(self, content, encoding, single, chunkSize=256):
138 retVal = []

Callers 4

stackedWriteFileMethod · 0.95
unionWriteFileMethod · 0.95
stackedWriteFileMethod · 0.95

Calls 3

fileContentEncodeMethod · 0.95
checkFileFunction · 0.90
readMethod · 0.45

Tested by

no test coverage detected