Jump to content
Tuts 4 You

ConfuserEx RefProxy Question


noob.exe

Recommended Posts

Posted (edited)

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 by yq8
Posted

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

  • Like 3

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...