mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Minor improvements
This commit is contained in:
parent
aa9ff9e8a6
commit
7e28c02948
6 changed files with 19 additions and 7 deletions
|
|
@ -136,6 +136,14 @@ def crawl(target):
|
|||
threadData.shared.deeper = set()
|
||||
threadData.shared.unprocessed = set([target])
|
||||
|
||||
_ = re.sub(r"(?<!/)/(?!/).*", "", target)
|
||||
if _:
|
||||
if target.strip('/') != _.strip('/'):
|
||||
threadData.shared.unprocessed.add(_)
|
||||
|
||||
if re.search(r"\?.*\b\w+=", target):
|
||||
threadData.shared.value.add(target)
|
||||
|
||||
if kb.checkSitemap is None:
|
||||
message = "do you want to check for the existence of "
|
||||
message += "site's sitemap(.xml) [y/N] "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue