From 7d2fce16dc47a44b46a8552e64d64506e4deb2e7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 16 Dec 2011 11:40:23 +0000 Subject: [PATCH] minor fix --- 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 33ff4ed85..564a3c1b5 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, db) + query = rootQuery.inband.query.replace("%s", 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, db, index, db, db) + query = rootQuery.blind.query.replace("%s", db).replace("%d", index) 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 7fb74689e..878a984dd 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -184,8 +184,8 @@ - - + +