ClamAV | homebrewing signature files

Quick and Dirty: from mpack tools: munpack YOURMAILFILE sigtool –md5 ../XFILES/DocumentXNoX1076196.xls >> MYSIG.hdb Better: Click to access blah.pdf Click to access signatures.pdf

ClamAV as remote accessable server

On debian simply run dpkg-reconfigure clamav-daemon Test it with telnet $IP $PORT Type PING Get PONG Config files: clamd.conf #Automatically Generated by clamav-daemon postinst #To reconfigure clamd run #dpkg-reconfigure clamav-daemon #Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details TCPSocket 3310 TCPAddr # TemporaryDirectory is not set to its default /tmp here to make overriding # the default […]

BASH | detect text files charset and convert to …

MOD_INTRO_FILE_CHARSET=”$(file -bi “$MOD_INTRO_FILE” | grep charset | sed “s|.*\=||” | awk ‘{print $1}’)” if [ “x$MOD_INTRO_FILE_CHARSET” != “x” ]; then $(which iconv) -l | grep -wi $MOD_INTRO_FILE_CHARSET > /dev/null if [ $? -eq 0 ]; then MOD_INTRO=”$(cat “$MOD_INTRO_FILE” | $(which iconv) -cs -f $MOD_INTRO_FILE_CHARSET -t $CHARSET_TEXTFILE)” else MOD_INTRO=”$(cat “$MOD_INTRO_FILE”)” fi else MOD_INTRO=”$(cat “$MOD_INTRO_FILE”)” fi