mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
optimization of comment checking in MySQL
This commit is contained in:
parent
281d124fa6
commit
ce19b0c431
|
@ -60,10 +60,22 @@ class Fingerprint(GenericFingerprint):
|
||||||
(60000, 60011), # MySQL 6.0
|
(60000, 60011), # MySQL 6.0
|
||||||
)
|
)
|
||||||
|
|
||||||
for element in versions:
|
index = None
|
||||||
|
for i in xrange(len(versions)):
|
||||||
|
element = versions[i]
|
||||||
|
version = element[0]
|
||||||
|
randInt = randomInt()
|
||||||
|
version = getUnicode(version)
|
||||||
|
result = inject.checkBooleanExpression("%d=%d/*!%s AND %d=%d*/" % (randInt, randInt, version, randInt, randInt + 1))
|
||||||
|
|
||||||
|
if result:
|
||||||
|
index = i - 1
|
||||||
|
break
|
||||||
|
|
||||||
|
if index and index >= 0:
|
||||||
prevVer = None
|
prevVer = None
|
||||||
|
|
||||||
for version in range(element[0], element[1] + 1):
|
for version in range(versions[index][0], versions[index][1] + 1):
|
||||||
randInt = randomInt()
|
randInt = randomInt()
|
||||||
version = getUnicode(version)
|
version = getUnicode(version)
|
||||||
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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user