This file is indexed.

/usr/share/kannel/contrib/webalizer/stats.sh is in kannel-extras 1.4.3-2fakesync2build1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash

logdir="var/tmp"
http="public_html/web/stats"

cd /home/kannel || exit 1

old=""

rm -f $logdir/*.log

cat var/log/bearerbox_access.log$old | bin/multi-line.pl | bin/split.pl "$logdir/"

# This block checks reads access.log from other machine
#if [ "`/sbin/ifconfig | grep 100.204`" = "" ] ; then
#	other=204
#else
#	other=205
#fi
#ssh <otherprefixip>.$other "cat var/log/bearerbox_access.log$old" | bin/multi-line.pl | bin/split.pl "$logdir/"

for i in `(cd $logdir ; ls -1 *.log)` ; do 
	dir=${i%%-*}
	file=${i#*-} ; file=${file%.log}

	echo "**$dir**$file**"
	if [ ! -d "$http/$dir" ] ; then
		mkdir -p "$http/$dir"
	fi
	if [ ! -d "$http/$dir/$file" ] ; then
		mkdir -p "$http/$dir/$file/"
	fi
	cat $logdir/$i | sort | bin/converte.pl $file | /usr/bin/webalizer -q -c etc/webalizer.conf -o $http/$dir/$file -t "$file" -
done
rm -f $logdir/*.log