=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== fwanalog-0.6.9/fwanalog.opts.freebsd-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.freebsd:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.freebsd-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.freebsd-94- fwanalog-0.6.9/fwanalog.opts.freebsd:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.freebsd-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.fw1-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.fw1:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.fw1-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.fw1-94- fwanalog-0.6.9/fwanalog.opts.fw1:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.fw1-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.ipfw-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.ipfw:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.ipfw-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.ipfw-94- fwanalog-0.6.9/fwanalog.opts.ipfw:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.ipfw-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.linux22-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.linux22:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.linux22-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.linux22-94- fwanalog-0.6.9/fwanalog.opts.linux22:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.linux22-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.master-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.master:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.master-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.master-94- fwanalog-0.6.9/fwanalog.opts.master:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.master-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.openbsd-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.openbsd:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.openbsd-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.openbsd-94- fwanalog-0.6.9/fwanalog.opts.openbsd:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.openbsd-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.openbsd3-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.openbsd3:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.openbsd3-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.openbsd3-94- fwanalog-0.6.9/fwanalog.opts.openbsd3:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.openbsd3-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.pix-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.pix:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.pix-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.pix-94- fwanalog-0.6.9/fwanalog.opts.pix:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.pix-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.solarisipf-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.solarisipf:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.solarisipf-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.solarisipf-94- fwanalog-0.6.9/fwanalog.opts.solarisipf:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.solarisipf-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.sonicwall-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.sonicwall:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.sonicwall-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.sonicwall-94- fwanalog-0.6.9/fwanalog.opts.sonicwall:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.sonicwall-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.watchguard-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.watchguard:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.watchguard-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.watchguard-94- fwanalog-0.6.9/fwanalog.opts.watchguard:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.watchguard-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.zynos-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.zynos:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.zynos-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.zynos-94- fwanalog-0.6.9/fwanalog.opts.zynos:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.zynos-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.opts.linux24-44-# You can change this to your log rotate interval + 1 day (so you never miss a logfile entry) fwanalog-0.6.9/fwanalog.opts.linux24:45:inputfiles=`find $inputfiles_dir -maxdepth 1 -name "$inputfiles_mask" -mtime -$inputfiles_mtime | sort -r` fwanalog-0.6.9/fwanalog.opts.linux24-46-# This should find the names of the logfiles you want to parse ############################################## fwanalog-0.6.9/fwanalog.opts.linux24-94- fwanalog-0.6.9/fwanalog.opts.linux24:95:timezone=`$date +%z` fwanalog-0.6.9/fwanalog.opts.linux24-96-# Which timezone the server is in. Correct if the server fwanalog runs on ############################################## fwanalog-0.6.9/fwanalog.sh-136- # Get today's date for the daily reports. fwanalog-0.6.9/fwanalog.sh:137: TODAY=`$date +%y%m%d` fwanalog-0.6.9/fwanalog.sh-138- ############################################## fwanalog-0.6.9/fwanalog.sh-145- # change into the script's directory because the analog config files are there fwanalog-0.6.9/fwanalog.sh:146: cd `dirname $0` fwanalog-0.6.9/fwanalog.sh-147- else ############################################## fwanalog-0.6.9/fwanalog.sh-153- # change into the script's directory because all the config files are there fwanalog-0.6.9/fwanalog.sh:154: cd `dirname $0` fwanalog-0.6.9/fwanalog.sh-155- ############################################## fwanalog-0.6.9/fwanalog.sh-208- # Check if there is a common part in the old an the new log fwanalog-0.6.9/fwanalog.sh:209: if $grep --silent "`cat $outdir/match_last_line.pattern`" $outdir/fwanalog.current.log ; then fwanalog-0.6.9/fwanalog.sh-210- # there is a common part ############################################## fwanalog-0.6.9/fwanalog.sh-411- # Create a separate report for each host fwanalog-0.6.9/fwanalog.sh:412: for host in `cat $outdir/fwanalog.current.hosts.log`; do fwanalog-0.6.9/fwanalog.sh-413- ############################################## fwanalog-0.6.9/fwanalog.sh-473- # Create a separate report for each packet fwanalog-0.6.9/fwanalog.sh:474: for packet in `cat $outdir/fwanalog.current.packets.log`; do fwanalog-0.6.9/fwanalog.sh-475- ############################################## fwanalog-0.6.9/fwanalog.sh-481- # filesystem-friendly form fwanalog-0.6.9/fwanalog.sh:482: fsform=`echo $packet | $sed 's!/!-!g'` fwanalog-0.6.9/fwanalog.sh-483- ############################################## fwanalog-0.6.9/fwanalog.sh-513- # Get the hostname from the filename fwanalog-0.6.9/fwanalog.sh:514: hostname=`echo $hostlog | $sed 's/^.*hosts.\(.*\).html/\1/' ` fwanalog-0.6.9/fwanalog.sh-515- ############################################## fwanalog-0.6.9/fwanalog.sh-524- # Do the same in each file in the packet directory fwanalog-0.6.9/fwanalog.sh:525: for packetlog in `$egrep -l "$hostname" $outdir/packets/*.html 2> /dev/null`; do fwanalog-0.6.9/fwanalog.sh-526- ############################################## fwanalog-0.6.9/fwanalog.sh-570- # Do the same in each host log fwanalog-0.6.9/fwanalog.sh:571: for hostlog in `$egrep -l "$packetform1|$packetform2" $outdir/hosts/*.html 2> /dev/null`; do fwanalog-0.6.9/fwanalog.sh-572- ############################################## fwanalog-0.6.9/fwanalog.sh-588- # check if there were corrupt lines fwanalog-0.6.9/fwanalog.sh:589: corruptlines=`$grep "^C: " $outdir/analog.err | wc -l` fwanalog-0.6.9/fwanalog.sh-590- if [ $corruptlines -ge 1 ]; then ############################################## fwanalog-0.6.9/fwanalog.sh-597- # check if Analog complains of an old language file fwanalog-0.6.9/fwanalog.sh:598: corruptlines=`$grep -i "error.*language file.*exiting" $outdir/analog.err | wc -l` fwanalog-0.6.9/fwanalog.sh-599- if [ $corruptlines -ge 1 ]; then ############################################## fwanalog-0.6.9/fwanalog.sh-609- # Check if there is an error which wasn't catched fwanalog-0.6.9/fwanalog.sh:610: corruptlines=`$grep "." $outdir/analog.err | wc -l` fwanalog-0.6.9/fwanalog.sh-611- if [ $corruptlines -ge 1 ]; then ############################################## fwanalog-0.6.9/fwanalog.sh-1540- fwanalog-0.6.9/fwanalog.sh:1541: currmo=`$date +%m` fwanalog-0.6.9/fwanalog.sh:1542: curryear=`$date +%Y` fwanalog-0.6.9/fwanalog.sh:1543: lastyear=`echo $curryear | awk '{ print($1 - 1) }'` fwanalog-0.6.9/fwanalog.sh-1544- ############################################## fwanalog-0.6.9/fwanalog.sh-1590- # change into the script's directory because the config file is here fwanalog-0.6.9/fwanalog.sh:1591: cd `dirname $0` fwanalog-0.6.9/fwanalog.sh-1592- fwanalog-0.6.9/fwanalog.sh-1593- # Load the user-settable options from the config file fwanalog-0.6.9/fwanalog.sh:1594: #. `basename $0 | $sed 's/sh$/opts/'` fwanalog-0.6.9/fwanalog.sh-1595- . /etc/fwanalog/fwanalog.opts ############################################## fwanalog-0.6.9/fwanalog.sh-1598- # Month and year as they appear in the web server log fwanalog-0.6.9/fwanalog.sh:1599: grepdate=`$date +/%b/%Y:` fwanalog-0.6.9/fwanalog.sh-1600- # Name to indicate that this file is older fwanalog-0.6.9/fwanalog.sh:1601: newlogname=fwanalog.all.log.`$date +%Y-%m` fwanalog-0.6.9/fwanalog.sh-1602-