mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-27 16:33:22 +03:00
more updates regarding Sybase
This commit is contained in:
parent
cc47737c44
commit
67ec691eb1
|
@ -155,3 +155,50 @@ class Enumeration(GenericEnumeration):
|
||||||
break
|
break
|
||||||
|
|
||||||
return kb.data.cachedDbs
|
return kb.data.cachedDbs
|
||||||
|
|
||||||
|
def getPrivileges(self, *args):
|
||||||
|
warnMsg = "on Sybase it is not possible to fetch "
|
||||||
|
warnMsg += "database users privileges, sqlmap will check whether "
|
||||||
|
warnMsg += "or not the database users are database administrators"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
users = []
|
||||||
|
areAdmins = set()
|
||||||
|
|
||||||
|
if conf.user:
|
||||||
|
users = [ conf.user ]
|
||||||
|
elif not len(kb.data.cachedUsers):
|
||||||
|
users = self.getUsers()
|
||||||
|
else:
|
||||||
|
users = kb.data.cachedUsers
|
||||||
|
|
||||||
|
for user in users:
|
||||||
|
if user is None:
|
||||||
|
continue
|
||||||
|
|
||||||
|
isDba = self.isDba(user)
|
||||||
|
|
||||||
|
if isDba is True:
|
||||||
|
areAdmins.add(user)
|
||||||
|
|
||||||
|
kb.data.cachedUsersPrivileges[user] = None
|
||||||
|
|
||||||
|
return ( kb.data.cachedUsersPrivileges, areAdmins )
|
||||||
|
|
||||||
|
def searchDb(self):
|
||||||
|
warnMsg = "on Sybase searching of databases is not implemented"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
return []
|
||||||
|
|
||||||
|
def searchTable(self):
|
||||||
|
warnMsg = "on Sybase searching of tables is not implemented"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
return []
|
||||||
|
|
||||||
|
def searchColumn(self):
|
||||||
|
warnMsg = "on Sybase searching of columns is not implemented"
|
||||||
|
logger.warn(warnMsg)
|
||||||
|
|
||||||
|
return []
|
||||||
|
|
|
@ -497,7 +497,10 @@
|
||||||
<blind/>
|
<blind/>
|
||||||
</passwords>
|
</passwords>
|
||||||
<privileges/>
|
<privileges/>
|
||||||
<roles/>
|
<roles>
|
||||||
|
<inband query="SELECT name, srid FROM master..syslogins, master..sysloginroles" condition="name"/>
|
||||||
|
<blind/>
|
||||||
|
</roles>
|
||||||
<dbs>
|
<dbs>
|
||||||
<inband query="SELECT name FROM master..sysdatabases"/>
|
<inband query="SELECT name FROM master..sysdatabases"/>
|
||||||
<blind/>
|
<blind/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user