mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 11:23:44 +03:00
Trying something out
This commit is contained in:
parent
4b7f27263b
commit
31f88a8005
|
@ -2598,9 +2598,8 @@ def adjustTimeDelay(lastQueryDuration, lowerStdLimit):
|
||||||
Provides tip for adjusting time delay in time-based data retrieval
|
Provides tip for adjusting time delay in time-based data retrieval
|
||||||
"""
|
"""
|
||||||
|
|
||||||
candidate = 1 + int(round(lowerStdLimit))
|
candidate = (1 if not isHeavyQueryBased() else 2) + int(round(lowerStdLimit))
|
||||||
|
|
||||||
if candidate:
|
|
||||||
kb.delayCandidates = [candidate] + kb.delayCandidates[:-1]
|
kb.delayCandidates = [candidate] + kb.delayCandidates[:-1]
|
||||||
|
|
||||||
if all((_ == candidate for _ in kb.delayCandidates)) and candidate < conf.timeSec:
|
if all((_ == candidate for _ in kb.delayCandidates)) and candidate < conf.timeSec:
|
||||||
|
@ -3162,6 +3161,27 @@ def isTechniqueAvailable(technique):
|
||||||
else:
|
else:
|
||||||
return getTechniqueData(technique) is not None
|
return getTechniqueData(technique) is not None
|
||||||
|
|
||||||
|
def isHeavyQueryBased():
|
||||||
|
"""
|
||||||
|
Returns True whether time-based or stacked payloads are based on heavy queries
|
||||||
|
|
||||||
|
>>> pushValue(kb.injection.data)
|
||||||
|
>>> kb.injection.data[PAYLOAD.TECHNIQUE.STACKED] = [test for test in getSortedInjectionTests() if "heavy" in test["title"].lower()][0]
|
||||||
|
>>> isHeavyQueryBased()
|
||||||
|
True
|
||||||
|
>>> kb.injection.data = popValue()
|
||||||
|
"""
|
||||||
|
|
||||||
|
retVal = False
|
||||||
|
|
||||||
|
for technique in getPublicTypeMembers(PAYLOAD.TECHNIQUE, True):
|
||||||
|
data = getTechniqueData(technique)
|
||||||
|
if data and "heavy query" in data["title"].lower():
|
||||||
|
retVal = True
|
||||||
|
break
|
||||||
|
|
||||||
|
return retVal
|
||||||
|
|
||||||
def isStackingAvailable():
|
def isStackingAvailable():
|
||||||
"""
|
"""
|
||||||
Returns True whether techniques using stacking are available
|
Returns True whether techniques using stacking are available
|
||||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.3.5.75"
|
VERSION = "1.3.5.76"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user