mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Minor fix
This commit is contained in:
parent
777d999e71
commit
2ee4b81a6e
|
@ -7,6 +7,7 @@ See the file 'doc/COPYING' for copying permission
|
||||||
|
|
||||||
from lib.core.common import Backend
|
from lib.core.common import Backend
|
||||||
from lib.core.common import Format
|
from lib.core.common import Format
|
||||||
|
from lib.core.common import unArrayizeValue
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
from lib.core.data import logger
|
from lib.core.data import logger
|
||||||
|
@ -98,7 +99,12 @@ class Fingerprint(GenericFingerprint):
|
||||||
infoMsg = "actively fingerprinting %s" % DBMS.SYBASE
|
infoMsg = "actively fingerprinting %s" % DBMS.SYBASE
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
for version in xrange(6, 17):
|
result = unArrayizeValue(inject.getValue("SUBSTRING(@@VERSION,1,1)"))
|
||||||
|
|
||||||
|
if result and result.isdigit():
|
||||||
|
Backend.setVersion(str(result))
|
||||||
|
else:
|
||||||
|
for version in xrange(12, 16):
|
||||||
result = inject.checkBooleanExpression("PATINDEX('%%/%d[./]%%',@@VERSION)>0" % version)
|
result = inject.checkBooleanExpression("PATINDEX('%%/%d[./]%%',@@VERSION)>0" % version)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user