Doctor Posted September 4, 2022 Posted September 4, 2022 (edited) 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, 2022 by Doctor
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now