Skip to content

Commit

Permalink
BugFix
Browse files Browse the repository at this point in the history
  • Loading branch information
helviojunior committed Jan 15, 2025
1 parent 4363fe9 commit 57ddbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filecrawler/rules/leaked1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Leaked1(RuleBase):
def __init__(self):
super().__init__('leaked1', 'Leaked Credentials 1')

self._regex = re.compile(r"(?i)([a-zA-Z0-9_]+)[: ]{1,3}([a-zA-Z0-9_-]{2,30}:\/\/[^\"'\n]{1,1024})\n[ \t]{0,5}(user|username|login|email)[ :]{1,3}([^\n]{1,1024})\n[ \t]{0,5}(pass|password|token|secret|senha|pwd)[ :]{1,3}([^\n]{1,1024})", flags=re.RegexFlag.MULTILINE)
self._regex = re.compile(r"(?i)([a-zA-Z0-9_]+)[: ]{1,3}([a-zA-Z0-9_-]{2,30}:\/\/[^\"'\n]{1,1024})\n[ \t]{0,5}(user|username|login|email)[ :]{1,3}([^\n]{3,1024})\n[ \t]{0,5}(pass|password|token|secret|senha|pwd)[ :]{1,3}([^\n]{3,1024})", flags=re.RegexFlag.MULTILINE)
# (?![A-Za-z0-9:._-])
self._keywords = ["://"]
#self._fp_regex = re.compile(r"[a-zA-Z0-9_-]{2,30}://([<]{0,1})(user|username|usuario)([>]{0,1}):([<]{0,1})(pass|password|token|secret|senha|pwd)([>]{0,1})@")
Expand Down

0 comments on commit 57ddbc7

Please sign in to comment.