2013-04-13 52 views
-1

我試圖阻止我的應用程序從反射器,但不能使用.net代碼保護和模糊處理軟件,因爲一些應用程序功能不工作。所以請給出另一種想法或技術來防止從逆向工程反向工程

我已經使用了逆向工程Link

目前的應用程序名單,我是指一個反逆向工程指南文章,但如何使用AntiRE.h不知道Link

請幫助,如果你知道。

在VS2010中的應用vb.net

+2

爲什麼你需要混淆?隱藏代碼中的信息,如密碼通常不是一個好主意。 –

回答

0

使用反射發射的優點。所以你可以寫一些代碼在IL

static DynamicMethod Method6() 
{ 
    DynamicMethod method1 = new DynamicMethod("Method5", typeof(void), 
     new Type[] { typeof(DateTime) }); 
    ILGenerator il = method1.GetILGenerator(); 

    il.EmitWriteLine("In function 6: "); 
    il.Emit(OpCodes.Ldarg_0); 
    il.Emit(OpCodes.Box, typeof(DateTime)); 
    il.Emit(OpCodes.Call, typeof(Console).GetMethod("WriteLine", 
     new Type[] { typeof(object) })); 

    il.Emit(OpCodes.Ret); 

    return method1; 
} 

你可以用EMIT和UpCodes做多:

  1. http://blog.alxandr.me/2010/10/16/an-introduction-to-system-reflection-emit-and-opcodes/
  2. http://msdn.microsoft.com/en-us/library/3y322t50.aspx
  3. http://www.devx.com/dotnet/Article/28783
  4. http://en.csharp-online.net/Attributes_and_Reflection%E2%80%94Reflection_Emit