Lightweight Unity C# module detecting unauthorized mod loader frameworks (MelonLoader & BepInEx) via runtime filesystem and proxy DLL heuristic checks.
main 1 النجوم 0 شوك 0 مراقبون تم التحديث Aug 19, 2024
C# 100%
كل النشاط
الإصدارات فقط
يتجاهل
unreliablecode / Unity-AntiModLoader src/Models/ModDetectionResult.cs [فيجوال ستوديو]
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 أخطاء مستعد
خط 1، عمود 1 الخطوط: 30 المساحات: 4 UTF-8 CRLF CSHARP