From 0f79ec008861968586c5ea246a62f3c97eda6bc8 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 4 Nov 2008 16:05:43 +0000 Subject: [PATCH] Minor bug fix in MySQL comment injection fingerprint technique --- plugins/dbms/mysql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/dbms/mysql.py b/plugins/dbms/mysql.py index 81452b1da..9c1a3b95d 100644 --- a/plugins/dbms/mysql.py +++ b/plugins/dbms/mysql.py @@ -162,6 +162,9 @@ class MySQLMap(Fingerprint, Enumeration, Filesystem, Takeover): result = Request.queryPage(payload) if result == kb.defaultResult: + if not prevVer: + prevVer = version + if version[0] == "3": midVer = prevVer[1:3] else: