mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Patch for an Issue #127
This commit is contained in:
parent
ebc7088f94
commit
cc3f387551
|
@ -11,7 +11,9 @@ from lib.core.common import Format
|
||||||
from lib.core.common import dataToStdout
|
from lib.core.common import dataToStdout
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
from lib.core.data import kb
|
from lib.core.data import kb
|
||||||
|
from lib.core.data import logger
|
||||||
from lib.core.data import paths
|
from lib.core.data import paths
|
||||||
|
from lib.core.exception import sqlmapNoneDataException
|
||||||
from lib.core.exception import sqlmapUnsupportedDBMSException
|
from lib.core.exception import sqlmapUnsupportedDBMSException
|
||||||
from lib.core.settings import SUPPORTED_DBMS
|
from lib.core.settings import SUPPORTED_DBMS
|
||||||
from lib.techniques.brute.use import columnExists
|
from lib.techniques.brute.use import columnExists
|
||||||
|
@ -74,16 +76,31 @@ def action():
|
||||||
conf.dumper.users(conf.dbmsHandler.getUsers())
|
conf.dumper.users(conf.dbmsHandler.getUsers())
|
||||||
|
|
||||||
if conf.getPasswordHashes:
|
if conf.getPasswordHashes:
|
||||||
conf.dumper.userSettings("database management system users password hashes",
|
try:
|
||||||
conf.dbmsHandler.getPasswordHashes(), "password hash")
|
conf.dumper.userSettings("database management system users password hashes",
|
||||||
|
conf.dbmsHandler.getPasswordHashes(), "password hash")
|
||||||
|
except sqlmapNoneDataException, ex:
|
||||||
|
logger.critical(ex)
|
||||||
|
except:
|
||||||
|
raise
|
||||||
|
|
||||||
if conf.getPrivileges:
|
if conf.getPrivileges:
|
||||||
conf.dumper.userSettings("database management system users privileges",
|
try:
|
||||||
conf.dbmsHandler.getPrivileges(), "privilege")
|
conf.dumper.userSettings("database management system users privileges",
|
||||||
|
conf.dbmsHandler.getPrivileges(), "privilege")
|
||||||
|
except sqlmapNoneDataException, ex:
|
||||||
|
logger.critical(ex)
|
||||||
|
except:
|
||||||
|
raise
|
||||||
|
|
||||||
if conf.getRoles:
|
if conf.getRoles:
|
||||||
conf.dumper.userSettings("database management system users roles",
|
try:
|
||||||
conf.dbmsHandler.getRoles(), "role")
|
conf.dumper.userSettings("database management system users roles",
|
||||||
|
conf.dbmsHandler.getRoles(), "role")
|
||||||
|
except sqlmapNoneDataException, ex:
|
||||||
|
logger.critical(ex)
|
||||||
|
except:
|
||||||
|
raise
|
||||||
|
|
||||||
if conf.getDbs:
|
if conf.getDbs:
|
||||||
conf.dumper.dbs(conf.dbmsHandler.getDbs())
|
conf.dumper.dbs(conf.dbmsHandler.getDbs())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user