proper fix

This commit is contained in:
Miroslav Stampar 2011-02-07 12:32:08 +00:00
parent 39decebe85
commit e023e0d233
2 changed files with 2 additions and 7 deletions

View File

@ -1782,7 +1782,7 @@ def wasLastRequestDelayed():
return retVal
else:
return threadData.lastQueryDuration - conf.timeSec
return (threadData.lastQueryDuration - conf.timeSec) >= 0
def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
"""

View File

@ -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)