mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-29 20:46:36 +00:00
Some more refactoring
This commit is contained in:
parent
1a8ebbfd43
commit
e948e4d45b
9 changed files with 16 additions and 22 deletions
|
|
@ -39,7 +39,7 @@ class Fingerprint(GenericFingerprint):
|
|||
|
||||
minor, major = None, None
|
||||
|
||||
for version in [6, 7]:
|
||||
for version in (6, 7):
|
||||
result = inject.checkBooleanExpression("%d=(SELECT MAJORVERSION FROM SYSINFO.VERSION)" % version)
|
||||
|
||||
if result:
|
||||
|
|
|
|||
|
|
@ -92,9 +92,9 @@ class Fingerprint(GenericFingerprint):
|
|||
infoMsg = "confirming %s" % DBMS.MSSQL
|
||||
logger.info(infoMsg)
|
||||
|
||||
for version, check in [ ("2000", "HOST_NAME()=HOST_NAME()"), \
|
||||
for version, check in ( ("2000", "HOST_NAME()=HOST_NAME()"), \
|
||||
("2005", "XACT_STATE()=XACT_STATE()"), \
|
||||
("2008", "SYSDATETIME()=SYSDATETIME()") ]:
|
||||
("2008", "SYSDATETIME()=SYSDATETIME()") ):
|
||||
result = inject.checkBooleanExpression(check)
|
||||
|
||||
if result:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue