Posted September 4, 20222 yr using ModuleDefMD module = ModuleDefMD.Load(Resources.Build); foreach (TypeDef type in module.GetTypes()) { foreach (FieldDef field in type.Fields) { string[] MyTexts = new string[] { ".data", ".key" }; field. ? = MyTexts; //For byte array this replace //byte[] fake = new byte[] { 0x6B, 0x61, 0x6F }; //field.InitialValue = fake; } } How to replace? Edited September 4, 20222 yr by Doctor
Create an account or sign in to comment