This commit is contained in:
Miroslav Stampar 2019-10-14 09:54:00 +02:00
parent 1fa81fedf3
commit 4b5927b734
4 changed files with 4 additions and 4 deletions

View File

@ -5012,7 +5012,7 @@ def parseRequestFile(reqFile, checkParams=True):
port, request = match.groups() port, request = match.groups()
try: try:
request = decodeBase64(request, binary=False) request = decodeBase64(request, binary=False)
except binascii.Error: except (binascii.Error, TypeError):
continue continue
_ = re.search(r"%s:.+" % re.escape(HTTP_HEADER.HOST), request) _ = re.search(r"%s:.+" % re.escape(HTTP_HEADER.HOST), request)
if _: if _:

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.10.13" VERSION = "1.3.10.14"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -123,7 +123,7 @@ def _oneShotUnionUse(expression, unpack=True, limited=False):
try: try:
decodeBase64(value) decodeBase64(value)
except binascii.Error: except (binascii.Error, TypeError):
base64 = False base64 = False
break break

View File

@ -1000,7 +1000,7 @@ def dictionaryAttack(attack_dict):
resumes.append((user, hash_, resumed)) resumes.append((user, hash_, resumed))
keys.add(hash_) keys.add(hash_)
except (binascii.Error, IndexError): except (binascii.Error, TypeError, IndexError):
pass pass
if not attack_info: if not attack_info: