mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +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
|
||||
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
|
Loading…
Reference in New Issue
Block a user