#!/bin/sh
#
# $Id: smb_script.sh,v 1.5 2008/10/27 10:38:21 akorkov Exp $
#
# It is not a work script just a demo
#

# Parameters
# Name of infected file
Filename=$1
# User name (login name) 
ClientName=$2
# User host (IP address)
ClientHost=$3
# drwebd report string
DaemonReport=$4

# Script settings
Admin="av_admin@localhost"
Time=`date`
Report="$Time\nFile $Filename accessed by $ClientName from $ClientHost was blocked.\n\n$DaemonReport"

echo -e $Report | mail -s "Blocked file on Samba" $Admin
