From f4b8ce5c7260936484403fcd6726f080b00d222f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 27 Jan 2010 17:00:54 +0000 Subject: [PATCH] fix for 'No such file or directory' OSError exception --- lib/takeover/web.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/takeover/web.py b/lib/takeover/web.py index 3e7024a61..a1ab99d2d 100644 --- a/lib/takeover/web.py +++ b/lib/takeover/web.py @@ -158,6 +158,7 @@ class Web: backdoorName = "backdoor.%s" % self.webApi backdoorStream = NamedTemporaryFile() + originalTempName = backdoorStream.name backdoorStream.name = backdoorName backdoorStream.write(decloak(os.path.join(paths.SQLMAP_SHELL_PATH, backdoorName + '_'))) backdoorStream.seek(0) @@ -203,3 +204,5 @@ class Web: logger.info(infoMsg) break + + backdoorStream.name = originalTempName \ No newline at end of file