This file is indexed.

/usr/share/doc/fwlogwatch/examples/fwlogsummary.cgi is in fwlogwatch 1.2-2.

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/sh
# Copyright (C) 2000-2010 Boris Wesslowski
# $Id: fwlogsummary.cgi 706 2010-10-06 12:02:36Z bw $

# This script generates 8 fwlogwatch html summaries in a directory visible
# to your web server.
# The log file to be used can be specified as first parameter, default is
# /var/log/messages
# With respective permissions it can be run as cgi by the webserver.
# You can also invoke this script directly from the command line or from
# cron (you might want to remove the header output).

echo 'Content-type: text/plain'
echo

echo -n 'fwlogsummary invoked '
date

RECENT="-l 1h"
WEBDIR="/var/www/fwlogwatch"
FWLOGWATCH="/usr/sbin/fwlogwatch"

if [ ! -d $WEBDIR ] ; then
  echo "Directory $WEBDIR does not exist!"
  exit
fi

if [ ! -f $FWLOGWATCH ] ; then
  echo "$FWLOGWATCH not found!"
  exit
fi

if [ -z $1 ]
then
  MESSAGES="/var/log/messages"
else
  MESSAGES="$1"
fi

$FWLOGWATCH $MESSAGES $RECENT -w -t -z -S                -o $WEBDIR/dst.html
$FWLOGWATCH $MESSAGES $RECENT -w -t -z    -D             -o $WEBDIR/src.html
$FWLOGWATCH $MESSAGES $RECENT -w -t -z                   -o $WEBDIR/src_dst.html
$FWLOGWATCH $MESSAGES $RECENT -w -t -z       -s          -o $WEBDIR/src_dst_sp.html
$FWLOGWATCH $MESSAGES $RECENT -w -t -z          -d       -o $WEBDIR/src_dst_dp.html
$FWLOGWATCH $MESSAGES $RECENT -w -t -z       -s -d       -o $WEBDIR/src_dst_sp_dp.html
$FWLOGWATCH $MESSAGES $RECENT -w -t -z       -s -d -y    -o $WEBDIR/src_dst_sp_dp_op.html
$FWLOGWATCH $MESSAGES $RECENT -w -t -z       -s -d -y -n -o $WEBDIR/all.html


cat <<EOF > $WEBDIR/index.html
<html>
<head>
<title>fwlogwatch</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" >
<font face="Arial, Helvetica">

<div align="center">
<h1>fwlogwatch summaries</h1>
<a href="/cgi-bin/fwlogsummary.cgi">regenerate summaries now</a>
</div>

<h3>Summary by criteria:</h3>
<small>Press the back button of your browser to return here.</small>
<ul>
 <li><a href="src.html">source IP address only</a></li>
 <li><a href="dst.html">destination IP address only</a></li>
 <li><a href="src_dst.html">source and destination IP addresses</a></li>
 <ul>
  <li><a href="src_dst_sp.html">with source port</a></li>
  <li><a href="src_dst_dp.html">with destination port</a></li>
  <li><a href="src_dst_sp_dp.html">with source and destination ports</a></li>
  <ul>
   <li><a href="src_dst_sp_dp_op.html">with tcp options</a></li>
  </ul>
 </ul>
 <li><a href="all.html">everything and name resolution</a></li>
</ul>
<br>
<hr>
<small><a href="http://fwlogwatch.inside-security.de/">fwlogwatch</a> &copy; Boris Wesslowski</small>

</font>
</body>
</html>
EOF

echo -n "Finished "
date

# EOF