mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
fix for 'No such file or directory' OSError exception
This commit is contained in:
parent
00002eeb38
commit
f4b8ce5c72
|
@ -158,6 +158,7 @@ class Web:
|
||||||
|
|
||||||
backdoorName = "backdoor.%s" % self.webApi
|
backdoorName = "backdoor.%s" % self.webApi
|
||||||
backdoorStream = NamedTemporaryFile()
|
backdoorStream = NamedTemporaryFile()
|
||||||
|
originalTempName = backdoorStream.name
|
||||||
backdoorStream.name = backdoorName
|
backdoorStream.name = backdoorName
|
||||||
backdoorStream.write(decloak(os.path.join(paths.SQLMAP_SHELL_PATH, backdoorName + '_')))
|
backdoorStream.write(decloak(os.path.join(paths.SQLMAP_SHELL_PATH, backdoorName + '_')))
|
||||||
backdoorStream.seek(0)
|
backdoorStream.seek(0)
|
||||||
|
@ -203,3 +204,5 @@ class Web:
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
backdoorStream.name = originalTempName
|
Loading…
Reference in New Issue
Block a user