开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

楼主: 136009746
收起左侧

[转载软件] PCHunter1.57,修改了授权时间

[复制链接]
发表于 2021-3-1 17:11:12 | 显示全部楼层   广东省广州市
正有需要,太感谢了
回复 支持 反对

使用道具 举报

发表于 2021-3-1 15:17:29 | 显示全部楼层   江苏省连云港市
  
//////////////////////////////////////////////////////////////////
// //
// keygen for PCHunter_pro //
// //
// //
// //
//////////////////////////////////////////////////////////////////
#include
#include
#include
#include
using namespace std;
#include "crypto/aes.h" // 用到了cryptopp 库
#include "crypto/modes.h"
#include "crypto/filters.h"
using namespace CryptoPP;
template
string hex2str (ByteT* hex, int len, const string& delim=" ") {
if (len == 0) return "";
string s;
char x[4];
for (int i=0; i<len; i++)="" {
snprintf (x, 4, "%02X", ( (unsigned char*)hex)[i]);
s += x;
if (i != len-1) s += delim; // append delim if not the last char
}
return s;
}
string hex2str (const string& hex, const string& delim=" ") {
return hex2str (hex.c_str (), hex.length (), delim);
}
string aes_encrypt (string& plain, string& key) {
ECB_Mode< AES >::Encryption e ( (byte*)key.c_str (), key.length ());
string cipher;
StringSource ss (plain, true,
new StreamTransformationFilter ( e,
new StringSink ( cipher ),
StreamTransformationFilter::NO_PADDING) );
return cipher;
}
#pragma pack (push, 1)
struct reg {
byte unknown_1[80];
FILETIME ft_beg;
FILETIME ft_end;
byte unknown[32];
};
#pragma pack (pop)
int main () {
string key = "ShouJiErShiSiShi";
reg r;
byte* p = (byte*)&r;
for (unsigned int i=0; i<sizeof (reg); i++)="" {="" 填充="" 00="" ~="" ff
p[i] = i;
}
SYSTEMTIME st;
GetSystemTime (&st); // 得到当前时间 -> start time
SYSTEMTIME st_new = st;
st_new.wYear += 10; // 当前时间+10年 -> end time
SystemTimeToFileTime (&st, &r.ft_beg); // 转成8字节的 FILETIME,xuetr用的这个
SystemTimeToFileTime (&st_new, &r.ft_end);
string plain;
plain.assign ( (const char*)&r, sizeof (r));
cout << "raw:" << endl << hex2str (plain) << endl;
string encrypted = aes_encrypt (plain, key); // 加密
// cout << "encrypted:" << endl << hex2str (encrypted) << endl;
ofstream ofs ("c:/pchunter.ek", ios::binary); // 写到 key file
ofs << hex2str (encrypted, "");
ofs.close ();
}


点评

yjd
  福建省厦门市  发表于 2021-11-2 17:08
回复 支持 反对

使用道具 举报

结帖率:50% (1/2)

签到天数: 1 天

发表于 2021-2-28 23:38:12 | 显示全部楼层   江西省景德镇市
32位的也改一下
回复 支持 反对

使用道具 举报

结帖率:100% (2/2)
发表于 2021-2-28 21:25:42 | 显示全部楼层   四川省巴中市
感谢分享。收藏了
回复 支持 反对

使用道具 举报

发表于 2021-2-28 19:22:23 | 显示全部楼层   吉林省长春市
可以可以牛
回复 支持 反对

使用道具 举报

结帖率:100% (1/1)
发表于 2021-2-28 01:45:36 | 显示全部楼层   广东省茂名市
膜拜了,刚发现过期,就找到这个了。
回复 支持 反对

使用道具 举报

发表于 2021-2-26 11:16:21 | 显示全部楼层   天津市天津市
感谢分享  收藏
回复 支持 反对

使用道具 举报

结帖率:0% (0/4)
发表于 2021-2-24 09:22:00 | 显示全部楼层   海南省三亚市
感谢分享这么好的软件!
回复 支持 反对

使用道具 举报

发表于 2021-2-23 16:46:52 | 显示全部楼层   江苏省连云港市
刚发现过期,就找到这个了。谢谢 。。
回复 支持 反对

使用道具 举报

头像被屏蔽
结帖率:98% (216/220)
发表于 2021-2-18 21:30:24 高大上手机用户 | 显示全部楼层   江西省南昌市
感谢分享   收藏了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表