Skip to content

Instantly share code, notes, and snippets.

View R41D3NN's full-sized avatar

R41D3NN R41D3NN

View GitHub Profile
@R41D3NN
R41D3NN / UnauthorizedSshAttemptLogger.sh
Last active August 30, 2015 04:17 — forked from jreyes1108/unauthorized ssh attempts
unauthorized ssh attempts
#!/bin/sh
LOG_FILE=/var/log/ssh_complaints.log
AUTH_LOG=/var/log/auth.log
HOSTS_DENY=/etc/hosts.deny
MAX_ATTEMPTS=8
(
#WHITELIST="127.0.0.1 192.168.110.1 `host test.net.com | sed -e 's/[^0-9]*//'`"
WHITELIST="127.0.0.1"