mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Minor bug fix to properly delete sqlmap temporary files on the database server file system at shutdown.
Minor improvements at ICMPsh tunnel to cleanup properly the dbms at shutdown and avoid checking/writing sys_bineval() UDF as it's a PE and needs to be called by sys_exec() only. Got rid of useless doubleslash param in delRemoteFile() method. Major code refactoring to xp_cmdshell.py methods and parent calls.
This commit is contained in:
parent
56c16cb471
commit
4f8e9da1b6
10 changed files with 47 additions and 89 deletions
|
|
@ -205,26 +205,18 @@ class Filesystem:
|
|||
charCounter += len(forgedScrLine)
|
||||
|
||||
if charCounter >= maxLen:
|
||||
forgedCmd = self.xpCmdshellForgeCmd(cmd)
|
||||
self.execCmd(forgedCmd)
|
||||
self.execCmd(cmd)
|
||||
|
||||
cmd = ""
|
||||
cmd = ""
|
||||
charCounter = 0
|
||||
|
||||
if cmd:
|
||||
forgedCmd = self.xpCmdshellForgeCmd(cmd)
|
||||
self.execCmd(forgedCmd)
|
||||
|
||||
commands = (
|
||||
"cd %s" % tmpPath,
|
||||
"debug < %s" % randScr,
|
||||
"del /F /Q %s" % randScr
|
||||
)
|
||||
self.execCmd(cmd)
|
||||
|
||||
commands = ( "cd %s" % tmpPath, "debug < %s" % randScr, "del /F /Q %s" % randScr )
|
||||
complComm = " & ".join(command for command in commands)
|
||||
forgedCmd = self.xpCmdshellForgeCmd(complComm)
|
||||
|
||||
self.execCmd(forgedCmd, silent=True)
|
||||
self.execCmd(complComm, silent=True)
|
||||
|
||||
return chunkName
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue