-
-
请教!关于C#编译成的DLL,如何破解。
-
发表于:
2004-8-11 20:35
8810
-
dll里边有个check.网络验证,下面是反编译源码。
public bool hishoppass_verify(string key)
{
bool flag;
string[] strs = key.Split(new char[]{46});
try
{
UnicodeEncoding unicodeEncoding = new UnicodeEncoding();
byte[] bs1 = hishoppass_num2bytes(strs[0]);
byte[] bs2 = hishoppass_num2bytes(strs[1]);
byte[] bs3 = hishoppass_num2bytes(strs[2]);
string str = hishoppass_getsn();
byte[] bs4 = new SHA1CryptoServiceProvider().ComputeHash(bs3);
if (unicodeEncoding.GetString(bs4) == unicodeEncoding.GetString(bs2))
{
RSACryptoServiceProvider rSACryptoServiceProvider = new RSACryptoServiceProvider();
rSACryptoServiceProvider.FromXmlString(str);
RSAPKCS1SignatureDeformatter rSAPKCS1SignatureDeformatter = new RSAPKCS1SignatureDeformatter(rSACryptoServiceProvider);
rSAPKCS1SignatureDeformatter.SetHashAlgorithm("SHA1");
flag = rSAPKCS1SignatureDeformatter.VerifySignature(bs2, bs1);
}
else
{
flag = false;
}
dll应该如何修改呢。。。谢谢
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课