legal contact
 

pwgen.cgi

sudo apt-get install pwgen
vi pwgen/pwgen.cgi

#!/bin/sh

echo "Content-type: text/plain\n"

echo "12 characters - use this for user accounts\n"

pwgen -BC 12

echo

echo "\n\n16 characters - use this for privileged accounts\n"

pwgen -BC 16

echo

echo "\n\n56 characters, complex - use this for service accounts\n"

pwgen -BCncs 56

And add this to your virtualhost part of the apache config

AddHandler cgi-script .cgi

ScriptAlias /pwgen/ "/var/www/paul-sec.com/pwgen/"

<Directory /var/www/paul-sec.com/pwgen/>

Options +Indexes +ExecCGI -MultiViews +SymLinksIfOwnerMatch

DirectoryIndex pwgen.cgi

</Directory>