Saturday, 17 March 2012

getting yaptest to run under ubuntu

So here are some (hopefully complete) notes I have made over the last few hours trying to get yaptest running

after downloading yaptest from pentestmonkey.net
untar etc
and get that made and installed

next you need to get postgres up and running
so you need to be root
apt-get install postgresql

dont forget to start it /etc/init.d/postgres start

You also need a bunch of perl modules
apt-get install libdbd-pg-perl
apt-get install libparallel-forkmanager-perl
apt-get install libdigest-md4-perl
apt-get install libxml-simple-perl


change the pg_hba_conf file too for postgres

change the following lines at the bottom of the file
(/etc/postgresql/9.1/main/pg_hba.conf)
# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
# IPv6 local connections:

host    all         all         ::1/128               trust

Remember to restart your postgres server ;)

apt-get install pgadmin3
you will need to use this connect to the 127.0.0.1 database, find the yaptest_user under the login roles and give them create db privilages.

you can now run yaptest-wizard.pl to create the database and run yaptest as normal.

ldapsearch is provided by ldap-utils in ubuntu

No comments: