From 61a25418a9d1498d294673719da060778f96b87c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 22 Feb 2012 10:45:10 +0000 Subject: [PATCH] minor update --- lib/core/dump.py | 6 +++--- lib/core/option.py | 3 +-- plugins/dbms/mssqlserver/enumeration.py | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/core/dump.py b/lib/core/dump.py index 39310bad0..b4c8f341d 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -379,7 +379,7 @@ class Dump: if not value or re.search("^[\ *]*$", value): #NULL continue - _ = int(value) + int(value) except ValueError: colType = None break @@ -392,7 +392,7 @@ class Dump: if not value or re.search("^[\ *]*$", value): #NULL continue - _ = float(value) + float(value) except ValueError: colType = None break @@ -527,7 +527,7 @@ class Dump: self.string(query, queryRes) def rFile(self,filePath,fileData): - self.string("%s file saved to" % filePath,fileData,sort=False) + self.string("%s file saved to" % filePath,fileData,sort=False) def registerValue(self,registerData): self.string("Registry key value data", registerData,sort=False) diff --git a/lib/core/option.py b/lib/core/option.py index db64c140c..be580a02c 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -58,7 +58,6 @@ from lib.core.datatype import AttribDict from lib.core.datatype import InjectionDict from lib.core.defaults import defaults from lib.core.enums import CUSTOM_LOGGING -from lib.core.enums import DBMS from lib.core.enums import HTTPHEADER from lib.core.enums import HTTPMETHOD from lib.core.enums import MOBILES @@ -1018,7 +1017,7 @@ def __setHTTPAuthentication(): elif aTypeLower == "ntlm": try: from ntlm import HTTPNtlmAuthHandler - except ImportError, _: + except ImportError: errMsg = "sqlmap requires Python NTLM third-party library " errMsg += "in order to authenticate via NTLM, " errMsg += "http://code.google.com/p/python-ntlm/" diff --git a/plugins/dbms/mssqlserver/enumeration.py b/plugins/dbms/mssqlserver/enumeration.py index 7a965b9b2..69ff21f92 100644 --- a/plugins/dbms/mssqlserver/enumeration.py +++ b/plugins/dbms/mssqlserver/enumeration.py @@ -160,7 +160,7 @@ class Enumeration(GenericEnumeration): foundTbls = {} tblList = conf.tbl.split(",") tblCond = rootQuery.inband.condition - dbCond = rootQuery.inband.condition2 + #dbCond = rootQuery.inband.condition2 tblConsider, tblCondParam = self.likeOrExact("table")