From cff21814bb9f714e0ef43c59f893566d592fc9ba Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 16 Dec 2011 11:23:41 +0000 Subject: [PATCH] minor patch for MSSQL 2008 --- plugins/dbms/mssqlserver/enumeration.py | 4 ++-- xml/queries.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/dbms/mssqlserver/enumeration.py b/plugins/dbms/mssqlserver/enumeration.py index 4de6e283f..33ff4ed85 100644 --- a/plugins/dbms/mssqlserver/enumeration.py +++ b/plugins/dbms/mssqlserver/enumeration.py @@ -93,7 +93,7 @@ class Enumeration(GenericEnumeration): continue - query = rootQuery.inband.query % db + query = rootQuery.inband.query % (db, db) value = inject.getValue(query, blind=False) if not isNoneValue(value): @@ -123,7 +123,7 @@ class Enumeration(GenericEnumeration): tables = [] for index in xrange(int(count)): - query = rootQuery.blind.query % (db, index, db) + query = rootQuery.blind.query % (db, db, index, db, db) table = inject.getValue(query, inband=False, error=False) kb.hintValue = table table = safeSQLIdentificatorNaming(table, True) diff --git a/xml/queries.xml b/xml/queries.xml index e62d77cc5..7fb74689e 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -184,8 +184,8 @@ - - + +