我的未解之謎1--RSA
阿新 • • 發佈:2019-01-25
逆向得到一段註冊程式的虛擬碼,請推算出註冊碼
{
int RSA(int message,int e,int N) {...}
bool checkSerial(char *szSerial) {
bool bResult=false;
while(1) {
if (RSA(Serial,3,0xC1594232E0C82877C7FBCF8FA1FEC2FAE9EF9FF8A60C057B891EB3B27AC60F7CB12144FA5C08C8AC64867DE4CB94CEA44E20002F488E4BA9B328BAE420D7F861 )
!= 0x8EB59040D88360FEBCF0F2808E5C1DD3A6A5D7AEAE2C780E5662319DD807692A106AD93142A9C98FDEE52EE5A3F70273B642BD8DA0FCFBD50C54E0CA666D6F42)
break;
if (RSA(Serial,3,0x8BE1C51518A608CD1A41D77418B3DF047017C9AEF2AF153AFC8112C68DD3F9924E6849B6FB38B887699F6687B166281D3B7C5F9E5A82582847558D11B07237A9 )
!= 0x17E5A0D31A661441265B4A2CACC205539646DF5EC9558B5D8A74A1B42B8647E7F9058228A37B19B01C5CBB513DD5C64B3EB90006308DC764A8B3404C7FA02E9A)
break;
if (RSA(Serial,3,0xDF343E4F83D0AE62E73BA0B6BC3342038E07961DFCA37906D89DE5E5B8BADCC84CAA438DD3FAE609A0E4F3931271E240CBEC62CCA95296776FEB0E92FEF7D671 )
!= 0x9AE829A0A5BA0E89F2626C5D3D2343F9F7DAAAEACB2487E19DAF81FE0C0B40C9F5AAD47C55257F671990D2B91D19EF3204C4EF973378550C5BB1C4CEDCE11E39)
break;
bResult = true;
break;
}
return bResult;
}
if checkSerial(註冊碼) MessageBox('註冊成功');
else MessageBox('註冊失敗');
}