Posted December 19, 20159 yr Hi, I have a question, when i resolve the refproxy (strong) of confuserex, and I want to replace the delegate call with the real MemberRef how do i know if I need to use call/callvirt/newobj? Is that somehow encoded in the signature or so? Or how can i find out what OpCode to use? ~yq8 Edited December 19, 20159 yr by yq8
December 19, 20159 yr just check the ref proxy method (ConfuserEx is open source as you know) and you will find this code[index++] = (byte)((byte)fieldInfo.Name[Mutation.KeyI8] ^ opKey); as you can see a byte from the name is used to encode to the OpCode's byte so you only need to compare the result with the value of each OpCode Call or Callvirt or newobj and you will find the OpCode that you need
Create an account or sign in to comment