minor update

This commit is contained in:
Miroslav Stampar 2011-12-22 20:14:56 +00:00
parent 8a7b0406c8
commit 087e29d272
2 changed files with 8 additions and 0 deletions

View File

@ -101,6 +101,7 @@ from lib.core.settings import DEFAULT_MSSQL_SCHEMA
from lib.core.settings import DUMP_NEWLINE_MARKER
from lib.core.settings import DUMP_CR_MARKER
from lib.core.settings import DUMP_TAB_MARKER
from lib.core.settings import LARGE_OUTPUT_THRESHOLD
from lib.core.settings import ML
from lib.core.settings import MIN_TIME_RESPONSES
from lib.core.settings import PAYLOAD_DELIMITER
@ -1333,6 +1334,10 @@ def parseUnionPage(output, unique=True):
return None
if output.startswith(kb.chars.start) and output.endswith(kb.chars.stop):
if len(output) > LARGE_OUTPUT_THRESHOLD:
warnMsg = "large output detected. This might take a while"
logger.warn(warnMsg)
data = BigArray()
_ = []

View File

@ -425,3 +425,6 @@ DEFAULT_COOKIE_DELIMITER = ';'
# Skip unforced HashDB flush requests below the threshold number of cached items
HASHDB_FLUSH_THRESHOLD = 32
# Warn user of possible delay due to large page dump in full UNION query injections
LARGE_OUTPUT_THRESHOLD = 1024**2