mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
minor refactoring
This commit is contained in:
parent
cb61401c18
commit
6f2ce15478
|
@ -209,7 +209,7 @@ class Fingerprint(GenericFingerprint):
|
||||||
# Check if it is MySQL >= 5.0.0 and < 5.1.2
|
# Check if it is MySQL >= 5.0.0 and < 5.1.2
|
||||||
elif inject.checkBooleanExpression("@@hostname=@@hostname"):
|
elif inject.checkBooleanExpression("@@hostname=@@hostname"):
|
||||||
kb.dbmsVersion = [">= 5.0.38", "< 5.1.2"]
|
kb.dbmsVersion = [">= 5.0.38", "< 5.1.2"]
|
||||||
elif not inject.checkBooleanExpression("%s=(SELECT %s FROM DUAL WHERE 1=2)" % (randInt, randInt)):
|
elif not inject.checkBooleanExpression("%s=(SELECT %s FROM DUAL WHERE %s!=%s)" % (randInt, randInt, randInt, randInt)):
|
||||||
kb.dbmsVersion = [">= 5.0.11", "< 5.0.38"]
|
kb.dbmsVersion = [">= 5.0.11", "< 5.0.38"]
|
||||||
elif inject.checkBooleanExpression("DATABASE() LIKE SCHEMA()"):
|
elif inject.checkBooleanExpression("DATABASE() LIKE SCHEMA()"):
|
||||||
kb.dbmsVersion = [">= 5.0.2", "< 5.0.11"]
|
kb.dbmsVersion = [">= 5.0.2", "< 5.0.11"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user