mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
ms access update
This commit is contained in:
parent
1973024ebf
commit
d583cc07e7
|
@ -52,7 +52,8 @@ class Connector(GenericConnector):
|
||||||
self.initConnection()
|
self.initConnection()
|
||||||
|
|
||||||
try:
|
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:
|
except pyodbc.OperationalError, msg:
|
||||||
raise sqlmapConnectionException, msg[1]
|
raise sqlmapConnectionException, msg[1]
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,12 @@ class Enumeration(GenericEnumeration):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
GenericEnumeration.__init__(self, "Microsoft Access")
|
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):
|
def getBanner(self):
|
||||||
warnMsg = "on Microsoft Access it is not possible to get a banner"
|
warnMsg = "on Microsoft Access it is not possible to get a banner"
|
||||||
logger.warn(warnMsg)
|
logger.warn(warnMsg)
|
||||||
|
|
|
@ -320,6 +320,10 @@
|
||||||
<current_db/>
|
<current_db/>
|
||||||
<inference query="AND ASC(MID((%s), %d, 1)) > %d"/>
|
<inference query="AND ASC(MID((%s), %d, 1)) > %d"/>
|
||||||
<is_dba query="IIF(CURRENTUSER()='Admin',1,0)"/>
|
<is_dba query="IIF(CURRENTUSER()='Admin',1,0)"/>
|
||||||
|
<dbs/>
|
||||||
|
<tables>
|
||||||
|
<inband query="SELECT Name FROM MSysObjects WHERE (Left([Name],1) <> '~') AND (Left([Name],4) <> 'MSys') AND ([Type] In (1, 4, 6))"/>
|
||||||
|
</tables>
|
||||||
</dbms>
|
</dbms>
|
||||||
|
|
||||||
<!-- Firebird -->
|
<!-- Firebird -->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user