home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / SATAN11.ZIP / RULES / SERVICES < prev    next >
Text File  |  1995-04-03  |  2KB  |  50 lines

  1. #
  2. # Rules that classify hosts by service. These are applied to every 'a' SATAN
  3. # record. Basically, they translate the cryptic SATAN record data to something
  4. # that is more suitable for reports.
  5. #
  6. # Format of this file is:
  7. #
  8. #    class_name
  9. #    condition TABs service_name TABS host
  10. #
  11. # The class_name is SERVERS or CLIENTS.
  12. # The condition is a PERL expression, with full access to the global
  13. # $target..$text variables.
  14. #
  15. # The service_name field specifies a name such as "anonymous FTP" or
  16. # "NFS (diskless)".
  17. #
  18. # The host field specifies the host that takes or provides the service.
  19. # When no host is specified, $target is assumed.
  20. #
  21. # Empty lines and text after a "#" character are ignored. Long lines may
  22. # be broken with backslash-newline.
  23. #
  24.  
  25. SERVERS
  26.  
  27. $service eq "nntp"            NNTP (Usenet news)
  28. $service eq "ftp" && /ANONYMOUS/    Anonymous FTP
  29. /NIS server/                NIS
  30. /runs NFS| exports \S+ to /        NFS
  31. /mounts \S+ from (\S+)/            NFS            $1
  32. /offers domain/                DNS
  33. /\/root\/\S+ to \S+/            NFS (diskless)
  34. /offers gopher/                Gopher
  35. /offers http/                WWW
  36. /offers X-[0-9]+$/            X Windows
  37. $service eq "xdmcp"            XDM (X login)
  38. /telnet on port (\d+)/            Telnet on port $1
  39. /<title>/i && $service ne "http"    WWW (non-standard port)
  40. /0'QUIT'/ && $service ne "gopher"    Gopher (non-standard port)
  41. /220.*ftp server/i && $service ne "ftp"    FTP (non-standard port)
  42.  
  43. CLIENTS
  44.  
  45. /NIS client/                NIS
  46. /\/root\/\S+ to (\S+)/            NFS (diskless)        $1
  47. /exports \S+ to \(\S+\)/        NFS            $1
  48. /([^| ]+) mounts \S+ from \S+/        NFS            $1
  49.