mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
Fix for an Issue #141
This commit is contained in:
parent
31ceb0cb6c
commit
432b567584
|
@ -123,7 +123,6 @@ from lib.core.settings import DYNAMICITY_MARK_LENGTH
|
|||
from lib.core.settings import REFLECTIVE_MISS_THRESHOLD
|
||||
from lib.core.settings import SENSITIVE_DATA_REGEX
|
||||
from lib.core.settings import TEXT_TAG_REGEX
|
||||
from lib.core.settings import UNION_UNIQUE_FIFO_LENGTH
|
||||
from lib.core.settings import URI_QUESTION_MARKER
|
||||
from lib.core.settings import URLENCODE_CHAR_LIMIT
|
||||
from lib.core.settings import URLENCODE_FAILSAFE_CHARS
|
||||
|
@ -1164,7 +1163,7 @@ def parseUnionPage(page):
|
|||
logger.warn(warnMsg)
|
||||
|
||||
data = BigArray()
|
||||
_ = []
|
||||
keys = set()
|
||||
|
||||
for match in re.finditer("%s(.*?)%s" % (kb.chars.start, kb.chars.stop), page, re.DOTALL | re.IGNORECASE):
|
||||
entry = match.group(1)
|
||||
|
@ -1174,10 +1173,8 @@ def parseUnionPage(page):
|
|||
|
||||
if kb.unionDuplicates:
|
||||
key = entry.lower()
|
||||
if key not in _:
|
||||
_.append(key)
|
||||
if len(_) > UNION_UNIQUE_FIFO_LENGTH:
|
||||
_.pop(0)
|
||||
if key not in keys:
|
||||
keys.add(key)
|
||||
else:
|
||||
continue
|
||||
|
||||
|
|
|
@ -112,9 +112,6 @@ UNKNOWN_DBMS_VERSION = "Unknown"
|
|||
# dynamicity mark length used in dynamicity removal engine
|
||||
DYNAMICITY_MARK_LENGTH = 32
|
||||
|
||||
# length of FIFO buffer for removing possible duplicates in union/inband data retrieval
|
||||
UNION_UNIQUE_FIFO_LENGTH = 10
|
||||
|
||||
# dummy user prefix used in dictionary attack
|
||||
DUMMY_USER_PREFIX = "__dummy__"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user