This file is indexed.

/usr/share/ettercap/lua/third-party/strbuf.lua is in ettercap-common 1:0.8.2-2build1.

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
--- String buffers

--- Create a new string buffer
local metatable = {}
local function new ()
  return setmetatable ({}, metatable)
end

--- Add a string to a buffer
-- @param b buffer
-- @param s string to add
-- @return buffer
local function concat (b, s)
  table.insert (b, s)
  return b
end

--- Convert a buffer to a string
-- @param b buffer
-- @return string
local function tostring (b)
  return table.concat (b)
end


-- Public interface
local M = {
  concat   = concat,
  new      = new,
  tostring = tostring,
}

--- Metamethods for string buffers
-- buffer:method ()
metatable.__index = M
-- buffer .. string
metatable.__concat = concat
-- tostring
metatable.__tostring = tostring

return M