This file is indexed.

/usr/share/ettercap/lua/core/packet_meta.lua is in ettercap-common 1:0.8.1-3+deb8u1.

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
--- Adds packet methods directly to packet_object ctype
--
--    Copyright (C) Ryan Linn and Mike Ryan
--
--    This program is free software; you can redistribute it and/or modify
--    it under the terms of the GNU General Public License as published by
--    the Free Software Foundation; either version 2 of the License, or
--    (at your option) any later version.
--
--    This program is distributed in the hope that it will be useful,
--    but WITHOUT ANY WARRANTY; without even the implied warranty of
--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--    GNU General Public License for more details.
--
--    You should have received a copy of the GNU General Public License
--    along with this program; if not, write to the Free Software
--    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

ffi = require('ettercap_ffi')
bit = require('bit')
packet = require('packet')

local po_mt = {
  __index = {
    has_data = function(po) return packet.has_data(po) end,
    is_tcp = function(po) return packet.is_tcp(po) end,
    is_udp = function(po) return packet.is_udp(po) end,

    l4_summary = function(po) return packet.l4_summary(po) end,

    read_data = function(po, length) return packet.read_data(po, length) end,
    set_data = function(po, data) return packet.set_data(po, data) end,
    src_ip = function(po) return packet.src_ip(po) end,
    dst_ip = function(po) return packet.dst_ip(po) end,
    src_port = function(po) return packet.src_port(po) end,
    dst_port = function(po) return packet.dst_port(po) end,

    set_flag = function(po, flag) return packet.set_flag(po, flag) end,
    set_dropped = function(po) return packet.set_dropped(po) end,
    set_modified = function(po) return packet.set_modified(po) end,

    is_dropped = function(po) return packet.is_dropped(po) end,
    is_forwardable = function(po) return packet.is_forwardable(po) end,
    is_forwarded = function(po) return packet.is_forwarded(po) end,
    is_from_ssl = function(po) return packet.is_from_ssl(po) end,
    is_modified = function(po) return packet.is_modified(po) end,
    is_ssl_start = function(po) return packet.is_ssl_start(po) end,
  }
}

ffi.metatype("struct packet_object", po_mt)

return nil