Skip to content

Instantly share code, notes, and snippets.

View sprowell's full-sized avatar

Stacy Prowell sprowell

View GitHub Profile
@sprowell
sprowell / notify-ssh-login.sh
Created December 12, 2019 03:57
Script to notify alert@localhost on an SSH login or log out
#!/bin/bash
PATH=/bin:/usr/bin:/usr/sbin
SUBJ="Alert - Remote SSH access from ${PAM_USER}"
if [ -z "$PAM_TYPE" -o "$PAM_TYPE" == "open_session" ]
then
sendmail alert <<END
$(hostname) $(date): LOGIN by ${PAM_USER} from ${PAM_RHOST}
@sprowell
sprowell / email-to-text.csv
Last active August 6, 2022 20:26
Email to Text Service List
Service Name SMS Email Suffix MMS Email Suffix
AT&T Mobility @txt.att.net @mms.att.net
Verizon Wireless @vtext.com @vzwpix.com
T-Mobile @tmomail.net @tmomail.net (same)
Sprint Corporation @messaging.sprintpcs.com @pm.sprint.com