File: services

package info (click to toggle)
satan 1.1.1-18
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 1,440 kB
  • ctags: 1,425
  • sloc: ansic: 6,183; perl: 4,867; makefile: 328; sh: 221
file content (49 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download
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
42
43
44
45
46
47
48
49
#
# Rules that classify hosts by service. These are applied to every 'a' SATAN
# record. Basically, they translate the cryptic SATAN record data to something
# that is more suitable for reports.
#
# Format of this file is:
#
#	class_name
#	condition TABs service_name TABS host
#
# The class_name is SERVERS or CLIENTS.
# 
# The condition is a PERL expression, with full access to the global
# $target..$text variables.
#
# The service_name field specifies a name such as "anonymous FTP" or
# "NFS (diskless)".
#
# The host field specifies the host that takes or provides the service.
# When no host is specified, $target is assumed.
#
# Empty lines and text after a "#" character are ignored. Long lines may
# be broken with backslash-newline.
#

SERVERS

$service eq "nntp"			NNTP (Usenet news)
$service eq "ftp" && /ANONYMOUS/	Anonymous FTP
/NIS server/				NIS
/runs NFS| exports \S+ to /		NFS
/mounts \S+ from (\S+)/			NFS			$1
/offers domain/				DNS
/\/root\/\S+ to \S+/			NFS (diskless)
/offers gopher/				Gopher
/offers http/				WWW
/offers X-[0-9]+$/			X Windows
$service eq "xdmcp"			XDM (X login)
/telnet on port (\d+)/			Telnet on port $1
/<title>/i && $service ne "http"	WWW (non-standard port)
/0'QUIT'/ && $service ne "gopher"	Gopher (non-standard port)
/220.*ftp server/i && $service ne "ftp"	FTP (non-standard port)

CLIENTS

/NIS client/				NIS
/\/root\/\S+ to (\S+)/			NFS (diskless)		$1
/exports \S+ to \(\S+\)/		NFS			$1
/([^| ]+) mounts \S+ from \S+/		NFS			$1