Skip to content

Commit

Permalink
fix: [module_extractor] don't extract onion from crawled items
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Dec 9, 2024
1 parent f4fca05 commit f77c926
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/modules/Onion.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def __init__(self, queue=True):

def extract(self, obj, content, tag):
extracted = []
if self.obj.type == 'item':
if 'infoleak:submission="crawler"' in obj.get_tags():
return extracted
onions = self.regex_finditer(self.onion_regex, obj.get_global_id(), content)
for onion in onions:
start, end, value = onion
Expand Down

0 comments on commit f77c926

Please sign in to comment.