-
-
请教关于网络验证破解的问题。
-
发表于:
2004-8-11 20:37
4562
-
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应该如何修改呢。。。谢谢
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!