mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-11 19:13:12 +00:00
Fixes #4548
This commit is contained in:
parent
f3e8039145
commit
9568ee3c4d
2 changed files with 5 additions and 4 deletions
|
|
@ -8,6 +8,7 @@ See the file 'LICENSE' for copying permission
|
|||
import ntpath
|
||||
import os
|
||||
|
||||
from lib.core.common import checkFile
|
||||
from lib.core.common import getLimitRange
|
||||
from lib.core.common import isNumPosStrValue
|
||||
from lib.core.common import isTechniqueAvailable
|
||||
|
|
@ -384,13 +385,13 @@ class Filesystem(GenericFilesystem):
|
|||
# procedure to write a file on the back-end Microsoft SQL Server
|
||||
# file system
|
||||
self.initEnv()
|
||||
|
||||
self.getRemoteTempPath()
|
||||
|
||||
tmpPath = posixToNtSlashes(conf.tmpPath)
|
||||
remoteFile = posixToNtSlashes(remoteFile)
|
||||
with open(localFile, "rb") as f:
|
||||
localFileContent = f.read()
|
||||
|
||||
checkFile(localFile)
|
||||
localFileContent = open(localFile, "rb").read()
|
||||
|
||||
self._stackedWriteFilePS(tmpPath, localFileContent, remoteFile, fileType)
|
||||
written = self.askCheckWrittenFile(localFile, remoteFile, forceCheck)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue