minor temporary fix

This commit is contained in:
Miroslav Stampar 2012-03-08 11:08:43 +00:00
parent 98a3e43f53
commit 11c7cc5224

View File

@ -7,6 +7,7 @@ Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import binascii
import codecs
import os
import re
@ -210,6 +211,7 @@ def __resumeHashDBValues():
Resume stored data values from HashDB
"""
try:
kb.absFilePaths = hashDBRetrieve(HASHDB_KEYS.KB_ABS_FILE_PATHS, True) or kb.absFilePaths
kb.chars = hashDBRetrieve(HASHDB_KEYS.KB_CHARS, True) or kb.chars
kb.dynamicMarkings = hashDBRetrieve(HASHDB_KEYS.KB_DYNAMIC_MARKINGS, True) or kb.dynamicMarkings
@ -229,6 +231,11 @@ def __resumeHashDBValues():
if injection not in kb.injections:
kb.injections.append(injection)
except binascii.Error:
errMsg = "revision r4833 invalidated all previous session data. "
errMsg += "You are advised either to temporary revert to the previous "
errMsg += "revision or (recommended) run with the switch '--flush-session'"
raise sqlmapGenericException, errMsg
def __setOutputResume():
"""