Fixing MsSQL stacked file write

This commit is contained in:
Miroslav Štampar 2026-06-04 20:21:34 +02:00
parent 0d4aff7e1a
commit a20f930844
3 changed files with 4 additions and 3 deletions

View file

@ -336,6 +336,7 @@ class Filesystem(GenericFilesystem):
# NOTE: https://github.com/sqlmapproject/sqlmap/issues/5581
vbs = codecs.decode(vbs, "rot13")
vbs = vbs.replace(" ", "")
vbs = vbs % (randFilePath, remoteFile)
encodedFileContent = encodeBase64(localFileContent, binary=False)
logger.debug("uploading the file base64-encoded content to %s, please wait.." % randFilePath)