Author: Aaron D. Turner 
Email Address: aturner@pobox.com 
Web Page http://www.pobox.com/~aturner 
One-line summary of topic\question:

How do I get SATAN to compile\run on Linux?

Original date of FAQ topic: 9th of July 1997
Date FAQ topic was last modified: 9th of July 1997
Fully qualified question (if applicable):

I can't get SATAN to compile under Linux!  -and-
Now that I got it to compile, it won't work!  (Using Netscape)

Related Issues: Netscape & application/x-perl (.pl)
Related Links: 	http://www.linuxnow.com
		ftp://ftp.ssc.com/pub/lj/listings/issue40/2233.tgz
		ftp://ftp.wooddimensions.com/webserv/security/linux
Answer:

SATAN or Systems Administrators Tool for Analyzing Networks is a simple
tool to check for obvious security holes in your network.  A clean bill of
health from SATAN should not be considered proof that your network is
secure- there are still *many* holes that may be open.

First, I can not recommend any binary\RPM of SATAN.  There are good copies
available as well as trojanized versions out there.  Do yourself a favor
and take the extra time to get the source from a reputable source\sources
and compile it yourself.

I. With that said, you will need:

1) A realitively fast machine (CPU).
2) Perl 5 or greater
3) Web browser- Netscape is covered in this FAQ
4) gcc complier
5) SATAN 1.1.1 Linux pre-patched source (available on www.linuxnow.com)
-or-
SATAN 1.1.1 source & the following:
	tcp_scan patch: ftp://ftp.scc.com/pub/lj/listings/issue40/2233.tgz
	BSD-4.4 includes: ftp://ftp.wooddimenstion.com/webserv/security/linux

After you've patched SATAN, you'll need to un-tar.gz the BSD-4.4 includes
in the root of the SATAN source.

II. Now that you have source ready to compile, you'll want to read the
documentation for SATAN.  There are a few notes that you should be
aware of (like the $MOSAIC variable).  

III.  You did read the documentation didn't you?  Good, no run the
'reconfig' script.  However, bash (the default shell for root) doesn't
seem to like this script for some reason and won't spawn Perl.  The
easiest way to get around this is to type: 

perl reconfig

IV.  Everything should of compiled and you should now have a beautiful new
binary ready to run with the following command:

./satan

V.  Netscape

Netscape is the default browser for many installations, and it will work
great with Satan *if* you make one slight addition to the MIME section of
Netscape.  Under Options|General Preferences[tab]Helpers you'll need to
add\change:

application/x-perl  <no suffix>

if you have a suffix for this type (.pl for example) you will get an error
everytime you try to run SATAN.
