Skip to content

Commit

Permalink
models:file - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Oct 30, 2023
1 parent 9a8adb4 commit d04414f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acacore/models/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ def identify(self, sf: Siegfried) -> SiegfriedFile:
"""
return sf.identify(self.get_absolute_path()).files[0]

def re_identify_with_aca(self, costum_sigs: list[CustomSignature]) -> None:
def re_identify_with_aca(self, custom_sigs: list[CustomSignature]) -> None:
"""Uses the BOF and EOF to try to determine a ACAUID for the file.
The costum_sigs list should be found on the `reference_files` repo.
The custom_sigs list should be found on the `reference_files` repo.
If no match can be found, the method does nothing.
Args:
costum_sigs: A list of the costum_signatures that the file should be checked against
custom_sigs: A list of the custom_signatures that the file should be checked against
"""
bof, eof = self.get_bof_and_eof()
# We have to go through all of the signatures in order to check their BOF en EOF with the file.
for sig in costum_sigs:
for sig in custom_sigs:
if sig.bof and sig.eof:
bof_pattern = re.compile(sig.bof)
eof_pattern = re.compile(sig.eof)
Expand Down

0 comments on commit d04414f

Please sign in to comment.