using ltrace we can find the password.
so, the password is snlprintf\n
snlprintf\n
Flag: WG1egElCvO
WG1egElCvO