/usr/share/ettercap/lua/core/ec_string.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 | starts_with = function (str,val)
if str == nil or val == nil then
return 0
end
local spos, endpos = string.find(str,val)
if spos == nil then
return 0
end
return 1
end
|