mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-23 19:34:13 +03:00
Trivial patch
This commit is contained in:
parent
5f3b397882
commit
39ca71619c
|
@ -4476,6 +4476,9 @@ def findPageForms(content, url, raise_=False, addToTargets=False):
|
||||||
# flag to know if we are dealing with the same target host
|
# flag to know if we are dealing with the same target host
|
||||||
_ = checkSameHost(response.geturl(), url)
|
_ = checkSameHost(response.geturl(), url)
|
||||||
|
|
||||||
|
if data:
|
||||||
|
data = data.lstrip("&=").rstrip('&')
|
||||||
|
|
||||||
if conf.scope:
|
if conf.scope:
|
||||||
if not re.search(conf.scope, url, re.I):
|
if not re.search(conf.scope, url, re.I):
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -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.27"
|
VERSION = "1.3.11.28"
|
||||||
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)
|
||||||
|
|
|
@ -215,7 +215,7 @@ def crawl(target):
|
||||||
if target[1] in (HTTPMETHOD.GET, None):
|
if target[1] in (HTTPMETHOD.GET, None):
|
||||||
match = re.search(r"/[^/?]*\?.*\Z", target[0])
|
match = re.search(r"/[^/?]*\?.*\Z", target[0])
|
||||||
if match:
|
if match:
|
||||||
key = re.sub(r"=[^=&]*", "=", match.group(0))
|
key = re.sub(r"=[^=&]*", "=", match.group(0)).strip('&')
|
||||||
if key not in seen:
|
if key not in seen:
|
||||||
results.add(target)
|
results.add(target)
|
||||||
seen.add(key)
|
seen.add(key)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user