From 9927f5a7dbd5d3c96a643c22febb7b2c18c25420 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 29 Apr 2011 00:02:28 +0000 Subject: [PATCH] Let --schema work also for Sybase and MaxDB --- plugins/dbms/maxdb/enumeration.py | 7 +++++-- plugins/dbms/sybase/enumeration.py | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/plugins/dbms/maxdb/enumeration.py b/plugins/dbms/maxdb/enumeration.py index dda79a005..f7e0880cb 100644 --- a/plugins/dbms/maxdb/enumeration.py +++ b/plugins/dbms/maxdb/enumeration.py @@ -38,8 +38,11 @@ class Enumeration(GenericEnumeration): def getColumns(self, onlyColNames=False): if not conf.tbl: - errMsg = "missing table parameter" - raise sqlmapMissingMandatoryOptionException, errMsg + warnMsg = "missing table parameter, sqlmap will enumerate " + warnMsg += "the whole database management system schema" + logger.warn(warnMsg) + + return self.getSchema() if "." in conf.tbl: conf.db, conf.tbl = conf.tbl.split(".") diff --git a/plugins/dbms/sybase/enumeration.py b/plugins/dbms/sybase/enumeration.py index 4bc3200e1..e4ede88ac 100644 --- a/plugins/dbms/sybase/enumeration.py +++ b/plugins/dbms/sybase/enumeration.py @@ -48,8 +48,11 @@ class Enumeration(GenericEnumeration): def getColumns(self, onlyColNames=False): if not conf.tbl: - errMsg = "missing table parameter" - raise sqlmapMissingMandatoryOptionException, errMsg + warnMsg = "missing table parameter, sqlmap will enumerate " + warnMsg += "the whole database management system schema" + logger.warn(warnMsg) + + return self.getSchema() if "." in conf.tbl: conf.db, conf.tbl = conf.tbl.split(".")