This file is indexed.

/usr/share/zentyal/templates/network/diag.mas is in zentyal-network 2.3.13+quantal1.

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

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
<!-- vim: ts=4 sw=4 nowrap filetype=mason
-->
<%args>
    $action => ""
    $target => ""
    $output => ""
    $objects => ""
</%args>
<%init>
use EBox::Gettext;
</%init>
<form action='Diag' method='POST'>
<input type="hidden" name="action" value="ping"/>
<h3><% __('Ping') %></h3>
<% __('Host') %>:
<input class='inputText' type='text' name='ip'
       value="<% $action eq 'ping' ? $target : ''%>" />
<input class='inputButton' type='submit'
       name='accept' value="<% __('Ping') %>" />
</form>
<form action='Diag' method='POST'>
<input type="hidden" name="action" value="traceroute"/>
<h3><% __('Traceroute') %></h3>
<% __('Host') %>:
<input class='inputText' type='text' name='ip'
       value="<% $action eq 'traceroute' ? $target : ''%>" />
<input class='inputButton' type='submit'
       name='accept' value="<% __('Trace') %>" />
</form>
<form action='Diag' method='POST'>
<input type="hidden" name="action" value="dns"/>
<h3><% __('Domain Name Resolution') %></h3>
<% __('Domain name') %>:
<input class='inputText' type='text' name='host'
       value="<% $action eq 'dns' ? $target : ''%>" />
<input class='inputButton' type='submit'
       name='accept' value="<% __('Lookup') %>" />
</form>


<form action='Diag' method='POST'>
<input type="hidden" name="action" value="wakeonlan"/>
<h3><% __('Wake On LAN') %></h3>
<script type="text/javascript" src="/data/js/table-helper.js"></script>
<% __('MAC address') %>:

%   my $target_found = 0;
%# Do not show the select if there are no objects
%   if (@{$objects}) {
<select name="object_id" id="object_id" onchange="showSelected(this);" >
%       for my $object (@{$objects}) {
            <option value="<% $object->{id} %>"
%           if ($target eq $object->{id}) {
                selected="selected"
%               $target_found = 1;
%           }
            ><% $object->{name} %></option>
%       }

    <option disabled="disabled" value="separator"></option>
    <option value="other"
%       unless ($target_found) {
            selected="selected"
%       }
        ><% __('Other...') %>
    </option>
</select>
%   }

<span
%   if ($target_found) {
        class="hidden"
%   }
    id="object_id_other_container">
        <input class='inputText' type='text' name='mac'
%           unless ($target_found) {
            value="<% $action eq 'wakeonlan' ? $target : ''%>"
%           }
        />
</span>
<input class='inputButton' type='submit' name='accept' value="<% __('Wake') %>" />

% if($action ne ''){
<h3><% __('Output') %></h3>
<pre>
<% $output %>
</pre>
% }
</form>