Handle some messages

This commit is contained in:
Matt Nadareski
2023-11-22 13:28:13 -05:00
parent 907aea443e
commit 94cb06a3bd
85 changed files with 1495 additions and 1675 deletions

View File

@@ -31,11 +31,11 @@ namespace BinaryObjectScanner.Protection
// Technically all need to exist but some might be renamed
var matchers = new List<PathMatchSet>
{
new PathMatchSet(new FilePathMatch("SafeLock.DAT"), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.001", useEndsWith: true), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.002", useEndsWith: true), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.128", useEndsWith: true), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.256", useEndsWith: true), "SafeLock"),
new(new FilePathMatch("SafeLock.DAT"), "SafeLock"),
new(new FilePathMatch("SafeLock.001"), "SafeLock"),
new(new FilePathMatch("SafeLock.002"), "SafeLock"),
new(new FilePathMatch("SafeLock.128"), "SafeLock"),
new(new FilePathMatch("SafeLock.256"), "SafeLock"),
};
return MatchUtil.GetAllMatches(files, matchers, any: true);
@@ -46,11 +46,11 @@ namespace BinaryObjectScanner.Protection
{
var matchers = new List<PathMatchSet>
{
new PathMatchSet(new FilePathMatch("SafeLock.DAT"), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.001", useEndsWith: true), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.002", useEndsWith: true), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.128", useEndsWith: true), "SafeLock"),
new PathMatchSet(new PathMatch("SafeLock.256", useEndsWith: true), "SafeLock"),
new(new FilePathMatch("SafeLock.DAT"), "SafeLock"),
new(new FilePathMatch("SafeLock.001"), "SafeLock"),
new(new FilePathMatch("SafeLock.002"), "SafeLock"),
new(new FilePathMatch("SafeLock.128"), "SafeLock"),
new(new FilePathMatch("SafeLock.256"), "SafeLock"),
};
return MatchUtil.GetFirstMatch(path, matchers, any: true);