[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: TTYSnooping error



Hi,

Pietro wrote:
> I really do not understand as I am sure I am typing the correct
> password, what's happening ?

I assume it is about the comparison after

  https://sources.debian.net/src/ttysnoop/0.12d-6/ttysnoops.c/#L411

It tries to compare the inquired encrypted password of SNOOPUSER
with the encrypted input text. SNOOPUSER is supposed to be user id 0,
i.e. superuser. (See ../config.h)
Possibly something changed with the encryption in the result of
getpwnam() or getspnam().

So if you replace the five lines "#ifndef ... #endif" by the single line

  if (1)

then you (and everybody else !) should at least get past the password check.


Have a nice day :)

Thomas


Reply to: