Нужно подобрать корректный пароль к файлу.
Бинари:
Solution
Для разнообразия возьму PE файл.
Info:
File name: /spbctf_rev/Nostr 1/s1.exe
Size: 12288
File type: PE32
String: PE(I386)
Extension: exe
Operation system: Windows(95)
Architecture: I386
Mode: 32-bit
Type: Console
Endianness: LE
Не уверен, что смогу его нормально запустить. Но да ладно. Закину его в Binary Ninja.
Вот код функции main:
int32_t main() {
char _Str2
__builtin_strncpy(dest: &_Str2, src: "VaL1DP@$$w0rD", n: 0xe)
printf(_Format: "This is secure app, you need pas…")
void _Str1
scanf(_Format: "%s", &_Str1)
if (strcmp(&_Str1, &_Str2) != 0)
printf(_Format: "Go out of here!\n")
else
printf(_Format: "You are welcome! Now you can use…")
return 0
}
Ну ладно. Можно было даже не заморачиваться. Вот пароль: VaL1DP@$$w0rD…