1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| leviathan1@leviathan:~$ strings check td8 secr love password: /bin/sh Wrong password, Good Bye ... ;*2$"0
leviathan1@leviathan:~$ ltrace ./check __libc_start_main(0x80490ed, 1, 0xffffdb84, 0 <unfinished ...> printf("password: ") = 10 getchar(0, 0, 0x786573, 0x646f67password: asd ) = 97 getchar(0, 97, 0x786573, 0x646f67) = 115 getchar(0, 0x7361, 0x786573, 0x646f67) = 100 strcmp("asd", "sex") = -1 puts("Wrong password, Good Bye ..."Wrong password, Good Bye ... ) = 29 +++ exited (status 0) +++
password: sex
$ cat /etc/leviathan_pass/leviathan2
|