unreliablecode / Unity-AntiModLoader
Public
Lightweight Unity C# module detecting unauthorized mod loader frameworks (MelonLoader & BepInEx) via runtime filesystem and proxy DLL heuristic checks.
main
1 Stars
0 Forks
0 Watchers
Updated Aug 19, 2024
C#
100%
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)}";
}
}
}