Detect-It-Easy/db/PE/MongoDB.NET.4.sg
DosX fbc3d45b59 Add detection rules for .NET libraries
Introduced new rule files for DnsClient.NET, Fasterflect, MongoDB.NET, Snappier, and Combres libraries. These rules enable identification of the respective .NET libraries in PE files by checking for specific .NET objects.
2025-08-29 15:36:56 +03:00

25 lines
No EOL
651 B
JavaScript

// Detect It Easy: detection rule file
// Author: DosX
// E-Mail: collab@kay-software.ru
// GitHub: https://github.com/DosX-dev
// Telegram: @DosX_dev
// https://github.com/mongodb/mongo-csharp-driver
meta("library", "MongoDB.NET Driver");
function detect() {
if (PE.isNetObjectPresent("MongoDB") ||
PE.isNetObjectPresent("MongoDB.Driver") ||
PE.isNetObjectPresent("MongoDB.Driver.Core") ||
PE.isNetObjectPresent("MongoDB.Analyzer")) {
bDetected = true;
}
if (PE.isNetObjectPresent("MongoDB.AspNetCore.OData")) {
sVersion = "ASP.NET Core";
bDetected = true;
}
return result();
}