[Samba] Ransomware?
gimili17
gimili17 at gmail.com
Thu May 19 18:34:28 UTC 2016
Would something like this help? I put a bunch of junk pictures and
other files in a samba share that everyone has access to. If I modify
them in any way, I get warned. I was thinking it might warn me so I
could prevent it spreading to backups.
#!/bin/sh
$MY_EMAIL="some at email.com"
$MY_DIR=/home/shared_to_everyone_via_samba/pictures_for_test_sub_folder
while inotifywait -qre modify "$MY_DIR"; do
#play a sound on server
play -v .3 /home/warning.wav
#send an email
mail -s "Possible malware" $MY_EMAIL </home/warning.txt
done
More information about the samba
mailing list