HostedDB - Dedicated UNIX Servers

-->
Internet Security Professional Reference:SATAN and the Internet
Previous Table of Contents Next


The src/misc Directory

The md5 program is used to generate a pseudo-random 32-bit number that acts as a password. The html.pl server accepts only URL requests that include this value; this constitutes a sort of magic cookie security system. The rex program makes a simple request to the remote rexd to prove that access is possible. The rcmd program merely invokes the rcmd() call with the indicated parameters, namely the remote program to execute and the name of the remote system. The safe_finger program is a version of finger that prevents returning fingerd information from causing harm. Finally, the timeout program allows a user to run a command for a limited time.

This directory includes the following files:

  src/misc/Makefile. Makes all the file in this directory
  src/misc/global.h. Contains md5 header information
  src/misc/md5.c. Generates the 32 bit hash value that is used by SATAN as a password
  src/misc/md5.h. Contains include info for md5.c
  src/misc/md5c.c. Contains support code for md5.c
  src/misc/rex.c. Makes a simple request to rexd to prove that access is possible
  src/misc/timeout.c. Executes a command-line specified program with the command-line specified timeout
  src/misc/rex.x. Generates the RPC stub programs for rex.c
  src/misc/sys_socket.c. Replaces PERL’s socket.ph
  src/misc/rcmd.c. Executes the rcmd() call with the indicated parameters (acts like rsh/remsh replacement)
  src/misc/safe_finger.c. Protects the client system from dangers involved in running finger directly (a complete list of the precautions is included in the file)

The src/nfs-chk Directory

The src/nfs-chk directory contains the source for the nfs-chk binary, which attempts to mount an indicated file system from a particular server. This directory includes the following files:

  src/nfs-chk/Makefile
  src/nfs-chk/mount.x
  src/nfs-chk/nfs-chk.c
  src/nfs-chk/nfs_prot.x

The src/port_scan Directory

The src/port_scan directory contains the source for the tcp_scan and udp_scan programs. These two programs scan an indicated target over an indicated range of ports by attempting to connect to the ports on the target. This directory includes the following files:

  src/port_scan/README
  src/port_scan/error.c
  src/port_scan/find_addr.c
  src/port_scan/lib.h
  src/port_scan/strerror.c
  src/port_scan/mallocs.c
  src/port_scan/non_blocking.c
  src/port_scan/open_limit.c
  src/port_scan/print_data.c
  src/port_scan/ring.c
  src/port_scan/tcp_scan.1
  src/port_scan/tcp_scan.c
  src/port_scan/udp_scan.c
  src/port_scan/Makefile

The src/fping Directory

The src/fping directory contains the source for the fping program. This program is a replacement for the standard ping program and features the capability to more quickly scan a number of remote hosts to determine whether these hosts are alive.

This directory includes the following files:

  src/fping/README
  src/fping/CHANGES
  src/fping/fping.c
  src/fping/fping.man
  src/fping/Makefile
  src/fping/README.VMS
  src/fping/AUTHOR

The src/rpcgen Directory

The src/rpcgen contains the source for the rpcgen program, a utility created by Sun that creates rpc stub files based on an .x file. The rpcgen utility is shipped on many systems, but SATAN requires it to run, so the creators of SATAN included the source, just in case. The rpcgen program is used to compile the nfs-chk, boot, rex, and yp-chk programs.

This directory includes the following files:

  src/rpcgen/Makefile
  src/rpcgen/rpc_clntout.c
  src/rpcgen/rpc_cout.c
  src/rpcgen/rpc_hout.c
  src/rpcgen/rpc_main.c
  src/rpcgen/rpc_parse.c
  src/rpcgen/rpc_parse.h
  src/rpcgen/rpc_scan.c
  src/rpcgen/rpc_scan.h
  src/rpcgen/rpc_svcout.c
  src/rpcgen/rpc_util.c
  src/rpcgen/rpc_util.h
  src/rpcgen/README

The src/yp-chk Directory

The src/yp-chk directory contains the source for the NIS probe. The yp-chk program attempts to see if an NIS map is available and prints the first record of that map if it is available.

This directory includes the following files:

  src/yp-chk/Makefile
  src/yp-chk/yp.x
  src/yp-chk/yp-chk.c


Previous Table of Contents Next