Skip to content

Instantly share code, notes, and snippets.

@didickman
didickman / gist:0ffef39ec259a3b59b83af3b076de9d5
Created February 4, 2018 01:47 — forked from sjmurdoch/gist:1572229
Patch to FreeBSD OpenSSH to log username and password on log-in attempt to invalid user
Index: crypto/openssh/auth-pam.c
===================================================================
--- crypto/openssh/auth-pam.c (revision 229638)
+++ crypto/openssh/auth-pam.c (working copy)
@@ -809,6 +809,15 @@
return (-1);
}
+static void
+sshpam_log_invalid_user(const char *user, const char* pw, int kbdint)
(C) Copyright Omron Corporation 1989, 1990, 1991, 1992
ROM Version 1.31, 112 Megabytes RAM, 3 CPUs
Memory Check: 3Port passed, main skipped.
Auto-booting...
Booting sd(0,16,0) boot
OpenBSD/luna88k (LUNA-88K2) boot 0.6
Press return to boot now, any other key for boot menu
booting sd(16,0)bsd - starting in 4 seconds.
SQLPORTS(5) File Formats Manual SQLPORTS(5)
NAME
sqlports - sqlite database for ports meta information
DESCRIPTION
sqlports is built as a port by parsing the output of make dump-vars over
the full ports tree.
The database contains tables for automated tools, along with nice views