mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Fixes #6007
This commit is contained in:
parent
d9102e03c6
commit
9063c21f62
3 changed files with 4 additions and 4 deletions
|
|
@ -335,7 +335,7 @@ class Web(object):
|
|||
handle, filename = tempfile.mkstemp()
|
||||
os.close(handle)
|
||||
|
||||
with openFile(filename, "w+b") as f:
|
||||
with openFile(filename, "w+") as f:
|
||||
_ = getText(decloak(os.path.join(paths.SQLMAP_SHELL_PATH, "stagers", "stager.%s_" % self.webPlatform)))
|
||||
_ = _.replace(SHELL_WRITABLE_DIR_TAG, directory.replace('/', '\\\\') if Backend.isOs(OS.WINDOWS) else directory)
|
||||
f.write(_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue