mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-22 07:29:01 +00:00
introducing [DELAYED] for heavy query time based payloads when response time is non-deterministic
This commit is contained in:
@@ -1281,7 +1281,7 @@ def calculateDeltaSeconds(start, epsilon=0.1):
|
||||
Returns elapsed time from start till now (including expected
|
||||
error set by epsilon parameter)
|
||||
"""
|
||||
return int(time.time() - start - kb.responseTime + epsilon)
|
||||
return time.time() - start - kb.responseTime + epsilon
|
||||
|
||||
def initCommonOutputs():
|
||||
kb.commonOutputs = {}
|
||||
|
||||
@@ -48,6 +48,11 @@ DUMP_STOP_MARKER = "__STOP__"
|
||||
|
||||
PAYLOAD_DELIMITER = "\x00"
|
||||
|
||||
# settings used for delayed time payloads
|
||||
TIME_MIN_DELTA = 1 # minimum difference of loading time in seconds
|
||||
TIME_N_RESPONSE = 3 # minimum multiplicant of response time
|
||||
|
||||
|
||||
# System variables
|
||||
IS_WIN = subprocess.mswindows
|
||||
# The name of the operating system dependent module imported. The following
|
||||
|
||||
Reference in New Issue
Block a user