minor update (now --dump also supports only -D parameter)

This commit is contained in:
Miroslav Stampar 2011-04-07 22:38:13 +00:00
parent bac53eeef1
commit e8259a7665

View File

@ -1212,6 +1212,9 @@ class Enumeration:
return entries, lengths
def dumpTable(self):
if conf.db and not conf.tbl:
return self.dumpAll()
if not conf.tbl and not conf.col:
errMsg = "missing table parameter"
raise sqlmapMissingMandatoryOptionException, errMsg
@ -1472,8 +1475,6 @@ class Enumeration:
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