Minor patch

This commit is contained in:
Miroslav Stampar 2019-11-12 23:05:32 +01:00
parent 7b89613c46
commit df8fa9cd82
2 changed files with 3 additions and 4 deletions

View File

@ -4480,9 +4480,8 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
if data: if data:
data = data.lstrip("&=").rstrip('&') data = data.lstrip("&=").rstrip('&')
if conf.scope: if conf.scope and not re.search(conf.scope, url, re.I):
if not re.search(conf.scope, url, re.I): continue
continue
elif not re.sub(r"(%s)=[^&]*&?" % '|'.join(IGNORE_PARAMETERS), "", data): elif not re.sub(r"(%s)=[^&]*&?" % '|'.join(IGNORE_PARAMETERS), "", data):
continue continue
elif not _: elif not _:

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.11.34" VERSION = "1.3.11.35"
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)