2020-11-01 | Csharp | UNLOCK

DTCMS4.0 Crypt.cs(Reflection Dll)

refdecrypt.cs

Reflection Dll

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Reflection;
namespace test{
class test{
public static void Main(string[] args){
Assembly a;
a = Assembly.LoadFile(@"C:\Users\rosemary\Desktop\C#\DTCMSDecrypt\refdecrypt\DTcms.Common.dll");
Console.WriteLine(a.GetName());
Type type = a.GetType("DTcms.Common.DESEncrypt");
MethodInfo[] method1 = type.GetMethods();
foreach(MemberInfo m in method1){
Console.WriteLine(m);
}
MethodInfo ms = type.GetMethod("Decrypt",new Type[] { typeof(string),typeof(string) });
object[] parameters = new object[] { "87FA6AD6CBFDF3108E4DD6F47F5D04A4", "24V0XZ" };
MethodInfo ms1 = type.GetMethod("Encrypt",new Type[]{typeof(string)});
Console.WriteLine(ms1.Invoke(null,new object[]{"admin888"}));
Console.WriteLine(ms.Invoke(null,parameters));
Console.ReadKey();
}
}
}

评论加载中