Fix for an Issue #201

This commit is contained in:
Miroslav Stampar 2012-10-14 17:53:55 +02:00
parent 56832fe9c4
commit ed2d163269
6 changed files with 24 additions and 0 deletions

View File

@ -75,3 +75,7 @@ class Enumeration(GenericEnumeration):
def search(self): def search(self):
warnMsg = "on Microsoft Access search option is not available" warnMsg = "on Microsoft Access search option is not available"
logger.warn(warnMsg) logger.warn(warnMsg)
def getHostname(self):
warnMsg = "on Microsoft Access it is not possible to enumerate the hostname"
logger.warn(warnMsg)

View File

@ -45,3 +45,7 @@ class Enumeration(GenericEnumeration):
def search(self): def search(self):
warnMsg = "on Firebird search option is not available" warnMsg = "on Firebird search option is not available"
logger.warn(warnMsg) logger.warn(warnMsg)
def getHostname(self):
warnMsg = "on Firebird it is not possible to enumerate the hostname"
logger.warn(warnMsg)

View File

@ -167,3 +167,7 @@ class Enumeration(GenericEnumeration):
logger.warn(warnMsg) logger.warn(warnMsg)
return [] return []
def getHostname(self):
warnMsg = "on SAP MaxDB it is not possible to enumerate the hostname"
logger.warn(warnMsg)

View File

@ -10,3 +10,7 @@ from plugins.generic.enumeration import Enumeration as GenericEnumeration
class Enumeration(GenericEnumeration): class Enumeration(GenericEnumeration):
def __init__(self): def __init__(self):
GenericEnumeration.__init__(self) GenericEnumeration.__init__(self)
def getHostname(self):
warnMsg = "on PostgreSQL it is not possible to enumerate the hostname"
logger.warn(warnMsg)

View File

@ -62,3 +62,7 @@ class Enumeration(GenericEnumeration):
def searchColumn(self): def searchColumn(self):
errMsg = "on SQLite you must specify the table and columns to dump" errMsg = "on SQLite you must specify the table and columns to dump"
raise sqlmapUnsupportedFeatureException, errMsg raise sqlmapUnsupportedFeatureException, errMsg
def getHostname(self):
warnMsg = "on SQLite it is not possible to enumerate the hostname"
logger.warn(warnMsg)

View File

@ -270,3 +270,7 @@ class Enumeration(GenericEnumeration):
def search(self): def search(self):
warnMsg = "on Sybase search option is not available" warnMsg = "on Sybase search option is not available"
logger.warn(warnMsg) logger.warn(warnMsg)
def getHostname(self):
warnMsg = "on Sybase it is not possible to enumerate the hostname"
logger.warn(warnMsg)