签到题,明码比较
#include "kctf.h"
#include<Windows.h>
void
Error() {
cout <<
"Failed!"
;
Sleep(3000);
exit
(0);
}
int
main() {
string username, passwd;
"User-Name:"
cin >> username;
"Serial-Number:"
cin >> passwd;
if
(passwd.length() != 32) {
Error();
string original =
"4fc0296a51e6d90c794c91951886dc2b"
string salt =
"1841352"
string Table = MD5(salt + username);
temp;
for
(
i = 0; i < 32; i++) {
temp = (original[i] + i) % 32;
(passwd[i] != Table[temp]) {
"Success"
<< endl;
system
"pause"
);
return
0;
[注意]看雪招聘,专注安全领域的专业人才平台!