Skip to content

Commit

Permalink
Add a useful log (CERT-Polska#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
nazywam authored and Gerhard Stöckli committed Oct 10, 2023
1 parent ba48fc0 commit b136356
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions karton/classifier/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ def _classify_filemagic(self, task: Task) -> Dict[str, Optional[str]]:
"extension": None,
}

self.log.info(
"Classifying sample with magic: %s, extension: %s", magic, extension
)

# Is PE file?
if magic.startswith("PE32") or magic.startswith("MS-DOS executable PE32"):
sample_class.update(
Expand Down

0 comments on commit b136356

Please sign in to comment.