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

Method askCheckWrittenFile

plugins/generic/filesystem.py:171–183  ·  view source on GitHub ↗
(self, localFile, remoteFile, forceCheck=False)

Source from the content-addressed store, hash-verified

169 return retVal
170
171 def askCheckWrittenFile(self, localFile, remoteFile, forceCheck=False):
172 choice = None
173
174 if forceCheck is not True:
175 message = "do you want confirmation that the local file '%s' " % localFile
176 message += "has been successfully written on the back-end DBMS "
177 message += "file system ('%s')? [Y/n] " % remoteFile
178 choice = readInput(message, default='Y', boolean=True)
179
180 if forceCheck or choice:
181 return self._checkFileLength(localFile, remoteFile)
182
183 return True
184
185 def askCheckReadFile(self, localFile, remoteFile):
186 if not kb.bruteMode:

Callers 5

stackedWriteFileMethod · 0.95
stackedWriteFileMethod · 0.95
unionWriteFileMethod · 0.95
stackedWriteFileMethod · 0.95

Calls 2

_checkFileLengthMethod · 0.95
readInputFunction · 0.90

Tested by

no test coverage detected