mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-08 22:03:11 +03:00
minor refactoring
This commit is contained in:
parent
eb9b84d1da
commit
ecbeecdccf
|
@ -81,17 +81,13 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
|
||||||
maxItem = item
|
maxItem = item
|
||||||
|
|
||||||
if all(map(lambda x: x == min_ and x != max_, ratios)):
|
if all(map(lambda x: x == min_ and x != max_, ratios)):
|
||||||
return maxItem[0]
|
retVal = maxItem[0]
|
||||||
|
|
||||||
elif all(map(lambda x: x != min_ and x == max_, ratios)):
|
elif all(map(lambda x: x != min_ and x == max_, ratios)):
|
||||||
return minItem[0]
|
retVal = minItem[0]
|
||||||
|
|
||||||
|
elif abs(max_ - min_) >= MIN_STATISTICAL_RANGE:
|
||||||
deviation = stdev(ratios)
|
deviation = stdev(ratios)
|
||||||
|
|
||||||
if abs(max_ - min_) < MIN_STATISTICAL_RANGE:
|
|
||||||
kb.errorIsNone = popValue()
|
|
||||||
return None
|
|
||||||
|
|
||||||
lower, upper = average(ratios) - UNION_STDEV_COEFF * deviation, average(ratios) + UNION_STDEV_COEFF * deviation
|
lower, upper = average(ratios) - UNION_STDEV_COEFF * deviation, average(ratios) + UNION_STDEV_COEFF * deviation
|
||||||
|
|
||||||
if min_ < lower:
|
if min_ < lower:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user