=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== clamav-unofficial-sigs-3.7.2/CHANGELOG-585- script directory location changes (based on request from Justin Davis). clamav-unofficial-sigs-3.7.2/CHANGELOG:586: - Changed clamd database reload command from "kill -USR2 `cat $clamd_pid`" clamav-unofficial-sigs-3.7.2/CHANGELOG-587- to "clamdscan --reload" (inspired by Malcolm Scott). ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.conf-72-# - The next variable signals clamd's Process ID (PID) to reload databases clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.conf:73:#reload_opt="kill -USR2 `cat $clamd_pid`" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.conf-74-# - The next variable signals linux based systems to do a full clamd service stop/start ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-22-output_ver=" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:23: `basename $0` $version clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-24-" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-28- clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:29: Usage: `basename $0` [OPTION] [PATH|FILE] clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-30- ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-40- -c Direct script to use a specific configuration file clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:41: e.g.: '-c /path/to/`basename "$default_config"`'. clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-42- ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-121- cd "$clam_dbs" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:122: input=`echo "$input" | tr -d "'" | tr -d '"'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:123: file_sig=`grep -n "$input:" *.ndb` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:124: sig_ign=`echo "$file_sig" | cut -d ":" -f-3` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-125- if [ -n "$sig_ign" ] ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-176- read input clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:177: input=`echo "$input" | tr -d "'" | tr -d '"'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-178- echo "" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:179: if `echo "$input" | grep "\." > /dev/null` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-180- then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-181- cd "$clam_dbs" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:182: sig=`grep "$input:" *.ndb` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-183- if [ -n "$sig" ] clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-184- then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:185: db_file=`echo "$sig" | cut -d ':' -f1` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-186- echo "$input found in: $db_file" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-229- g) no_default_config clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:230: db_file=`echo "$OPTARG" | awk -F '/' '{print $NF}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-231- if [ -s "$ss_dir/$db_file" ] ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-254- echo "*** SCRIPT VERSION ***" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:255: echo "`basename $0` $version" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-256- echo "" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-344- then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:345: source_file=`basename "$source"` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-346- echo "" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-351- read prefix clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:352: path_file=`echo "$source" | cut -d "." -f-1 | sed 's/$/.ndb/'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:353: db_file=`basename $path_file` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-354- rm -f "$path_file" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:355: total=`wc -l "$source" | cut -d " " -f1` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-356- line_num=1 ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-358- cat "$source" | while read line ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:359: line_prefix=`echo "$line" | awk -F ':' '{print $1}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-360- if [ "$line_prefix" = "-" ] ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-435- echo "" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:436: for file in `cat $config_dir/purge.txt` ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-437- rm -f -- "$file" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-468- s) no_default_config clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:469: input=`echo "$OPTARG" | awk -F '/' '{print $NF}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:470: db_file=`find $work_dir -name $input` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-471- if [ -s "$db_file" ] ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-516- cd "$clam_dbs" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:517: input=`echo "$input" | tr -d "'" | tr -d '"'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:518: sig_full=`grep -H "$input:" *.ndb` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:519: sig_name=`echo "$sig_full" | cut -d ":" -f2` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-520- if [ -n "$sig_name" ] ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-579- fi clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:580: if [ "`basename "$conf_file"`" != "`basename "$default_config"`" ] ; then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-581- echo "" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-582- echo " Invalid config file: $2" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:583: echo " Config file must be named: `basename $default_config`" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-584- echo "$usage" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-621- echo " *** SCRIPT CONFIGURATION HAS NOT BEEN COMPLETED ***" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:622: echo " Please review the script configuration file: `basename $default_config`." clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-623- echo " Once the user configuration has been completed, rerun the script." ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-728- while [ "$sleep_time" -lt "$min_sleep_time" -o "$sleep_time" -gt "$max_sleep_time" ] ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:729: sleep_time=`head -1 /dev/urandom | cksum | awk '{print $2}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-730- done ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-825- comment "" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:826: for file in `cat $db_changes` ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-827- rm -f -- "$file" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-878-if [ -n "$clamd_socket" ] ; then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:879: if [ "`perl -e 'use IO::Socket::UNIX; print $IO::Socket::UNIX::VERSION,"\n"' 2>/dev/null`" ] clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-880- then ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-893- socket_cat1=1 clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:894: if [ "`(echo "PING"; sleep 1;) | socat - "$clamd_socket" 2>/dev/null`" = "PONG" ] ; then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-895- socket_cat2=1 ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-956- $start_clamd > /dev/null && sleep 5 clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:957: if [ "`(echo "PING"; sleep 1;) | socat - "$clamd_socket" 2>/dev/null`" = "PONG" ] clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-958- then ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1018- comment "======================================================================" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1019: ss_mirror_ips=`dig +ignore +short $ss_url` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1020- for ss_mirror_ip in $ss_mirror_ips ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1021: ss_mirror_name=`dig +short -x $ss_mirror_ip | sed 's/\.$//'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1022- ss_mirror_site_info="$ss_mirror_name $ss_mirror_ip" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1049- if [ "$?" = "0" ] ; then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1050: db_ext=`echo $db_file | cut -d "." -f2` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1051- if [ -z "$ham_dir" -o "$db_ext" != "ndb" ] ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1135- then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1136: last_si_update=`cat $config_dir/last-si-update.txt` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1137- else ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1174- if [ "$?" = "0" ] ; then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1175: db_ext=`echo $db_file | cut -d "." -f2` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1176- comment "" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1271- then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1272: last_mbl_update=`cat $config_dir/last-mbl-update.txt` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1273- else ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1297- if [ "$?" = "0" ] ; then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1298: db_ext=`echo $db_file | cut -d "." -f2` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1299- comment "" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1390- for db_url in $add_dbs ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1391: base_url=`echo $db_url | cut -d "/" -f3` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1392: db_file=`basename $db_url` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1393: if [ "`echo $db_url | cut -d ":" -f1`" = "rsync" ] clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1394- then ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1414- db_file="" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1415: for db_file in `ls $add_dir`; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1416- if ! cmp -s $add_dir/$db_file $clam_dbs/$db_file ; then ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1456- comment "======================================================================" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1457: for entry in `cat "$config_dir/monitor-ign.txt" 2>/dev/null` ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1458: sig_file=`echo "$entry" | tr -d "\r" | awk -F ":" '{print $1}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1459: sig_hex=`echo "$entry" | tr -d "\r" | awk -F ":" '{print $NF}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1460: sig_name_old=`echo "$entry" | tr -d "\r" | awk -F ":" '{print $3}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1461: sig_ign_old=`grep "$sig_name_old" "$config_dir/local.ign"` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1462: sig_old=`echo "$entry" | tr -d "\r" | cut -d ":" -f3-` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1463: sig_new=`grep -hwF "$sig_hex" "$sig_file" | tr -d "\r" 2>/dev/null` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1464: sig_mon_new=`grep -HwF -n "$sig_hex" "$sig_file" | tr -d "\r"` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1465- if [ -n "$sig_new" ] ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1467- if [ "$sig_old" != "$sig_new" -o "$entry" != "$sig_mon_new" ] ; then clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1468: sig_name_new=`echo "$sig_new" | tr -d "\r" | awk -F ":" '{print $1}'` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1469: sig_ign_new=`echo "$sig_mon_new" | cut -d ":" -f1-3` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1470- perl -i -ne "print unless /$sig_ign_old/" "$config_dir/monitor-ign.txt" ############################################## clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1519- comment "======================================================================" clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1520: for entry in `cat "$config_dir/tracker.txt" 2>/dev/null` ; do clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1521: sig_file=`echo "$entry" | cut -d ":" -f1` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1522: sig_full=`echo "$entry" | cut -d ":" -f2-` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh:1523: sig_name=`echo "$entry" | cut -d ":" -f2` clamav-unofficial-sigs-3.7.2/clamav-unofficial-sigs.sh-1524- if ! grep -F "$sig_full" "$sig_file" > /dev/null 2>&1 ; then ############################################## clamav-unofficial-sigs-3.7.2/clamd-status.sh-95-if [ -n "$clamd_socket" ] ; then clamav-unofficial-sigs-3.7.2/clamd-status.sh:96: if [ "`perl -e 'use IO::Socket::UNIX; print $IO::Socket::UNIX::VERSION,"\n"' 2> /dev/null`" ] clamav-unofficial-sigs-3.7.2/clamd-status.sh-97- then ############################################## clamav-unofficial-sigs-3.7.2/clamd-status.sh-110- socket_cat1=1 clamav-unofficial-sigs-3.7.2/clamd-status.sh:111: if [ "`(echo "PING"; sleep 1;) | socat - "$clamd_socket" 2> /dev/null`" = "PONG" ] ; then clamav-unofficial-sigs-3.7.2/clamd-status.sh-112- socket_cat2=1 ############################################## clamav-unofficial-sigs-3.7.2/clamd-status.sh-170- $start_clamd > /dev/null && sleep 5 clamav-unofficial-sigs-3.7.2/clamd-status.sh:171: if [ "`(echo "PING"; sleep 1;) | socat - "$clamd_socket" 2> /dev/null`" = "PONG" ] clamav-unofficial-sigs-3.7.2/clamd-status.sh-172- then ############################################## clamav-unofficial-sigs-3.7.2/debian/postinst-42- if [ "x$2" != x ] && dpkg --compare-versions "$2" lt 3.5.4 ; then clamav-unofficial-sigs-3.7.2/debian/postinst:43: for file in `cat "$config_dir/purge.txt" 2>/dev/null` ; do clamav-unofficial-sigs-3.7.2/debian/postinst-44- chown -f "$user:$group" "$file" > /dev/null 2>&1 || true ############################################## clamav-unofficial-sigs-3.7.2/debian/postrm-6-if [ "$1" = purge ] ; then clamav-unofficial-sigs-3.7.2/debian/postrm:7: for file in `cat $purge 2>/dev/null` ; do clamav-unofficial-sigs-3.7.2/debian/postrm-8- rm -f -- "$file"