Skip to content

Commit b9a4455

Browse files
committed
1 parent 47a42c2 commit b9a4455

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/request/inject.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from lib.core.enums import EXPECTED
4040
from lib.core.enums import PAYLOAD
4141
from lib.core.exception import SqlmapConnectionException
42+
from lib.core.exception import SqlmapDataException
4243
from lib.core.exception import SqlmapNotVulnerableException
4344
from lib.core.exception import SqlmapUserQuitException
4445
from lib.core.settings import MAX_TECHNIQUES_PER_VALUE
@@ -262,9 +263,14 @@ def _goInferenceProxy(expression, fromUser=False, batch=False, unpack=True, char
262263
return None
263264

264265
try:
265-
for num in xrange(startLimit, stopLimit):
266-
output = _goInferenceFields(expression, expressionFields, expressionFieldsList, payload, num=num, charsetType=charsetType, firstChar=firstChar, lastChar=lastChar, dump=dump)
267-
outputs.append(output)
266+
try:
267+
for num in xrange(startLimit, stopLimit):
268+
output = _goInferenceFields(expression, expressionFields, expressionFieldsList, payload, num=num, charsetType=charsetType, firstChar=firstChar, lastChar=lastChar, dump=dump)
269+
outputs.append(output)
270+
except OverflowError:
271+
errMsg = "boundary limits (%d,%d) are too large. Please rerun " % (startLimit, stopLimit)
272+
errMsg += "with switch '--fresh-queries'"
273+
raise SqlmapDataException(errMsg)
268274

269275
except KeyboardInterrupt:
270276
print

0 commit comments

Comments
 (0)