Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a11fc2

Browse files
committed
major fix
1 parent 8c87147 commit 3a11fc2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/takeover/xp_cmdshell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ def xpCmdshellEvalCmd(self, cmd, first=None, last=None):
172172
inject.goStacked("INSERT INTO %s EXEC %s '%s'" % (self.cmdTblName, self.xpCmdshellStr, cmd))
173173
output = inject.getValue("SELECT %s FROM %s" % (self.tblField, self.cmdTblName), resumeValue=False)
174174
inject.goStacked("DELETE FROM %s" % self.cmdTblName)
175+
175176
if output and isListLike(output):
176-
output = output[1:]
177+
output = output[0]
177178

178179
return output
179180

0 commit comments

Comments
 (0)