Skip to content

Commit

Permalink
Fix signature data
Browse files Browse the repository at this point in the history
  • Loading branch information
enzok authored Nov 14, 2023
1 parent 815e219 commit 8df0a98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/signatures/decoy_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def on_call(self, call, process):
path = self.get_argument(call, "FilePath")
if path:
if path.lower().endswith((".jpg", ".jpeg", ".png", ".bmp", ".tiff")):
self.data.append(path)
self.data.append({"path": path})
if self.pid:
self.mark_call()

Expand All @@ -46,7 +46,7 @@ def on_complete(self):
if "image data," in filetype or "PC bitmap," in filetype:
for filepath in dropped.get("guest_paths", []) or []:
for decoy in self.data:
if filepath == decoy:
if filepath in decoy.get("path", ""):
return True

return False

0 comments on commit 8df0a98

Please sign in to comment.