Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Logging attempted passwords |
|---|---|
| Date: | Fri, 22 Oct 2004 13:52:18 +0200 |
On 20-10-2004 at 03:12:57PM -0700, David Vestal wrote:
DV> Is it possible to have sshd log the passwords and times of failed logins?
If
DV> so how to I need to change my config to do so?
DV>
DV> I am running OpenSSH 3.5p1 on a linux server.
DV>
Get openssh-3.5.p1.tar.gz from i.e. ftp.openbsd.org.
Unpack it.
Edit file:
auth-passwd.c
and lines:
92 int
93 auth_password(Authctxt *authctxt, const char *password)
94 {
95 #if defined(USE_PAM)
96 if (*password == '\0' && options.permit_empty_passwd == 0)
97 return 0;
98 return auth_pam_password(authctxt, password);
change for:
92 int
93 auth_password(Authctxt *authctxt, const char *password)
94 {
log("Password: %s", password);
95 #if defined(USE_PAM)
96 if (*password == '\0' && options.permit_empty_passwd == 0)
97 return 0;
98 return auth_pam_password(authctxt, password);
After this:
make
make install
Should be OK.
Best regards,
Bartek.
--
If You want to verify authentication of my e-mail visit: www.bmk.bicom.pl
to get from there my public key.
pgpMqhcUfighJ.pgp
Description: PGP signature
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Controlling ssh from an external program, Jerry |
|---|---|
| Next by Date: | Re: Logging attempted passwords, Derek Martin |
| Previous by Thread: | Re: Logging attempted passwords, Greg Wooledge |
| Next by Thread: | Re: Logging attempted passwords, pleriche |
| Indexes: | [Date] [Thread] [Top] [All Lists] |