Minor bug fix to correctly dump table entries when the column is provided

This commit is contained in:
Bernardo Damele 2008-11-04 19:54:44 +00:00
parent be599d5a33
commit 2a01de3f0b
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
sqlmap (0.6.3-1) stable; urgency=low
* Minor bug fix to correctly dump table entries when the column is
provided;
-- Bernardo Damele A. G. <bernardo.damele@gmail.com> Day, X YYY 2008 10:00:00 +0000
sqlmap (0.6.2-1) stable; urgency=low sqlmap (0.6.2-1) stable; urgency=low
* Major bug fix to correctly dump tables entries when --stop is not * Major bug fix to correctly dump tables entries when --stop is not

View File

@ -15,6 +15,9 @@ Stefano Di Paola <stefano.dipaola@wisec.it>
Adam Faheem <faheem.adam@is.co.za> Adam Faheem <faheem.adam@is.co.za>
for reporting a few bugs for reporting a few bugs
JimForster <jimforster@goldenwest.com>
for reporting a bug
Rong-En Fan <rafan@freebsd.org> Rong-En Fan <rafan@freebsd.org>
for commiting the sqlmap 0.5 port to the official FreeBSD project for commiting the sqlmap 0.5 port to the official FreeBSD project
repository repository

View File

@ -824,6 +824,7 @@ class Enumeration:
rootQuery = queries[kb.dbms].dumpTable rootQuery = queries[kb.dbms].dumpTable
if conf.col: if conf.col:
colList = conf.col.split(",")
self.cachedColumns[conf.db] = {} self.cachedColumns[conf.db] = {}
self.cachedColumns[conf.db][conf.tbl] = {} self.cachedColumns[conf.db][conf.tbl] = {}
for column in colList: for column in colList:
@ -842,8 +843,6 @@ class Enumeration:
logMsg = "fetching" logMsg = "fetching"
if conf.col: if conf.col:
colList = conf.col.split(",")
colString = ", ".join(column for column in colList)
logMsg += " columns '%s'" % colString logMsg += " columns '%s'" % colString
logMsg += " entries for table '%s'" % conf.tbl logMsg += " entries for table '%s'" % conf.tbl
logMsg += " on database '%s'" % conf.db logMsg += " on database '%s'" % conf.db