mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
now runcmd exe has random name too
This commit is contained in:
parent
bad2acdcb9
commit
15d1fcbb7f
|
@ -200,11 +200,11 @@ class Web:
|
|||
logger.info(infoMsg)
|
||||
|
||||
if self.webApi == "asp":
|
||||
runcmdName = 'runcmd.exe'
|
||||
runcmdStream = decloakToNamedTemporaryFile(os.path.join(paths.SQLMAP_SHELL_PATH, runcmdName + '_'), runcmdName)
|
||||
runcmdName = "tmpe%s.exe" % randomStr(4)
|
||||
runcmdStream = decloakToNamedTemporaryFile(os.path.join(paths.SQLMAP_SHELL_PATH, 'runcmd.exe_'), runcmdName)
|
||||
scriptsDirectory = "Scripts"
|
||||
backdoorDirectory = "%s..\%s" % (posixToNtSlashes(directory), scriptsDirectory)
|
||||
backdoorContent = backdoorContent.replace("WRITABLE_DIR", backdoorDirectory)
|
||||
backdoorContent = backdoorContent.replace("WRITABLE_DIR", backdoorDirectory).replace("RUNCMD_EXE", runcmdName)
|
||||
backdoorStream.file.truncate()
|
||||
backdoorStream.read()
|
||||
backdoorStream.seek(0)
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user