Skip to content

Commit

Permalink
fix links test
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Sep 28, 2020
1 parent d8b4752 commit 3d8f323
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wfuzz/plugins/scripts/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self):
BasePlugin.__init__(self)

regex = [
r'href="((?!mailto:|tel:|#|javascript:).*?)"',
r'ref="((?!mailto:|tel:|#|javascript:).*?)"',
r'src="((?!javascript:).*?)"',
r'action="((?!javascript:).*?)"',
# http://en.wikipedia.org/wiki/Meta_refresh
Expand All @@ -55,6 +55,7 @@ def __init__(self):
self.domain_regex = re.compile(
self.kbase["links.regex"][0], re.MULTILINE | re.DOTALL
)
self.list_links = set()

def validate(self, fuzzresult):
self.list_links = set()
Expand Down

0 comments on commit 3d8f323

Please sign in to comment.