Update FileEventMonitor.cs

This commit is contained in:
Namhyeon Go 2024-08-12 16:44:25 +09:00
parent f0a7316eef
commit cf34039f5a

View File

@ -167,8 +167,8 @@ namespace WelsonJS.Service
List<Match> ruleMatches = match.Value; List<Match> ruleMatches = match.Value;
ruleMatches.ForEach((x) => ruleMatches.ForEach((x) =>
{ {
parent.Log($"YARA rule matched: {ruleName}, {filePath}"); parent.Log($"YARA rule matched: {ruleName}, {filePath}, Offset {x.Offset}");
parent.DispatchServiceEvent("fileRuleMatched", new string[] { ruleName, filePath }); parent.DispatchServiceEvent("fileRuleMatched", new string[] { ruleName, filePath, x.Offset.ToString() });
}); });
} }
} }