12 lines
451 B
Plaintext
12 lines
451 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
PROJECT_NAME=freedombone
|
||
|
|
||
|
ADMIN_USER=$(cat /root/${PROJECT_NAME}-completed.txt | grep 'Admin user' | awk -F ':' '{print $2}')
|
||
|
#MY_EMAIL_ADDRESS=${ADMIN_USER}@$(cat /etc/hostname)
|
||
|
MY_EMAIL_ADDRESS=root@$(cat /etc/hostname)
|
||
|
echo "USB device connected on ${DEVPATH}" | mail -s "${PROJECT_NAME} USB canary" ${MY_EMAIL_ADDRESS}
|
||
|
echo "${ACTION}" > /tmp/usb-canary
|
||
|
echo "${MY_EMAIL_ADDRESS}" >> /tmp/usb-canary
|
||
|
echo "$(date)" >> /tmp/usb-canary
|