From 1c69eb5d30676c7f37ffd1800518aa57093410f3 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 7 Jul 2012 10:26:13 +0200 Subject: [PATCH] Revert "major fix" This reverts commit 3a11fc2d9eca58d422efbbfcbafe318c1e541cfe. --- lib/takeover/xp_cmdshell.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/takeover/xp_cmdshell.py b/lib/takeover/xp_cmdshell.py index aae3bfddf..3f72d18b9 100644 --- a/lib/takeover/xp_cmdshell.py +++ b/lib/takeover/xp_cmdshell.py @@ -172,9 +172,8 @@ 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[0] + output = output[1:] return output