/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { // TODO: Re-consolidate these once path matching is improved new PathMatchSet(new PathMatch("/protect.dll", useEndsWith: true), "StarForce"), new PathMatchSet(new PathMatch("/protect.exe", useEndsWith: true), "StarForce"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("SafeLock.dat", useEndsWith: true), "SafeLock"), new PathMatchSet(new PathMatch("SafeLock.001", useEndsWith: true), "SafeLock"), new PathMatchSet(new PathMatch("SafeLock.128", useEndsWith: true), "SafeLock"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("IOSLINK.VXD", useEndsWith: true), "DiscGuard"), new PathMatchSet(new PathMatch("IOSLINK.DLL", useEndsWith: true), "DiscGuard"), new PathMatchSet(new PathMatch("IOSLINK.SYS", useEndsWith: true), "DiscGuard"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("Start_Here.exe", useEndsWith: true), "Hexalock AutoLock"), new PathMatchSet(new PathMatch("HCPSMng.exe", useEndsWith: true), "Hexalock AutoLock"), new PathMatchSet(new PathMatch("MFINT.DLL", useEndsWith: true), "Hexalock AutoLock"), new PathMatchSet(new PathMatch("MFIMP.DLL", useEndsWith: true), "Hexalock AutoLock"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { // Might be specifically GFWL/Gfwlivesetup.exe new PathMatchSet(new PathMatch("Gfwlivesetup.exe", useEndsWith: true), "Games for Windows LIVE"), new PathMatchSet(new PathMatch("xliveinstall.dll", useEndsWith: true), "Games for Windows LIVE"), new PathMatchSet(new PathMatch("XLiveRedist.msi", useEndsWith: true), "Games for Windows LIVE"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
public static string GetOldVersion(string file, byte[] fileContent, List <int> positions) { var matchers = new List <ContentMatchSet> { // "rDlPtS02" + (char)0x87 + "eVx" new ContentMatchSet(new byte?[] { 0x72, 0x44, 0x6C, 0x50, 0x74, 0x53, 0x30, 0x32, 0x87, 0x65, 0x56, 0x78 }, "1.2.16 or earlier"), }; string match = MatchUtil.GetFirstMatch(file, fileContent, matchers, false); return(match ?? "Unknown 1.X"); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("_cdp16.dat", useEndsWith: true), "CD-Protector"), new PathMatchSet(new PathMatch("_cdp16.dll", useEndsWith: true), "CD-Protector"), new PathMatchSet(new PathMatch("_cdp32.dat", useEndsWith: true), "CD-Protector"), new PathMatchSet(new PathMatch("_cdp32.dll", useEndsWith: true), "CD-Protector"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("CDCOPS.DLL", useEndsWith: true), "CD-Cops"), new PathMatchSet(new PathMatch(".GZ_", useEndsWith: true), "CD-Cops"), new PathMatchSet(new PathMatch(".W_X", useEndsWith: true), "CD-Cops"), new PathMatchSet(new PathMatch(".Qz", useEndsWith: true), "CD-Cops"), new PathMatchSet(new PathMatch(".QZ_", useEndsWith: true), "CD-Cops"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // HúMETINF new ContentMatchSet(new byte?[] { 0x48, 0xFA, 0x4D, 0x45, 0x54, 0x49, 0x4E, 0x46 }, GetVersion76till10, "ProtectDisc"), // ACE-PCD new ContentMatchSet(new byte?[] { 0x41, 0x43, 0x45, 0x2D, 0x50, 0x43, 0x44 }, GetVersion6till8, "ProtectDisc"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("CACTUSPJ.exe", useEndsWith: true), "Cactus Data Shield 200"), new PathMatchSet(new PathMatch("CDSPlayer.app", useEndsWith: true), "Cactus Data Shield 200"), new PathMatchSet(new PathMatch("PJSTREAM.DLL", useEndsWith: true), "Cactus Data Shield 200"), new PathMatchSet(new PathMatch("wmmp.exe", useEndsWith: true), "Cactus Data Shield 200"), new PathMatchSet(new PathMatch(".cds", useEndsWith: true), "Cactus Data Shield 200"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // .nicode + (char)0x00 new ContentMatchSet(new byte?[] { 0x2E, 0x6E, 0x69, 0x63, 0x6F, 0x64, 0x65, 0x00 }, "Armadillo"), // ARMDEBUG new ContentMatchSet(new byte?[] { 0x41, 0x52, 0x4D, 0x44, 0x45, 0x42, 0x55, 0x47 }, "Armadillo"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckFilePath(string path) { // TODO: Add ImageX.imp as a wildcard, if possilbe var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("Image.imp", useEndsWith: true), "WTM CD Protect"), new PathMatchSet(new PathMatch("Image1.imp", useEndsWith: true), "WTM CD Protect"), new PathMatchSet(new PathMatch("imp.dat", useEndsWith: true), "WTM CD Protect"), new PathMatchSet(new PathMatch("wtmfiles.dat", useEndsWith: true), "WTM Protection Viewer"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { // BD-ROM new PathMatchSet(new PathMatch("MKB_RO.inf", useEndsWith: true), GetVersion, "AACS"), // HD-DVD new PathMatchSet(new PathMatch("MKBROM.AACS", useEndsWith: true), GetVersion, "AACS"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // Tom Commander new ContentMatchSet(new byte?[] { 0x54, 0x6F, 0x6D, 0x20, 0x43, 0x6F, 0x6D, 0x6D, 0x61, 0x6E, 0x64, 0x65, 0x72 }, "CopyKiller"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // (char)0x00 + Allocator + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x00 new ContentMatchSet(new byte?[] { 0x00, 0x41, 0x6C, 0x6C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x00, 0x00, 0x00, 0x00 }, "Ring PROTECH [Check disc for physical ring]"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { //TODO: Add exact version detection for Windows builds, make sure versions before 3.X are detected as well, and detect the Mac builds. // ViseMain new ContentMatchSet( new ContentMatch(new byte?[] { 0x56, 0x69, 0x73, 0x65, 0x4D, 0x61, 0x69, 0x6E }, start: 0xE0A4, end: 0xE0A5), "Installer VISE"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // DVD-Cops, ver. new ContentMatchSet(new byte?[] { 0x44, 0x56, 0x44, 0x2D, 0x43, 0x6F, 0x70, 0x73, 0x2C, 0x20, 0x20, 0x76, 0x65, 0x72, 0x2E, 0x20 }, GetVersion, "DVD-Cops"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // KEY-LOCK COMMAND new ContentMatchSet(new byte?[] { 0x4B, 0x45, 0x59, 0x2D, 0x4C, 0x4F, 0x43, 0x4B, 0x20, 0x43, 0x4F, 0x4D, 0x4D, 0x41, 0x4E, 0x44 }, "Key-Lock (Dongle)"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("NOMOUSE.SP", useEndsWith: true), GetVersion16Bit, "LaserLock"), new PathMatchSet(new PathMatch("NOMOUSE.COM", useEndsWith: true), "LaserLock"), new PathMatchSet(new PathMatch("l16dll.dll", useEndsWith: true), "LaserLock"), new PathMatchSet(new PathMatch("laserlok.in", useEndsWith: true), "LaserLock"), new PathMatchSet(new PathMatch("laserlok.o10", useEndsWith: true), "LaserLock"), new PathMatchSet(new PathMatch("laserlok.011", useEndsWith: true), "LaserLock"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // Sometimes found in CD.IDX // BITPOOL.RSC new ContentMatchSet(new byte?[] { 0x42, 0x49, 0x54, 0x50, 0x4F, 0x4F, 0x4C, 0x2E, 0x52, 0x53, 0x43 }, "Bitpool"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // DotfuscatorAttribute new ContentMatchSet(new byte?[] { 0x44, 0x6F, 0x74, 0x66, 0x75, 0x73, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65 }, "dotFuscator"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // Software\WinRAR SFX new ContentMatchSet(new byte?[] { 0x53, 0x6F, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x5C, 0x57, 0x69, 0x6E, 0x52, 0x41, 0x52, 0x20, 0x53, 0x46, 0x58 }, "WinRAR SFX"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // DATA.CDS new ContentMatchSet(new byte?[] { 0x44, 0x41, 0x54, 0x41, 0x2E, 0x43, 0x44, 0x53 }, "Cactus Data Shield 200"), // \*.CDS new ContentMatchSet(new byte?[] { 0x5C, 0x2A, 0x2E, 0x43, 0x44, 0x53 }, "Cactus Data Shield 200"), // CDSPlayer new ContentMatchSet(new byte?[] { 0x43, 0x44, 0x53, 0x50, 0x6C, 0x61, 0x79, 0x65, 0x72 }, "Cactus Data Shield 200"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // 2 + (char)0xF2 + (char)0x02 + (char)0x82 + (char)0xC3 + (char)0xBC + (char)0x0B + $ + (char)0x99 + (char)0xAD + 'C + (char)0xE4 + (char)0x9D + st + (char)0x99 + (char)0xFA + 2$ + (char)0x9D + )4 + (char)0xFF + t new ContentMatchSet(new byte?[] { 0x32, 0xF2, 0x02, 0x82, 0xC3, 0xBC, 0x0B, 0x24, 0x99, 0xAD, 0x27, 0x43, 0xE4, 0x9D, 0x73, 0x74, 0x99, 0xFA, 0x32, 0x24, 0x9D, 0x29, 0x34, 0xFF, 0x74 }, "CD-Lock"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // Software\Caphyon\Advanced Installer new ContentMatchSet(new byte?[] { 0x53, 0x6F, 0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x5C, 0x43, 0x61, 0x70, 0x68, 0x79, 0x6F, 0x6E, 0x5C, 0x41, 0x64, 0x76, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x49, 0x6E, 0x73, 0x74, 0x61, 0x6C, 0x6C, 0x65, 0x72 }, "Caphyon Advanced Installer"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckFilePath(string path) { var matchers = new List <PathMatchSet> { new PathMatchSet(new PathMatch("CMS16.DLL", useEndsWith: true), "SecuROM"), new PathMatchSet(new PathMatch("CMS_95.DLL", useEndsWith: true), "SecuROM"), new PathMatchSet(new PathMatch("CMS_NT.DLL", useEndsWith: true), "SecuROM"), new PathMatchSet(new PathMatch("CMS32_95.DLL", useEndsWith: true), "SecuROM"), new PathMatchSet(new PathMatch("CMS32_NT.DLL", useEndsWith: true), "SecuROM"), new PathMatchSet(new PathMatch("SINTF32.DLL", useEndsWith: true), "SecuROM New"), new PathMatchSet(new PathMatch("SINTF16.DLL", useEndsWith: true), "SecuROM New"), new PathMatchSet(new PathMatch("SINTFNT.DLL", useEndsWith: true), "SecuROM New"), }; return(MatchUtil.GetFirstMatch(path, matchers, any: true)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // I + (char)0x00 + n + (char)0x00 + t + (char)0x00 + e + (char)0x00 + r + (char)0x00 + n + (char)0x00 + a + (char)0x00 + l + (char)0x00 + N + (char)0x00 + a + (char)0x00 + m + (char)0x00 + e + (char)0x00 + + (char)0x00 + + (char)0x00 + C + (char)0x00 + D + (char)0x00 + K + (char)0x00 + e + (char)0x00 + y + (char)0x00 new ContentMatchSet(new byte?[] { 0x49, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6E, 0x00, 0x61, 0x00, 0x6C, 0x00, 0x4E, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x00, 0x00, 0x43, 0x00, 0x44, 0x00, 0x4B, 0x00, 0x65, 0x00, 0x79, 0x00 }, Utilities.GetFileVersion, "CD-Key / Serial"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // ??[[__[[_ + (char)0x00 + {{ + (char)0x0 + (char)0x00 + {{ + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x0 + (char)0x00 + (char)0x00 + (char)0x00 + (char)0x00 + ?;??;?? new ContentMatchSet(new byte?[] { 0x3F, 0x3F, 0x5B, 0x5B, 0x5F, 0x5F, 0x5B, 0x5B, 0x5F, 0x00, 0x7B, 0x7B, 0x00, 0x00, 0x7B, 0x7B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x3F, 0x3B, 0x3F, 0x3F, 0x3B, 0x3F, 0x3F }, "EXE Stealth"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // AddD + (char)0x03 + (char)0x00 + (char)0x00 + (char)0x00) new ContentMatchSet(new byte?[] { 0x41, 0x64, 0x64, 0x44, 0x03, 0x00, 0x00, 0x00 }, GetV4Version, "SecuROM"), // (char)0xCA + (char)0xDD + (char)0xDD + (char)0xAC + (char)0x03 new ContentMatchSet(new byte?[] { 0xCA, 0xDD, 0xDD, 0xAC, 0x03 }, GetV5Version, "SecuROM"), // .securom + (char)0xE0 + (char)0xC0 new ContentMatchSet(new byte?[] { 0x2E, 0x73, 0x65, 0x63, 0x75, 0x72, 0x6F, 0x6D, 0xE0, 0xC0 }, GetV7Version, "SecuROM"), // .securom new ContentMatchSet(new byte?[] { 0x2E, 0x73, 0x65, 0x63, 0x75, 0x72, 0x6F, 0x6D }, GetV7Version, "SecuROM"), // _and_play.dll + (char)0x00 + drm_pagui_doit new ContentMatchSet(new byte?[] { 0x5F, 0x61, 0x6E, 0x64, 0x5F, 0x70, 0x6C, 0x61, 0x79, 0x2E, 0x64, 0x6C, 0x6C, 0x00, 0x64, 0x72, 0x6D, 0x5F, 0x70, 0x61, 0x67, 0x75, 0x69, 0x5F, 0x64, 0x6F, 0x69, 0x74 }, Utilities.GetFileVersion, "SecuROM Product Activation"), // S + (char)0x00 + e + (char)0x00 + c + (char)0x00 + u + (char)0x00 + R + (char)0x00 + O + (char)0x00 + M + (char)0x00 + + (char)0x00 + P + (char)0x00 + A + (char)0x00 new ContentMatchSet(new byte?[] { 0x53, 0x00, 0x65, 0x00, 0x63, 0x00, 0x75, 0x00, 0x52, 0x00, 0x4F, 0x00, 0x4D, 0x00, 0x20, 0x00, 0x50, 0x00, 0x41, 0x00 }, Utilities.GetFileVersion, "SecuROM Product Activation"), // .cms_t + (char)0x00 new ContentMatchSet(new byte?[] { 0x2E, 0x63, 0x6D, 0x73, 0x5F, 0x74, 0x00 }, "SecuROM 1-3"), // .cms_d + (char)0x00 new ContentMatchSet(new byte?[] { 0x2E, 0x63, 0x6D, 0x73, 0x5F, 0x64, 0x00 }, "SecuROM 1-3"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }
/// <inheritdoc/> public string CheckContents(string file, byte[] fileContent, bool includePosition = false) { var matchers = new List <ContentMatchSet> { // I + (char)0x00 + n + (char)0x00 + t + (char)0x00 + e + (char)0x00 + r + (char)0x00 + n + (char)0x00 + a + (char)0x00 + l + (char)0x00 + N + (char)0x00 + a + (char)0x00 + m + (char)0x00 + e + (char)0x00 + + (char)0x00 + + (char)0x00 + E + (char)0x00 + R + (char)0x00 + e + (char)0x00 + g + (char)0x00 new ContentMatchSet(new byte?[] { 0x49, 0x00, 0x6E, 0x00, 0x74, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6E, 0x00, 0x61, 0x00, 0x6C, 0x00, 0x4E, 0x00, 0x61, 0x00, 0x6D, 0x00, 0x65, 0x00, 0x00, 0x00, 0x45, 0x00, 0x52, 0x00, 0x65, 0x00, 0x67, 0x00 }, Utilities.GetFileVersion, "Executable-Based Online Registration"), }; return(MatchUtil.GetFirstMatch(file, fileContent, matchers, includePosition)); }