home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SATAN11.ZIP / HTML / ADMIN / SATAN_CF.PL
Encoding:
Text File  |  1995-04-09  |  5.3 KB  |  175 lines

  1. #
  2. # Display a FORM to select default config options to give the user
  3. # control over the knobs and dials
  4.  
  5. #
  6. # First figure out what radio buttons etc. should be "on". Note: the
  7. # variables below are global. Perhaps we should hide in our own package
  8. # name space.
  9. #
  10. @cf_attack_level = ();    $cf_attack_level[$attack_level] = "checked";
  11. @cf_timeout = ();    $cf_timeout[$timeout] = "checked";
  12. @cf_sub_zero = ();    $cf_sub_zero[$sub_zero_proximity] = "checked";
  13. @cf_attack_proximate = ();
  14.     $cf_attack_proximate[$attack_proximate_subnets] = "checked";
  15. @cf_dont_nslookup = ();    $cf_dont_nslookup[$dont_use_nslookup] = "checked";
  16. @cf_dont_ping = ();    $cf_dont_ping[$dont_use_ping] = "checked";
  17. @cf_untrusted = ();    $cf_untrusted[$untrusted_host] = "checked";
  18.  
  19. print CLIENT <<EOF
  20. <HTML>
  21. <HEAD>
  22. <TITLE>SATAN Configuration Management</TITLE>
  23. <LINK REV="made" HREF="mailto:satan\@fish.com">
  24. </HEAD>
  25. <BODY>
  26.  
  27. <IMG SRC=$HTML_ROOT/images/satan.gif>
  28. <H1>SATAN Configuration Management</H1>
  29. <HR>
  30.  
  31. <FORM METHOD=POST ACTION=satan_cf_action.pl>
  32.  
  33. <H2>Scanning levels and timeouts</H2>
  34.  
  35. <STRONG>What directory should I store the data in?</STRONG>
  36. <DL compact>
  37. <DT><DD><INPUT SIZE=25 NAME=satan_data VALUE=$satan_data>
  38. Satan data directory
  39. </DL>
  40. <P>
  41.  
  42. <STRONG>What probe level should I use?</STRONG>
  43. <DL compact>
  44. <DT><DD><INPUT TYPE="radio" NAME=attack_level VALUE=0 $cf_attack_level[0]>
  45. Light
  46. <DT><DD><INPUT TYPE="radio" NAME=attack_level VALUE=1 $cf_attack_level[1]>
  47. Normal
  48. <DT><DD><INPUT TYPE="radio" NAME=attack_level VALUE=2 $cf_attack_level[2]>
  49. Heavy
  50. </DL>
  51.  
  52. <P>
  53. <STRONG>What timeout values should I use?</STRONG>
  54. <DL compact>
  55. <DT><DD><INPUT SIZE=3 NAME=long_timeout VALUE=$long_timeout> Slow
  56. <DT><DD><INPUT SIZE=3 NAME=med_timeout VALUE=$med_timeout> Medium
  57. <DT><DD><INPUT SIZE=3 NAME=short_timeout VALUE=$short_timeout> Fast
  58. </DL>
  59.  
  60. <P>
  61. <STRONG>What signal should I send to kill a tool process when it times out?</STRONG>
  62. <DL compact>
  63. <DT><DD><INPUT SIZE=3 NAME=timeout_kill VALUE=$timeout_kill>Kill signal
  64. </DL>
  65.  
  66. <P>
  67. <STRONG>How far out from the original target should I probe?</STRONG>
  68. (Under no circumstances should this be higher than "2" unless you're
  69. POSITIVE you know what you're doing!)
  70. <DL compact>
  71. <DT><DD><INPUT SIZE=3 NAME=max_proximity_level VALUE=$max_proximity_level>
  72. Maximal proximity
  73. </DL>
  74.  
  75. <P>
  76. <STRONG>As I move out to less proximate hosts, how much should I drop
  77. the probe level?</STRONG>
  78. <DL compact>
  79. <DT><DD><INPUT SIZE=3 NAME=proximity_descent VALUE=$proximity_descent>
  80. Proximity descent
  81. </DL>
  82.  
  83. <P>
  84. <STRONG>When I go below 0 probe level, should I:</STRONG>
  85. <DL compact>
  86. <DT><DD><INPUT TYPE="radio" NAME=sub_zero_proximity VALUE=0 $cf_sub_zero[0]>Stop
  87. <DT><DD><INPUT TYPE="radio" NAME=sub_zero_proximity VALUE=1 $cf_sub_zero[1]>Go on
  88. </DL>
  89.  
  90. <P>
  91. <STRONG>Should I do subnet expansion; that is, should I probe just the
  92. target or its entire subnet?</STRONG>
  93. <DL compact>
  94. <DT><DD><INPUT TYPE="radio" NAME=attack_proximate_subnets VALUE=0
  95.     $cf_attack_proximate[0]>Just the target
  96. <DT><DD><INPUT TYPE="radio" NAME=attack_proximate_subnets VALUE=1
  97.     $cf_attack_proximate[1]>The entire subnet
  98. </DL>
  99.  
  100. <P>
  101. <STRONG>Does $THIS_HOST appear in <i>rhosts, hosts.equiv</i> or
  102. <i>NFS exports</i> files of hosts being probed?
  103. </STRONG>
  104.  
  105. <DL compact>
  106. <DT><DD><INPUT TYPE="radio" NAME=untrusted_host VALUE=0 $cf_untrusted[0]>
  107. You are running SATAN from a possibly trusted host
  108. <DT><DD><INPUT TYPE="radio" NAME=untrusted_host VALUE=1 $cf_untrusted[1]>
  109. You are running SATAN from an untrusted host
  110. </DL>
  111.  
  112. <HR>
  113.  
  114. <h2>Patterns specifying hosts to limit the probe to</h2>
  115.  
  116. If you only want to probe hosts within a specific domain, you could use,
  117. for example:
  118. <PRE>
  119.     podunk.edu
  120. </PRE>
  121. <p>
  122. If you only want to probe sites on a particular subnet, you could use,
  123. for example:
  124. <PRE>
  125.     192.9.9
  126. </PRE>
  127. <p>
  128. <INPUT SIZE=48 NAME=only_attack_these VALUE="$only_attack_these">
  129. <p>
  130. You can specify multiple shell-like patterns, separated by whitespace
  131. or commas, and you may mix networks and domains. A host will be
  132. scanned when it matches <i>any</i> pattern: either a network number prefix
  133. or an internet domain suffix.
  134.  
  135. <hr>
  136.  
  137. <h2>Patterns specifying hosts to NOT probe</h2>
  138.  
  139. If you don't want to probe any military or governmental sites, you could use:
  140. <PRE>
  141.     mil, gov
  142. </PRE>
  143. <p>
  144. <INPUT SIZE=48 NAME=dont_attack_these VALUE="$dont_attack_these">
  145. <p>
  146. You can specify multiple shell-like patterns, separated by whitespace
  147. or commas, and you may mix networks and domains. A host will be
  148. skipped when it matches <i>any</i> pattern: either a network number prefix
  149. or an internet domain suffix.
  150.  
  151. <hr>
  152.  
  153. <H2>Workarounds for broken DNS, ICMP etc.</H2>
  154.  
  155. <DL compact>
  156. <DT><DD><INPUT TYPE="radio" NAME="dont_use_nslookup" VALUE="0" $cf_dont_nslookup[0]>
  157. Use <i>nslookup</i> to look up fully-qualified (<i>host.domain</i>) host names
  158. <DT><DD><INPUT TYPE="radio" NAME="dont_use_nslookup" VALUE="1" $cf_dont_nslookup[1]>
  159. Don't use <i>nslookup</i>: DNS is unavailable.
  160. </DL>
  161.  
  162. <DL compact>
  163. <DT><DD><INPUT TYPE="radio" NAME="dont_use_ping" VALUE="0" $cf_dont_ping[0]>
  164. Ping hosts to see if they are alive (skip non-responding hosts).
  165. <DT><DD><INPUT TYPE="radio" NAME="dont_use_ping" VALUE="1" $cf_dont_ping[1]>
  166. Don't ping hosts: ICMP does not work.
  167. </DL>
  168.  
  169. <HR>
  170. <INPUT TYPE="submit" VALUE="Change the configuration file">
  171. </FORM>
  172. </BODY>
  173. </HTML>
  174. EOF
  175.