Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion iocp/Parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ def load_patterns(self, fpath):
continue

if ind_pattern:
ind_regex = re.compile(ind_pattern)
if ind_type == 'URL':
ind_regex = re.compile(ind_pattern, re.IGNORECASE|re.MULTILINE|re.DOTALL)
else:
ind_regex = re.compile(ind_pattern)
self.patterns[ind_type] = ind_regex

try:
Expand Down
2 changes: 1 addition & 1 deletion iocp/data/patterns.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[URL]
pattern: \b([a-z]{3,}\:\/\/[\S]{16,})\b
pattern: \b(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#/%=~_|$?!:,.]*\)|[A-Z0-9+&@#/%=~_|$])\b
defang: True

[Host]
Expand Down