diff --git a/lib/core/common.py b/lib/core/common.py index 7c155c64c..30beca713 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1782,7 +1782,7 @@ def wasLastRequestDelayed(): return retVal else: - return threadData.lastQueryDuration - conf.timeSec + return (threadData.lastQueryDuration - conf.timeSec) >= 0 def adjustTimeDelay(lastQueryDuration, lowerStdLimit): """ diff --git a/lib/takeover/xp_cmdshell.py b/lib/takeover/xp_cmdshell.py index b0de43ff4..3b12cf4db 100644 --- a/lib/takeover/xp_cmdshell.py +++ b/lib/takeover/xp_cmdshell.py @@ -93,12 +93,7 @@ class xp_cmdshell: inject.goStacked(cmd) - delayed = wasLastRequestDelayed() - - if isinstance(delayed, bool): - return delayed - else: - return None + return wasLastRequestDelayed() def xpCmdshellForgeCmd(self, cmd): self.__randStr = randomStr(lowercase=True)