Difference between revisions of "Dradis: Instalasi di Ubuntu 16.04"

From OnnoWiki
Jump to navigation Jump to search
Line 14: Line 14:
 
  ruby bin/setup
 
  ruby bin/setup
  
##note: if you get an error when running ‘ruby bin/setup’ about the dradis-html_export plugin, re-run ‘ruby bin/setup’
+
Kalau ada error waktu running ‘ruby bin/setup’ tentang dradis-html_export plugin, re-run ‘ruby bin/setup’
##start the server to auto-create necessary directories
 
bundle exec rails server -b 0.0.0.0
 
##kill the process by pressing Control-C
 
##perform the following to edit the Nessus plugin template file to include severity
 
nano /opt/dradis-ce/templates/plugins/nessus/report_item.template
 
##add the following contents to report_item.template
 
#[Severity]#
 
%report_item.severity%
 
  
##create systemd service for server
+
==Start Server==
nano /lib/systemd/system/dradis-ce.service
 
##add the following contents to dradis-ce.service
 
[Unit]
 
Description=Service for starting Dradis-CE
 
  
[Service]
+
bundle exec rails server -b 0.0.0.0
Type=simple
 
WorkingDirectory=/opt/dradis-ce
 
ExecStart=/usr/local/bin/bundle exec rails server -b 0.0.0.0
 
  
[Install]
+
Dradis akan membuat directory yang dibutuhkan
WantedBy=multi-user.target
+
Kill process tekan Control-C
  
##create systemd service for worker
+
##perform the following to edit the Nessus plugin template file to include severity
nano /lib/systemd/system/dradis-ce-worker.service
+
nano /opt/dradis-ce/templates/plugins/nessus/report_item.template
##add the following contents to dradis-ce-worker.service
 
[Unit]
 
Description=Service for starting Dradis-CE worker
 
  
[Service]
+
##add the following contents to report_item.template
Type=simple
+
#[Severity]#
WorkingDirectory=/opt/dradis-ce
+
%report_item.severity%
ExecStart=/usr/local/bin/bundle exec rake resque:work
 
  
[Install]
+
##create systemd service for server
WantedBy=multi-user.target
+
nano /lib/systemd/system/dradis-ce.service
 +
##add the following contents to dradis-ce.service
 +
[Unit]
 +
Description=Service for starting Dradis-CE
 +
 +
[Service]
 +
Type=simple
 +
WorkingDirectory=/opt/dradis-ce
 +
ExecStart=/usr/local/bin/bundle exec rails server -b 0.0.0.0
 +
 +
[Install]
 +
WantedBy=multi-user.target
  
##enable the services
+
##create systemd service for worker
systemctl enable dradis-ce.service
+
nano /lib/systemd/system/dradis-ce-worker.service
systemctl enable dradis-ce-worker.service
+
##add the following contents to dradis-ce-worker.service
 +
[Unit]
 +
Description=Service for starting Dradis-CE worker
 +
 +
[Service]
 +
Type=simple
 +
WorkingDirectory=/opt/dradis-ce
 +
ExecStart=/usr/local/bin/bundle exec rake resque:work
 +
 +
[Install]
 +
WantedBy=multi-user.target
  
##start the services
 
systemctl start dradis-ce.service
 
systemctl start dradis-ce-worker.service
 
  
##using a web browser, nagivate to the setup page by using the IP address or hostname of the system on port 3000
+
##enable the services
###note: if you get an error page make sure you’re going to the /setup page. for some reason it doesn’t appear to work using the hostname and navigating to the root before setup is completed.
+
systemctl enable dradis-ce.service
 +
systemctl enable dradis-ce-worker.service
 +
 +
##start the services
 +
systemctl start dradis-ce.service
 +
systemctl start dradis-ce-worker.service
 +
 +
##using a web browser, nagivate to the setup page by using the IP address or hostname of the system on port 3000
 +
###note: if you get an error page make sure you’re going to the /setup page. for some reason it doesn’t appear to work using the hostname and navigating to the root before setup is completed.
  
http:// IP or hostname:3000/setup
+
http:// IP or hostname:3000/setup
  
##done!
+
##done!

Revision as of 05:16, 16 May 2018

Instalasi aplikasi pendukung

nano /etc/apt/sources.list
apt update
apt install -y openssh-server
apt-get install -y git redis-server ruby ruby-dev gcc make zlib1g-dev libsqlite3-dev libmysqlclient-dev g++

Install Dradis

cd /opt
###note: when I view this post there is a “1” added to the end of the git url. be sure not to include that
git clone https://github.com/dradis/dradis-ce 25
cd /opt/dradis-ce
ruby bin/setup

Kalau ada error waktu running ‘ruby bin/setup’ tentang dradis-html_export plugin, re-run ‘ruby bin/setup’

Start Server

bundle exec rails server -b 0.0.0.0

Dradis akan membuat directory yang dibutuhkan Kill process tekan Control-C

##perform the following to edit the Nessus plugin template file to include severity
nano /opt/dradis-ce/templates/plugins/nessus/report_item.template
##add the following contents to report_item.template
#[Severity]#
%report_item.severity%
##create systemd service for server
nano /lib/systemd/system/dradis-ce.service
##add the following contents to dradis-ce.service
[Unit]
Description=Service for starting Dradis-CE

[Service]
Type=simple
WorkingDirectory=/opt/dradis-ce
ExecStart=/usr/local/bin/bundle exec rails server -b 0.0.0.0

[Install]
WantedBy=multi-user.target
##create systemd service for worker
nano /lib/systemd/system/dradis-ce-worker.service
##add the following contents to dradis-ce-worker.service
[Unit]
Description=Service for starting Dradis-CE worker

[Service]
Type=simple
WorkingDirectory=/opt/dradis-ce
ExecStart=/usr/local/bin/bundle exec rake resque:work

[Install]
WantedBy=multi-user.target


##enable the services
systemctl enable dradis-ce.service
systemctl enable dradis-ce-worker.service

##start the services
systemctl start dradis-ce.service
systemctl start dradis-ce-worker.service

##using a web browser, nagivate to the setup page by using the IP address or hostname of the system on port 3000
###note: if you get an error page make sure you’re going to the /setup page. for some reason it doesn’t appear to work using the hostname and navigating to  the root before setup is completed.
http:// IP or hostname:3000/setup
##done!