code refactoring regarding standard output suppression and some threading issues

This commit is contained in:
Miroslav Stampar
2010-12-21 14:21:24 +00:00
parent 0e68248f60
commit 385e208f38
8 changed files with 27 additions and 18 deletions

View File

@@ -299,8 +299,7 @@ class Enumeration:
break
else:
query = rootQuery.blind.query % user
pushValue(conf.verbose)
conf.verbose = 0
kb.disableStdOut = True
elif kb.dbms == DBMS.MSSQL:
if kb.dbmsVersion[0] in ( "2005", "2008" ):
query = rootQuery.blind.query2 % (user, index, user)
@@ -310,7 +309,7 @@ class Enumeration:
query = rootQuery.blind.query % (user, index)
password = inject.getValue(query, inband=False)
if kb.dbms == DBMS.SYBASE:
conf.verbose = popValue()
kb.disableStdOut = False
password = "0x%s" % strToHex(password)
infoMsg = "retrieved: %s" % password
logger.info(infoMsg)