ms access update

This commit is contained in:
Miroslav Stampar 2010-03-30 15:04:55 +00:00
parent 1973024ebf
commit d583cc07e7
3 changed files with 12 additions and 1 deletions

View File

@ -52,7 +52,8 @@ class Connector(GenericConnector):
self.initConnection()
try:
self.connector = pyodbc.connect(driver='{Microsoft Access Driver (*.mdb)}', dbq=self.db)
#self.connector = pyodbc.connect(driver='{Microsoft Access Driver (*.mdb)}', dbq=self.db, uid='Admin')
self.connector = pyodbc.connect('Driver={Microsoft Access Driver (*.mdb)};Dbq=%s;Uid=Admin;Pwd=;' % self.db)
except pyodbc.OperationalError, msg:
raise sqlmapConnectionException, msg[1]

View File

@ -29,7 +29,13 @@ from plugins.generic.enumeration import Enumeration as GenericEnumeration
class Enumeration(GenericEnumeration):
def __init__(self):
GenericEnumeration.__init__(self, "Microsoft Access")
def getDbs(self):
warnMsg = "on Microsoft Access it is not possible to enumerate databases"
logger.warn(warnMsg)
return []
def getBanner(self):
warnMsg = "on Microsoft Access it is not possible to get a banner"
logger.warn(warnMsg)

View File

@ -320,6 +320,10 @@
<current_db/>
<inference query="AND ASC(MID((%s), %d, 1)) > %d"/>
<is_dba query="IIF(CURRENTUSER()='Admin',1,0)"/>
<dbs/>
<tables>
<inband query="SELECT Name FROM MSysObjects WHERE (Left([Name],1) &lt;&gt; '~') AND (Left([Name],4) &lt;&gt; 'MSys') AND ([Type] In (1, 4, 6))"/>
</tables>
</dbms>
<!-- Firebird -->