Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ed2d163

Browse files
committed
Fix for an Issue #201
1 parent 56832fe commit ed2d163

6 files changed

Lines changed: 24 additions & 0 deletions

File tree

plugins/dbms/access/enumeration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,7 @@ def searchColumn(self):
7575
def search(self):
7676
warnMsg = "on Microsoft Access search option is not available"
7777
logger.warn(warnMsg)
78+
79+
def getHostname(self):
80+
warnMsg = "on Microsoft Access it is not possible to enumerate the hostname"
81+
logger.warn(warnMsg)

plugins/dbms/firebird/enumeration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ def searchColumn(self):
4545
def search(self):
4646
warnMsg = "on Firebird search option is not available"
4747
logger.warn(warnMsg)
48+
49+
def getHostname(self):
50+
warnMsg = "on Firebird it is not possible to enumerate the hostname"
51+
logger.warn(warnMsg)

plugins/dbms/maxdb/enumeration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,7 @@ def searchDb(self):
167167
logger.warn(warnMsg)
168168

169169
return []
170+
171+
def getHostname(self):
172+
warnMsg = "on SAP MaxDB it is not possible to enumerate the hostname"
173+
logger.warn(warnMsg)

plugins/dbms/postgresql/enumeration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@
1010
class Enumeration(GenericEnumeration):
1111
def __init__(self):
1212
GenericEnumeration.__init__(self)
13+
14+
def getHostname(self):
15+
warnMsg = "on PostgreSQL it is not possible to enumerate the hostname"
16+
logger.warn(warnMsg)

plugins/dbms/sqlite/enumeration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ def searchDb(self):
6262
def searchColumn(self):
6363
errMsg = "on SQLite you must specify the table and columns to dump"
6464
raise sqlmapUnsupportedFeatureException, errMsg
65+
66+
def getHostname(self):
67+
warnMsg = "on SQLite it is not possible to enumerate the hostname"
68+
logger.warn(warnMsg)

plugins/dbms/sybase/enumeration.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,3 +270,7 @@ def searchColumn(self):
270270
def search(self):
271271
warnMsg = "on Sybase search option is not available"
272272
logger.warn(warnMsg)
273+
274+
def getHostname(self):
275+
warnMsg = "on Sybase it is not possible to enumerate the hostname"
276+
logger.warn(warnMsg)

0 commit comments

Comments
 (0)