Jump to content
Tuts 4 You
Sign in to follow this  
MagicArt

[dnlib] How to use OpCodes.Calli

Recommended Posts

MagicArt

How to call method using OpCodes.Calli ?

Share this post


Link to post
cawk

Calli uses its function pointer to call a function 

 

look at appfuscator or netguard 

they store all function pointers in a field then use thesefor the calli instruction 

Share this post


Link to post
MagicArt

How to get function pointer ?

5 hours ago, cawk said:

Calli uses its function pointer to call a function 

 

look at appfuscator or netguard 

they store all function pointers in a field then use thesefor the calli instruction 

 

Share this post


Link to post
cawk

Look how netguard or appfuscator does it 

  • Like 1

Share this post


Link to post
MagicArt

I created but i dont know how to get mdtoken for MethodBase.ResolveMethod.

I use (MemberRef).MDToken.ToInt32() but this not work.

Share this post


Link to post

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
Sign in to follow this  
×
×
  • Create New...