minor update

This commit is contained in:
Miroslav Stampar 2011-06-07 15:13:51 +00:00
parent f34b395c65
commit 26062ec71e
2 changed files with 9 additions and 1 deletions

View File

@ -644,7 +644,10 @@ def filePathToString(filePath):
return strRepl
def singleTimeLogMessage(message, level, flag):
def singleTimeLogMessage(message, level=logging.WARN, flag=None):
if flag is None:
flag = hash(message)
if flag not in kb.singleLogFlags:
kb.singleLogFlags.add(flag)
logger.log(level, message)

View File

@ -7,6 +7,7 @@ Copyright (c) 2006-2011 sqlmap developers (http://sqlmap.sourceforge.net/)
See the file 'doc/COPYING' for copying permission
"""
from lib.core.common import singleTimeLogMessage
from lib.core.common import randomStr
from lib.core.data import conf
from lib.core.data import kb
@ -94,6 +95,10 @@ class Filesystem(GenericFilesystem):
if confirm:
self.askCheckWrittenFile(wFile, dFile, fileType)
warnMsg = "expect junk characters inside the "
warnMsg += "file as a leftover from UNION query"
singleTimeLogMessage(warnMsg)
def stackedWriteFile(self, wFile, dFile, fileType, confirm=True):
debugMsg = "creating a support table to write the hexadecimal "
debugMsg += "encoded file to"