-
-
请教!关于C#编译成的DLL,如何破解。
-
发表于:
2004-8-11 20:35
8809
-
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应该如何修改呢。。。谢谢
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)