mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 19:55:47 +03:00
Fixes #3967
This commit is contained in:
parent
1fa81fedf3
commit
4b5927b734
|
@ -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 _:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user