From 2a01de3f0b465a410b6e3ee52e77909ecd9147ac Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 4 Nov 2008 19:54:44 +0000 Subject: [PATCH] Minor bug fix to correctly dump table entries when the column is provided --- doc/ChangeLog | 8 ++++++++ doc/THANKS | 3 +++ plugins/generic/enumeration.py | 3 +-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 64cb4f636..bc391b4fd 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -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. Day, X YYY 2008 10:00:00 +0000 + + sqlmap (0.6.2-1) stable; urgency=low * Major bug fix to correctly dump tables entries when --stop is not diff --git a/doc/THANKS b/doc/THANKS index 06067f7ef..d55227745 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -15,6 +15,9 @@ Stefano Di Paola Adam Faheem for reporting a few bugs +JimForster + for reporting a bug + Rong-En Fan for commiting the sqlmap 0.5 port to the official FreeBSD project repository diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 04b7ff0bf..3da888bce 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -824,6 +824,7 @@ class Enumeration: rootQuery = queries[kb.dbms].dumpTable if conf.col: + colList = conf.col.split(",") self.cachedColumns[conf.db] = {} self.cachedColumns[conf.db][conf.tbl] = {} for column in colList: @@ -842,8 +843,6 @@ class Enumeration: logMsg = "fetching" if conf.col: - colList = conf.col.split(",") - colString = ", ".join(column for column in colList) logMsg += " columns '%s'" % colString logMsg += " entries for table '%s'" % conf.tbl logMsg += " on database '%s'" % conf.db