mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Allow --dump-all to accept -D switch in order to dump all tables' entries for only one (or more, comma-separated) specified database(s)
This commit is contained in:
parent
b288e5ef57
commit
bac53eeef1
|
@ -369,7 +369,7 @@ Sven Schluter <sschlueter@netzwerk.cc>
|
||||||
each HTTP request
|
each HTTP request
|
||||||
|
|
||||||
Ryan Sears <rdsears@mtu.edu>
|
Ryan Sears <rdsears@mtu.edu>
|
||||||
for suggesting an enhancement
|
for suggesting a couple of enhancements
|
||||||
|
|
||||||
Uemit Seren <uemit.seren@gmail.com>
|
Uemit Seren <uemit.seren@gmail.com>
|
||||||
for reporting a minor adjustment when running with python 2.6
|
for reporting a minor adjustment when running with python 2.6
|
||||||
|
|
|
@ -1466,7 +1466,16 @@ class Enumeration:
|
||||||
errMsg += "back-end DBMS is MySQL < 5.0"
|
errMsg += "back-end DBMS is MySQL < 5.0"
|
||||||
raise sqlmapUnsupportedFeatureException, errMsg
|
raise sqlmapUnsupportedFeatureException, errMsg
|
||||||
|
|
||||||
conf.db = None
|
if conf.db is None:
|
||||||
|
infoMsg = "sqlmap will dump entries of all databases' tables now"
|
||||||
|
logger.info(infoMsg)
|
||||||
|
else:
|
||||||
|
infoMsg = "you provided database '%s'. sqlmap will " % conf.db
|
||||||
|
infoMsg += "dump all entries of this database's tables only. "
|
||||||
|
infoMsg += "If you wish to dump entries of all databases' "
|
||||||
|
infoMsg += "tables, run without the -D switch"
|
||||||
|
logger.info(infoMsg)
|
||||||
|
|
||||||
conf.tbl = None
|
conf.tbl = None
|
||||||
conf.col = None
|
conf.col = None
|
||||||
kb.data.cachedDbs = []
|
kb.data.cachedDbs = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user