This commit is contained in:
Miroslav Stampar 2026-01-18 16:54:04 +01:00
parent d9102e03c6
commit 9063c21f62
3 changed files with 4 additions and 4 deletions

View file

@ -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(_)