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

Skip to content

Commit ff9e97a

Browse files
committed
minor code refactoring
1 parent ab412da commit ff9e97a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/takeover/xp_cmdshell.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ def __xpCmdshellConfigure(self, mode):
9191
inject.goStacked(cmd)
9292

9393
def __xpCmdshellCheck(self):
94-
cmd = self.xpCmdshellForgeCmd("ping -n %d 127.0.0.1" % (conf.timeSec * 2))
95-
96-
inject.goStacked(cmd)
94+
cmd = "ping -n %d 127.0.0.1" % (conf.timeSec * 2)
95+
self.xpCmdshellExecCmd(cmd)
9796

9897
return wasLastRequestDelayed()
9998

0 commit comments

Comments
 (0)