This is a Step-by-step guide covering how to install Dradis on CentOS 7. Dradis is used for penetration tests and security reporting, helping testers format and produce reports faster and includes a number of security tool (nmap, metasploit, nessus, etc) import plugins to assist with this process.
A virtual machine with 2Gb of RAM assigned should be sufficient for the Dradis install.
A tutorial on how to install the base OS falls out of the scope of this guide, but a default minimal installation of CentOS 7 using the minimal ISO, is all that's required.
In order to install Dradis on CentOS there are a few packages that we will need, run the following commands using sudo or the superuser account for your VM:
Install the EPEL repository:
sudo yum install epel-release -y
Install dependencies from YUM:
sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel \ libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel \ mariadb-server mariadb-devel
sudo yum install redis
sudo service redis start
Verify redis is running:
You should see the response
Assuming you want to access your instance of Dradis from other machines on
the network you will need to configure the Firewall to allow connections on
the default port
sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent sudo firewall-cmd --reload
Only use the root account when necessary, create a user to run your Dradis server:
sudo useradd dradis
Use the dradis user account:
sudo su - dradis
cd git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile exec $SHELL
Logout of the user and back in again to insure the environment variables have updated:
exit su - dradis
rbenv install -v 2.2.2 rbenv global 2.2.2
Check the right version of ruby is installed:
If you don't want / need Ruby docs (slows down build process) you can disable it using:
echo "gem: --no-document" > ~/.gemrc
gem install bundler
You're ready to follow the steps in the Installing Dradis from Git guide.