403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /snap/certbot/current/usr/share/augeas/lenses/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /snap/certbot/current/usr/share/augeas/lenses/dist/rancid.aug
(*
Module: Rancid
  Parses RANCiD router database

Author: Matt Dainty <matt@bodgit-n-scarper.com>

About: Reference
       - man 5 router.db

Each line represents a record consisting of a number of ';'-separated fields
the first of which is the IP/Hostname of the device, followed by the type, its
state and optionally a comment.

*)

module Rancid =
  autoload xfm

  let sep     = Util.del_str ";"
  let field   = /[^;#\n]+/
  let comment = [ label "comment" . store /[^;#\n]*/ ]
  let eol     = Util.del_str "\n"
  let record  = [ label "device" . store field . sep . [ label "type" . store field ] . sep . [ label "state" . store field ] . ( sep . comment )? . eol ]

  let lns = ( Util.empty | Util.comment_generic /#[ \t]*/ "# " | record )*

  let filter = incl "/var/rancid/*/router.db"
             . Util.stdexcl

  let xfm = transform lns filter

(* Local Variables: *)
(* mode: caml       *)
(* End:             *)

Youez - 2016 - github.com/yon3zu
LinuXploit