1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| leviathan1@leviathan:~$ ls -la check
-r-sr-x--- 1 leviathan2 leviathan1 7452 Aug 26 2019 check
leviathan1@leviathan:~$ ltrace ./check
__libc_start_main(0x804853b, 1, 0xffffd794, 0x8048610 <unfinished ...>
printf("password: ") = 10
getchar(1, 0, 0x65766f6c, 0x646f6700password: foo
) = 102
getchar(1, 0, 0x65766f6c, 0x646f6700) = 111
getchar(1, 0, 0x65766f6c, 0x646f6700) = 111
strcmp("foo", "sex") = -1
puts("Wrong password, Good Bye ..."Wrong password, Good Bye ...
) = 29
+++ exited (status 0) +++
leviathan2@leviathan:~$ cat /etc/leviathan_pass/leviathan2
ougahZi8Ta
|