mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Proper fix
This commit is contained in:
parent
f00a776d8d
commit
8620767b77
|
@ -172,8 +172,12 @@ class xp_cmdshell:
|
|||
inject.goStacked("INSERT INTO %s EXEC %s '%s'" % (self.cmdTblName, self.xpCmdshellStr, cmd))
|
||||
output = inject.getValue("SELECT %s FROM %s" % (self.tblField, self.cmdTblName), resumeValue=False)
|
||||
inject.goStacked("DELETE FROM %s" % self.cmdTblName)
|
||||
if output and isListLike(output):
|
||||
output = output[1:]
|
||||
|
||||
if output and isListLike(output) and len(output) > 1:
|
||||
if not output[0].strip():
|
||||
output = output[1:]
|
||||
elif not output[-1].strip():
|
||||
output = output[:-1]
|
||||
|
||||
return output
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user