Skip to content

Commit

Permalink
Remove the path check in PDF_Annot_URLs_Checker.__init__
Browse files Browse the repository at this point in the history
This path check references an undefined variable, causing CAPE processing to fail for every analysis.

The regression was introduced in c78f264.
  • Loading branch information
Josh Feather authored and Josh Feather committed Feb 3, 2025
1 parent 5b46031 commit e72d76f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/signatures/all/pdf_annot_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ class PDF_Annot_URLs_Checker(Signature):

def __init__(self, *args, **kwargs):
super(PDF_Annot_URLs_Checker, self).__init__(*args, **kwargs)
self.malicious_tlds = set()
if os.path.exists(self.malicious_tlds_file):
self.malicious_tlds = self.load_malicious_tlds()
self.malicious_tlds = self.load_malicious_tlds()

def load_malicious_tlds(self):
malicious_tlds = set()
Expand Down

0 comments on commit e72d76f

Please sign in to comment.