#!/bin/bash

# this sources bashlib into your current environment
. /usr/local/lib/bashlib

  echo "Content-type: text/html"
  echo ""

  # OK, so we've sent the header... now send some content
  echo "<html><title>Crack This Server</title><body>"

  # print a "hello" if the username is filled out
  username=`param name`
  if [ "$username" != "" ] ; then
      echo "<h1>Hello, $username</h1>"
  fi

  echo "<h2>Users on `/bin/hostname`</h2>"
  echo "<ul>"

  echo "</body></html>"