initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using dnlib.DotNet;
|
||||
|
||||
namespace Obfuscator.Obfuscator.FakeAttributes;
|
||||
|
||||
internal class FakeAttributes
|
||||
{
|
||||
public static void Execute(ModuleDef module)
|
||||
{
|
||||
foreach (string item in new List<string> { "ZYXDNGuarder", "HVMRuntm.dll" })
|
||||
{
|
||||
TypeDef typeDef = new TypeDefUser("Attributes", item, module.Import(typeof(Attribute)));
|
||||
typeDef.Attributes = TypeAttributes.NotPublic;
|
||||
module.Types.Add(typeDef);
|
||||
}
|
||||
_ = module.Types[new Random().Next(0, module.Types.Count)];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user