From e5dc3f51c82f0518025733b8e5b7c817cc83c864 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 10 Jan 2010 00:30:45 +0000 Subject: [PATCH] Display a better message for the moment while working on support for --dump -C on MSSQL --- plugins/dbms/mssqlserver.py | 5 +++++ plugins/generic/enumeration.py | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/dbms/mssqlserver.py b/plugins/dbms/mssqlserver.py index 6422fbf44..8f2f0403e 100644 --- a/plugins/dbms/mssqlserver.py +++ b/plugins/dbms/mssqlserver.py @@ -392,6 +392,11 @@ class MSSQLServerMap(Fingerprint, Enumeration, Filesystem, Miscellaneous, Takeov return kb.data.cachedTables + def dumpColumn(self): + errMsg = "Table(s) dump by providing only -C is not " + errMsg += "yet implemented for Microsoft SQL Server" + raise sqlmapUnsupportedFeatureException, errMsg + def unionReadFile(self, rFile): errMsg = "Microsoft SQL Server does not support file reading " errMsg += "with UNION query SQL injection technique" diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 086b340f7..71921a767 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -930,8 +930,6 @@ class Enumeration: return kb.data.cachedColumns def dumpColumn(self): - # TODO: adjust for MSSQL - if kb.dbms == "MySQL" and not kb.data.has_information_schema: errMsg = "information_schema not available, " errMsg += "back-end DBMS is MySQL < 5.0"