From 7eb7bddb251471cfeebe84fadddcab55b6494cef Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 8 Nov 2019 15:19:50 +0100 Subject: [PATCH] Minor patch --- lib/core/common.py | 4 ++-- lib/core/settings.py | 2 +- lib/utils/crawler.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index e4ecf2f30..b62b0f80b 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -4422,8 +4422,8 @@ def findPageForms(content, url, raise_=False, addToTargets=False): forms = ParseResponse(response, backwards_compat=False) except ParseError: if re.search(r"(?i)...) -VERSION = "1.3.11.19" +VERSION = "1.3.11.20" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" 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) diff --git a/lib/utils/crawler.py b/lib/utils/crawler.py index 6972c7adb..0d9530359 100644 --- a/lib/utils/crawler.py +++ b/lib/utils/crawler.py @@ -117,7 +117,7 @@ def crawl(target): if (extractRegexResult(r"\A[^?]+\.(?P\w+)(\?|\Z)", url) or "").lower() not in CRAWL_EXCLUDE_EXTENSIONS: with kb.locks.value: threadData.shared.deeper.add(url) - if re.search(r"(.*?)\?(.+)", url) and not re.search(r"\?\d+\Z", url): + if re.search(r"(.*?)\?(.+)", url) and not re.search(r"\?(v=)?\d+\Z", url): threadData.shared.value.add(url) except UnicodeEncodeError: # for non-HTML files pass