mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-23 19:34:13 +03:00
minor update (now --dump also supports only -D parameter)
This commit is contained in:
parent
bac53eeef1
commit
e8259a7665
|
@ -1212,6 +1212,9 @@ class Enumeration:
|
||||||
return entries, lengths
|
return entries, lengths
|
||||||
|
|
||||||
def dumpTable(self):
|
def dumpTable(self):
|
||||||
|
if conf.db and not conf.tbl:
|
||||||
|
return self.dumpAll()
|
||||||
|
|
||||||
if not conf.tbl and not conf.col:
|
if not conf.tbl and not conf.col:
|
||||||
errMsg = "missing table parameter"
|
errMsg = "missing table parameter"
|
||||||
raise sqlmapMissingMandatoryOptionException, errMsg
|
raise sqlmapMissingMandatoryOptionException, errMsg
|
||||||
|
@ -1472,8 +1475,6 @@ class Enumeration:
|
||||||
else:
|
else:
|
||||||
infoMsg = "you provided database '%s'. sqlmap will " % conf.db
|
infoMsg = "you provided database '%s'. sqlmap will " % conf.db
|
||||||
infoMsg += "dump all entries of this database's tables only. "
|
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)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
conf.tbl = None
|
conf.tbl = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user