Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5f3c0c

Browse files
committed
Fixes #1324
1 parent e623ee6 commit c5f3c0c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/takeover/web.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ def webInit(self):
263263

264264
with open(filename, "w+") as f:
265265
_ = decloak(os.path.join(paths.SQLMAP_SHELL_PATH, "stager.%s_" % self.webApi))
266-
_ = _.replace("WRITABLE_DIR", directory.replace('/', '\\\\') if Backend.isOs(OS.WINDOWS) else directory)
267-
f.write(utf8encode(_))
266+
_ = _.replace("WRITABLE_DIR", utf8encode(directory.replace('/', '\\\\') if Backend.isOs(OS.WINDOWS) else directory))
267+
f.write(_)
268268

269269
self.unionWriteFile(filename, self.webStagerFilePath, "text", forceCheck=True)
270270

0 commit comments

Comments
 (0)