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 return retVal
else: else:
return threadData.lastQueryDuration - conf.timeSec return (threadData.lastQueryDuration - conf.timeSec) >= 0
def adjustTimeDelay(lastQueryDuration, lowerStdLimit): def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
""" """

View File

@ -93,12 +93,7 @@ class xp_cmdshell:
inject.goStacked(cmd) inject.goStacked(cmd)
delayed = wasLastRequestDelayed() return wasLastRequestDelayed()
if isinstance(delayed, bool):
return delayed
else:
return None
def xpCmdshellForgeCmd(self, cmd): def xpCmdshellForgeCmd(self, cmd):
self.__randStr = randomStr(lowercase=True) self.__randStr = randomStr(lowercase=True)