Skip to content

Commit

Permalink
Merge pull request #387 from enzok/patch-11
Browse files Browse the repository at this point in the history
Fix signature data
  • Loading branch information
cccs-kevin authored Nov 14, 2023
2 parents 815e219 + 8df0a98 commit 9fbae47
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 9fbae47

Please sign in to comment.