minor code refactoring

This commit is contained in:
Bernardo Damele 2012-07-01 23:31:45 +01:00
parent ab412da27f
commit ff9e97a42c

View File

@ -91,9 +91,8 @@ class xp_cmdshell:
inject.goStacked(cmd) inject.goStacked(cmd)
def __xpCmdshellCheck(self): def __xpCmdshellCheck(self):
cmd = self.xpCmdshellForgeCmd("ping -n %d 127.0.0.1" % (conf.timeSec * 2)) cmd = "ping -n %d 127.0.0.1" % (conf.timeSec * 2)
self.xpCmdshellExecCmd(cmd)
inject.goStacked(cmd)
return wasLastRequestDelayed() return wasLastRequestDelayed()