mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor update
This commit is contained in:
parent
ce19b0c431
commit
40e3489099
|
@ -60,7 +60,7 @@ class Fingerprint(GenericFingerprint):
|
||||||
(60000, 60011), # MySQL 6.0
|
(60000, 60011), # MySQL 6.0
|
||||||
)
|
)
|
||||||
|
|
||||||
index = None
|
index = -1
|
||||||
for i in xrange(len(versions)):
|
for i in xrange(len(versions)):
|
||||||
element = versions[i]
|
element = versions[i]
|
||||||
version = element[0]
|
version = element[0]
|
||||||
|
@ -69,10 +69,11 @@ class Fingerprint(GenericFingerprint):
|
||||||
result = inject.checkBooleanExpression("%d=%d/*!%s AND %d=%d*/" % (randInt, randInt, version, randInt, randInt + 1))
|
result = inject.checkBooleanExpression("%d=%d/*!%s AND %d=%d*/" % (randInt, randInt, version, randInt, randInt + 1))
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
index = i - 1
|
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
index += 1
|
||||||
|
|
||||||
if index and index >= 0:
|
if index >= 0:
|
||||||
prevVer = None
|
prevVer = None
|
||||||
|
|
||||||
for version in range(versions[index][0], versions[index][1] + 1):
|
for version in range(versions[index][0], versions[index][1] + 1):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user