mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
minor update
This commit is contained in:
parent
f4127a80d7
commit
cfc1f2b70b
|
@ -112,11 +112,10 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
|
||||||
page, headers = Request.queryPage(payload, place=place, content=True, raise404=False)
|
page, headers = Request.queryPage(payload, place=place, content=True, raise404=False)
|
||||||
if kb.uChar:
|
if kb.uChar:
|
||||||
pages[count] = page
|
pages[count] = page
|
||||||
else:
|
ratio = comparison(page, headers, getRatioValue=True) or MIN_RATIO
|
||||||
ratio = comparison(page, headers, getRatioValue=True) or MIN_RATIO
|
ratios.append(ratio)
|
||||||
ratios.append(ratio)
|
min_, max_ = min(min_, ratio), max(max_, ratio)
|
||||||
min_, max_ = min(min_, ratio), max(max_, ratio)
|
items.append((count, ratio))
|
||||||
items.append((count, ratio))
|
|
||||||
|
|
||||||
if kb.uChar:
|
if kb.uChar:
|
||||||
for regex in (kb.uChar, r'>\s*%s\s*<' % kb.uChar):
|
for regex in (kb.uChar, r'>\s*%s\s*<' % kb.uChar):
|
||||||
|
@ -125,7 +124,7 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
|
||||||
retVal = filter(lambda x: x[1], contains)[0][0]
|
retVal = filter(lambda x: x[1], contains)[0][0]
|
||||||
break
|
break
|
||||||
|
|
||||||
else:
|
if not retVal:
|
||||||
ratios.pop(ratios.index(min_))
|
ratios.pop(ratios.index(min_))
|
||||||
ratios.pop(ratios.index(max_))
|
ratios.pop(ratios.index(max_))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user