Installing Dradis on CentOS 7

If your answer is not here the Community Forums are your best bet.

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.

CentOS 7 Base

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.

Installing the Dependencies

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

Install redis:

sudo yum install redis

Start redis:

sudo service redis start

Verify redis is running:

redis-cli ping

You should see the response PONG.

Configure the Firewall for Dradis

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 TCP:3000.

sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent
sudo firewall-cmd --reload

Create the Dradis User

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

Installing RBENV on CentOS 7

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

Installing Ruby 2.2.2

rbenv install -v 2.2.2
rbenv global 2.2.2

Check the right version of ruby is installed:

ruby -v

If you don't want / need Ruby docs (slows down build process) you can disable it using:

echo "gem: --no-document" > ~/.gemrc

Install bundler:

gem install bundler

Clone Dradis GitHub

You're ready to follow the steps in the Installing Dradis from Git guide.




About this guide

The original version of this guide was contributed by Aptive.




Next? Check out the rest of the Dradis Community guides.




Seven Strategies To Differentiate Your Cybersecurity Consultancy

You don’t need to reinvent the wheel to stand out from other cybersecurity consultancies. Often, it's about doing the simple things better, and clearly communicating what sets you apart.

  • Tell your story better
  • Improve your testimonials and case studies
  • Build strategic partnerships

Your email is kept private. We don't do the spam thing.