Server : Apache System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : andertr9 ( 1047) PHP Version : 8.2.18 Disable Function : NONE Directory : /opt/osquery/share/osquery/lenses/ |
Upload File : |
(* Module: AptCacherNGSecurity Lens for config files like the one found in /etc/apt-cacher-ng/security.conf About: License Copyright 2013 Erik B. Andersen; this file is licenced under the LGPL v2+. *) module AptCacherNGSecurity = autoload xfm (* Define a Username/PW pair *) let authpair = [ key /[^ \t:\/]*/ . del /:/ ":" . store /[^: \t\n]*/ ] (* Define a record. So far as I can tell, the only auth level supported is Admin *) let record = [ key "AdminAuth". del /[ \t]*:[ \t]*/ ": ". authpair . Util.del_str "\n"] (* Define the basic lens *) let lns = ( record | Util.empty | Util.comment )* let filter = incl "/etc/apt-cacher-ng/security.conf" . Util.stdexcl let xfm = transform lns filter