Skip to content

Commit e66a81a

Browse files
committed
Fix for an Issue sqlmapproject#757
1 parent 305ec45 commit e66a81a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/techniques/error/use.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def _oneShotErrorUse(expression, field=None):
9999

100100
incrementCounter(kb.technique)
101101

102+
if page and conf.noCast:
103+
page = re.sub(r"'%s'.*?'%s'" % (kb.chars.start, kb.chars.stop), "", page)
104+
102105
# Parse the returned page to get the exact error-based
103106
# SQL injection output
104107
output = reduce(lambda x, y: x if x is not None else y, (\

0 commit comments

Comments
 (0)