- UID
- 54196
注册时间2008-7-2
阅读权限95
最后登录1970-1-1
超级版主
TA的每日心情 | 开心 2019-2-26 11:14 |
---|
签到天数: 459 天 [LV.9]以坛为家II
|
发表于 2020-11-19 09:28:04
来自手机
|
显示全部楼层
6x大婶的keygen源码
//这个就直接IDA提取了吧.
/*sub_4040F0*/
__int64 modexp(__int64 a1, unsigned __int64 a2, unsigned __int64 a3)
{
__int64 result; // rax
unsigned __int64 i; // rdi
result = 1i64;
for ( i = 1i64; i <= a2; ++i )
result = result * a1 % a3;
return result;
}
std::string GenerateAudioCapture(std::string Email)
{
std::string dwRetBuffer = "";
char sztemp[255 * 4]={0};
DWORD D = 0xb2b7;
DWORD N = 0x707075;
DWORD E = 0x186907;
DWORD *x = (DWORD *)sztemp;
DWORD AscNum = 0;
char tempLine[10]={0};
for (int i=0;i<Email.length();i++)
{
x[i] = Email.at(i) & 0xff;
AscNum += x[i];
if( i < 6)
{
sprintf(tempLine,"%.6X" , modexp( x[i] , D , N ));
dwRetBuffer += tempLine;
}
}
sprintf(tempLine,"%.6X" , modexp( AscNum , D , N ));
dwRetBuffer += tempLine;
return dwRetBuffer;
}
void main()
{
printf("%s\n", GenerateAudioCapture("by xxxxxx").c_str());
}
希望大家进步! |
评分
-
查看全部评分
|