From ff9e97a42c6d0ab98f54d63219e4fb67e6fa024b Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 1 Jul 2012 23:31:45 +0100 Subject: [PATCH] minor code refactoring --- lib/takeover/xp_cmdshell.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/takeover/xp_cmdshell.py b/lib/takeover/xp_cmdshell.py index d74496131..20a0236f1 100644 --- a/lib/takeover/xp_cmdshell.py +++ b/lib/takeover/xp_cmdshell.py @@ -91,9 +91,8 @@ class xp_cmdshell: inject.goStacked(cmd) def __xpCmdshellCheck(self): - cmd = self.xpCmdshellForgeCmd("ping -n %d 127.0.0.1" % (conf.timeSec * 2)) - - inject.goStacked(cmd) + cmd = "ping -n %d 127.0.0.1" % (conf.timeSec * 2) + self.xpCmdshellExecCmd(cmd) return wasLastRequestDelayed()