mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 23:05:03 +00:00
Cleanup and notes for 3P-Lock
This commit is contained in:
@@ -3,6 +3,11 @@ using BurnOutSharp.Wrappers;
|
||||
|
||||
namespace BurnOutSharp.ProtectionType
|
||||
{
|
||||
/// <remarks>
|
||||
/// PiD only looks for the `.ldr` section, from testing
|
||||
/// There don't seem to be any other signs that this is 3P-Lock anywhere in the example files
|
||||
/// No website has been found for 3P-Lock yet
|
||||
/// </remarks>
|
||||
public class ThreePLock : IPortableExecutableCheck
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
@@ -16,11 +21,9 @@ namespace BurnOutSharp.ProtectionType
|
||||
//This produced false positives in some DirectX 9.0c installer files
|
||||
//"Y" + (char)0xC3 + "U" + (char)0x8B + (char)0xEC + (char)0x83 + (char)0xEC + "0SVW"
|
||||
|
||||
// Get the .ldr and .ldt sections, if they exist -- TODO: Confirm if both are needed or either/or is fine
|
||||
bool cmsdSection = pex.ContainsSection(".ldr", exact: true);
|
||||
bool cmstSection = pex.ContainsSection(".ldt", exact: true);
|
||||
if (cmsdSection || cmstSection)
|
||||
return $"3PLock";
|
||||
// Get the .ldr and .ldt sections, if they exist
|
||||
if (pex.ContainsSection(".ldr", exact: true) && pex.ContainsSection(".ldt", exact: true))
|
||||
return $"3P-Lock Copy Protection";
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user