mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Fixes #4548
This commit is contained in:
parent
f3e8039145
commit
9568ee3c4d
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.5.1.36"
|
VERSION = "1.5.1.37"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -8,6 +8,7 @@ See the file 'LICENSE' for copying permission
|
||||||
import ntpath
|
import ntpath
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from lib.core.common import checkFile
|
||||||
from lib.core.common import getLimitRange
|
from lib.core.common import getLimitRange
|
||||||
from lib.core.common import isNumPosStrValue
|
from lib.core.common import isNumPosStrValue
|
||||||
from lib.core.common import isTechniqueAvailable
|
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
|
# procedure to write a file on the back-end Microsoft SQL Server
|
||||||
# file system
|
# file system
|
||||||
self.initEnv()
|
self.initEnv()
|
||||||
|
|
||||||
self.getRemoteTempPath()
|
self.getRemoteTempPath()
|
||||||
|
|
||||||
tmpPath = posixToNtSlashes(conf.tmpPath)
|
tmpPath = posixToNtSlashes(conf.tmpPath)
|
||||||
remoteFile = posixToNtSlashes(remoteFile)
|
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)
|
self._stackedWriteFilePS(tmpPath, localFileContent, remoteFile, fileType)
|
||||||
written = self.askCheckWrittenFile(localFile, remoteFile, forceCheck)
|
written = self.askCheckWrittenFile(localFile, remoteFile, forceCheck)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user