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

Skip to content

Commit 1c69eb5

Browse files
committed
Revert "major fix"
This reverts commit 3a11fc2.
1 parent 3a11fc2 commit 1c69eb5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/takeover/xp_cmdshell.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ 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-
176175
if output and isListLike(output):
177-
output = output[0]
176+
output = output[1:]
178177

179178
return output
180179

0 commit comments

Comments
 (0)