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

Skip to content

Commit e023e0d

Browse files
committed
proper fix
1 parent 39deceb commit e023e0d

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ def wasLastRequestDelayed():
17821782

17831783
return retVal
17841784
else:
1785-
return threadData.lastQueryDuration - conf.timeSec
1785+
return (threadData.lastQueryDuration - conf.timeSec) >= 0
17861786

17871787
def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
17881788
"""

lib/takeover/xp_cmdshell.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,7 @@ def __xpCmdshellCheck(self):
9393

9494
inject.goStacked(cmd)
9595

96-
delayed = wasLastRequestDelayed()
97-
98-
if isinstance(delayed, bool):
99-
return delayed
100-
else:
101-
return None
96+
return wasLastRequestDelayed()
10297

10398
def xpCmdshellForgeCmd(self, cmd):
10499
self.__randStr = randomStr(lowercase=True)

0 commit comments

Comments
 (0)