From 60b12f25a611562ee96aff8535418c640b7fe2b5 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 21 Nov 2021 14:04:16 -0800 Subject: [PATCH] Disable SafeLock content check for now --- BurnOutSharp/ProtectionType/SafeLock.cs | 14 ++++++++------ README.md | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/BurnOutSharp/ProtectionType/SafeLock.cs b/BurnOutSharp/ProtectionType/SafeLock.cs index 1f412203..7f8a3ed3 100644 --- a/BurnOutSharp/ProtectionType/SafeLock.cs +++ b/BurnOutSharp/ProtectionType/SafeLock.cs @@ -11,13 +11,15 @@ namespace BurnOutSharp.ProtectionType public string CheckContents(string file, byte[] fileContent, bool includeDebug, PortableExecutable pex, NewExecutable nex) { // TODO: Obtain a sample to find where this string is in a typical executable - var contentMatchSets = new List - { - // SafeLock - new ContentMatchSet(new byte?[] { 0x53, 0x61, 0x66, 0x65, 0x4C, 0x6F, 0x63, 0x6B }, "SafeLock"), - }; + // TODO: Re-enable when there's a more accurate version of this + // var contentMatchSets = new List + // { + // // SafeLock + // new ContentMatchSet(new byte?[] { 0x53, 0x61, 0x66, 0x65, 0x4C, 0x6F, 0x63, 0x6B }, "SafeLock"), + // }; - return MatchUtil.GetFirstMatch(file, fileContent, contentMatchSets, includeDebug); + // return MatchUtil.GetFirstMatch(file, fileContent, contentMatchSets, includeDebug); + return null; } /// diff --git a/README.md b/README.md index 5bc95c6e..b5572786 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Below is a list of protections detected by BurnOutSharp. The two columns explain | PlayStation Anti-modchip | True | False | En/Jp, not "Red Hand"; PSX executables only | | Ring PROTECH / ProRing | True | False | Unconfirmed¹ | | SafeDisc / SafeCast | True | True | Can't distinguish between some versions of SafeDisc and SafeCast | -| SafeLock | True | True | Unconfirmed¹ | +| SafeLock | False | True | Unconfirmed, content checks disabled¹ | | SecuROM | True | True | v8.x and White Label detected incorrectly² | | SmartE | True | True | | | SoftLock | False | True | Unconfirmed¹ |