Lightweight Unity C# module detecting unauthorized mod loader frameworks (MelonLoader & BepInEx) via runtime filesystem and proxy DLL heuristic checks.
main 1 Sterren 0 Vorken 0 Kijkers Bijgewerkt Aug 19, 2024
C# 100%
Alle activiteit
Alleen releases
Negeren
unreliablecode / Unity-AntiModLoader โ€” src/Models/ModDetectionResult.cs [Visuele studio]
main CSHARP
ModDetectionResult.cs ×
Unity-AntiModLoader / src / Models / ModDetectionResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;

namespace UnityAntiModLoader.Models
{
    public enum DetectionSeverity
    {
        None,
        Low,
        Medium,
        High,
        Critical
    }

    [Serializable]
    public class ModDetectionResult
    {
        public bool IsModLoaderDetected => DetectedArtifacts != null && DetectedArtifacts.Count > 0;
        public string FrameworkName { get; set; } = "None";
        public DetectionSeverity Severity { get; set; } = DetectionSeverity.None;
        public List<string> DetectedArtifacts { get; set; } = new List<string>();
        public DateTime DetectionTimestamp { get; set; } = DateTime.UtcNow;

        public override string ToString()
        {
            if (!IsModLoaderDetected) return "[AntiModLoader] No mod loader detected. Environment clean.";
            return $"[AntiModLoader] Detected '{FrameworkName}' (Severity: {Severity}) -> Artifacts: {string.Join(", ", DetectedArtifacts)}";
        }
    }
}
main 0 fouten Klaar
Ln 1, Kol 1 Lijnen: 30 Ruimtes: 4 UTF-8 CRLF CSHARP