From 38f13932bce8f0a4d752d6a6c439f2baedc1b009 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 20 Oct 2008 10:09:37 +0000 Subject: [PATCH] Minor improvements to queries --- plugins/generic/enumeration.py | 8 +++----- xml/queries.xml | 18 +++++++++--------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 11edac152..269dc5ff1 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -944,18 +944,16 @@ class Enumeration: if kb.dbms in ( "MySQL", "PostgreSQL" ): query = rootQuery["blind"]["query"] % (column, conf.db, - conf.tbl, colList[0], - index) + conf.tbl, index) elif kb.dbms == "Oracle": query = rootQuery["blind"]["query"] % (column, column, conf.tbl.upper(), - colList[0], index) + index) elif kb.dbms == "Microsoft SQL Server": query = rootQuery["blind"]["query"] % (column, conf.db, conf.tbl, column, index, column, - conf.db, conf.tbl, - colList[0], colList[0]) + conf.db, conf.tbl) value = inject.getValue(query, inband=False) diff --git a/xml/queries.xml b/xml/queries.xml index ff0970b47..6cb4474c2 100644 --- a/xml/queries.xml +++ b/xml/queries.xml @@ -46,7 +46,7 @@ - + @@ -93,7 +93,7 @@ - + @@ -141,7 +141,7 @@ - + @@ -165,29 +165,29 @@ - + - + - + - + - + - +