-
-
[原创]KCTF2022秋季赛签到题
-
发表于: 2022-11-14 14:43 1766
-
签到题,明码比较
#include "kctf.h" #include<Windows.h> void Error() { cout << "Failed!"; Sleep(3000); exit(0); } int main() { string username, passwd; cout << "User-Name:"; cin >> username; cout << "Serial-Number:"; cin >> passwd; if (passwd.length() != 32) { Error(); } string original = "4fc0296a51e6d90c794c91951886dc2b"; string salt = "1841352"; string Table = MD5(salt + username); int temp; for (int i = 0; i < 32; i++) { temp = (original[i] + i) % 32; if (passwd[i] != Table[temp]) { Error(); } } cout << "Success" << endl; system("pause"); return 0; }
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏
谁下载
赞赏
雪币:
留言: