We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f2c31f commit 795777bCopy full SHA for 795777b
1 file changed
lib/takeover/web.py
@@ -257,9 +257,9 @@ def webInit(self):
257
self.webStagerFilePath = posixpath.join(ntToPosixSlashes(directory), stagerName)
258
259
handle, filename = tempfile.mkstemp()
260
- os.fdopen(handle).close() # close low level handle (causing problems later)
+ os.close(handle)
261
262
- with open(filename, "w+") as f:
+ with open(filename, "w+b") as f:
263
_ = decloak(os.path.join(paths.SQLMAP_SHELL_PATH, "stager.%s_" % self.webApi))
264
_ = _.replace("WRITABLE_DIR", utf8encode(directory.replace('/', '\\\\') if Backend.isOs(OS.WINDOWS) else directory))
265
f.write(_)
0 commit comments