mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Trivial patch
This commit is contained in:
@@ -225,9 +225,9 @@ def crawl(target, post=None, cookie=None):
|
||||
|
||||
for target in kb.targets:
|
||||
value = "%s%s%s" % (target[0], '&' if '?' in target[0] else '?', target[2] or "")
|
||||
match = re.search(r"/[^/?]*\?.*\Z", value)
|
||||
match = re.search(r"/[^/?]*\?.+\Z", value)
|
||||
if match:
|
||||
key = re.sub(r"=[^=&]*", "=", match.group(0)).strip('&')
|
||||
key = re.sub(r"=[^=&]*", "=", match.group(0)).strip("&?")
|
||||
if key not in seen:
|
||||
results.add(target)
|
||||
seen.add(key)
|
||||
|
||||
Reference in New Issue
Block a user