From ed2d1632699c9807d28f4706973c5672d52c2d5d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 14 Oct 2012 17:53:55 +0200 Subject: [PATCH] Fix for an Issue #201 --- plugins/dbms/access/enumeration.py | 4 ++++ plugins/dbms/firebird/enumeration.py | 4 ++++ plugins/dbms/maxdb/enumeration.py | 4 ++++ plugins/dbms/postgresql/enumeration.py | 4 ++++ plugins/dbms/sqlite/enumeration.py | 4 ++++ plugins/dbms/sybase/enumeration.py | 4 ++++ 6 files changed, 24 insertions(+) diff --git a/plugins/dbms/access/enumeration.py b/plugins/dbms/access/enumeration.py index 1990845ec..3bc035bb3 100644 --- a/plugins/dbms/access/enumeration.py +++ b/plugins/dbms/access/enumeration.py @@ -75,3 +75,7 @@ class Enumeration(GenericEnumeration): def search(self): warnMsg = "on Microsoft Access search option is not available" logger.warn(warnMsg) + + def getHostname(self): + warnMsg = "on Microsoft Access it is not possible to enumerate the hostname" + logger.warn(warnMsg) diff --git a/plugins/dbms/firebird/enumeration.py b/plugins/dbms/firebird/enumeration.py index f691b26f2..cd055f8cf 100644 --- a/plugins/dbms/firebird/enumeration.py +++ b/plugins/dbms/firebird/enumeration.py @@ -45,3 +45,7 @@ class Enumeration(GenericEnumeration): def search(self): warnMsg = "on Firebird search option is not available" logger.warn(warnMsg) + + def getHostname(self): + warnMsg = "on Firebird it is not possible to enumerate the hostname" + logger.warn(warnMsg) diff --git a/plugins/dbms/maxdb/enumeration.py b/plugins/dbms/maxdb/enumeration.py index be3602b33..a307ec0df 100644 --- a/plugins/dbms/maxdb/enumeration.py +++ b/plugins/dbms/maxdb/enumeration.py @@ -167,3 +167,7 @@ class Enumeration(GenericEnumeration): logger.warn(warnMsg) return [] + + def getHostname(self): + warnMsg = "on SAP MaxDB it is not possible to enumerate the hostname" + logger.warn(warnMsg) diff --git a/plugins/dbms/postgresql/enumeration.py b/plugins/dbms/postgresql/enumeration.py index 5907333c6..c5b2cc58d 100644 --- a/plugins/dbms/postgresql/enumeration.py +++ b/plugins/dbms/postgresql/enumeration.py @@ -10,3 +10,7 @@ from plugins.generic.enumeration import Enumeration as GenericEnumeration class Enumeration(GenericEnumeration): def __init__(self): GenericEnumeration.__init__(self) + + def getHostname(self): + warnMsg = "on PostgreSQL it is not possible to enumerate the hostname" + logger.warn(warnMsg) diff --git a/plugins/dbms/sqlite/enumeration.py b/plugins/dbms/sqlite/enumeration.py index 790e39e97..8445e694e 100644 --- a/plugins/dbms/sqlite/enumeration.py +++ b/plugins/dbms/sqlite/enumeration.py @@ -62,3 +62,7 @@ class Enumeration(GenericEnumeration): def searchColumn(self): errMsg = "on SQLite you must specify the table and columns to dump" raise sqlmapUnsupportedFeatureException, errMsg + + def getHostname(self): + warnMsg = "on SQLite it is not possible to enumerate the hostname" + logger.warn(warnMsg) diff --git a/plugins/dbms/sybase/enumeration.py b/plugins/dbms/sybase/enumeration.py index 917186b40..146415c21 100644 --- a/plugins/dbms/sybase/enumeration.py +++ b/plugins/dbms/sybase/enumeration.py @@ -270,3 +270,7 @@ class Enumeration(GenericEnumeration): def search(self): warnMsg = "on Sybase search option is not available" logger.warn(warnMsg) + + def getHostname(self): + warnMsg = "on Sybase it is not possible to enumerate the hostname" + logger.warn(warnMsg)