网络验证php接口逆向,一个专利查错的逆向(网络验证)
[C#] 純文本查看 復(fù)制代碼bool flag = true;
if (!fileInfo.CreationTime.ToString().Equals(configData.fileCreateTime))//這里是校驗License,直接刪除掉
{
MessageBox.Show("認證文件已損壞!");
flag = false;
Application.Exit();
}
if (flag)
{
LicenseService licenseService = new LicenseService();
if (licenseService.onlineCheck(configData.sn))
{
configData.lastAccessTime = DateTime.Now.ToString();
File.WriteAllText(Directory.GetCurrentDirectory() + "\\license", DESUtil.Encrypt(JsonUtil.objectToString(configData)));
}
else
{
DateTime d = DateTime.Parse(configData.lastAccessTime);
int days = (DateTime.Now - d).Days;
if (days > 7)
{
flag = false;
MessageBox.Show("已經(jīng)超過7天沒有認證軟件\r\n請連接互聯(lián)網(wǎng)后重啟軟件");
Application.Exit();
}
}
}
if (flag)//這里是對比版本的所以沒有必要刪除掉
{
VersionService versionService = new VersionService();
VersionInfo newVersionInfo = versionService.getNewVersionInfo("vimiLVloKqDbOdTkIrQdAhtZkJFClP14594231815470201");
if (newVersionInfo != null)
{
string text2 = File.ReadAllText(Directory.GetCurrentDirectory() + "\\version");
if (!text2.Equals(newVersionInfo.versionNum))
{
new frmVersion
{
oldVersion = text2,
newVersion = newVersionInfo.versionNum,
downloadUrl = newVersionInfo.fileUrl,
updateInfo = newVersionInfo.updateInfo
}.ShowDialog();
}
}
string text3 = StringCommon.RandomString(50);
File.WriteAllText(Directory.GetCurrentDirectory() + "\\hander", DESUtil.Encrypt(text3));//下面就是啟動主程序Patstory了,這個程序只是個啟動器性質(zhì)的
new Process
{
StartInfo =
{
FileName = Directory.GetCurrentDirectory() + "\\PatStory\\PatStory.exe",
Arguments = text3
}
}.Start();
}
}
}
}
}
總結(jié)
以上是生活随笔為你收集整理的网络验证php接口逆向,一个专利查错的逆向(网络验证)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 原神手游影狼丸怎么获得
- 下一篇: 郑州治疗少精弱精最好的医院推荐