almost 9 years ago
載下來是個 .NET 的 exe 檔,用 dotPeek 解開後,發現 Flag 是 sha1("ISG"*1073741824000)
。
估算一下檔案大小大概 3TB,就直接做吧。
#include <openssl/sha.h>
#include <bits/stdc++.h>
char tmp[3010];
int main() {
SHA_CTX c;
SHA1_Init(&c);
for (int i = 0; i < 3000; i++) tmp[i] = "ISG"[i%3];
for (int i = 0; i < 1073741824; i++) SHA1_Update(&c, (void*)tmp, 3000);
unsigned char out[100];
SHA1_Final(out, &c);
for (int i = 0; i < 20; i++) printf("%02x", (int)out[i]);
puts("");
}
跑了一個半小時左右結束。
Flag: ISG{86-38-6a-c8-da-05-2d-2d-c6-94-21-8a-ff-a5-7b-92-0d-02-58-3b}