Dradis: Instalasi di Ubuntu 16.04: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
Created page with "==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..."
 
Onnowpurbo (talk | contribs)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Instalasi aplikasi pendukung==
==Instalasi aplikasi pendukung==


sudo su
  nano /etc/apt/sources.list
  nano /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
sudo su
rm /var/lib/apt/lists/lock
  apt update
  apt update
  apt install -y openssh-server
  apt install -y openssh-server
  apt-get install -y git redis-server ruby ruby-dev gcc make zlib1g-dev libsqlite3-dev libmysqlclient-dev g++
  apt install -y git redis-server ruby ruby-dev gcc make zlib1g-dev libsqlite3-dev libmysqlclient-dev g++


==Install Dradis==


  cd /opt
  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
  git clone https://github.com/dradis/dradis-ce 25
 
  cd /opt/dradis-ce
  cd /opt/dradis-ce
  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
==Inisialisasi Directory yang dibutuhkan==
##kill the process by pressing Control-C
 
##perform the following to edit the Nessus plugin template file to include severity
bundle exec rails server -b 0.0.0.0
nano /opt/dradis-ce/templates/plugins/nessus/report_item.template
 
##add the following contents to report_item.template
Dradis akan membuat directory yang dibutuhkan.
#[Severity]#
Kill process tekan Control-C
%report_item.severity%
 
==Perbaiki Konfigurasi==
 
Edit Nessus plugin
 
vi /opt/dradis-ce/templates/plugins/nessus/report_item.template
 
Tambahkan di report_item.template
 
#[Severity]#
%report_item.severity%
 
 
Buat systemd service untuk server
 
vi /lib/systemd/system/dradis-ce.service
 
Tambahkan di 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 server
Buat systemd service untuk worker
nano /lib/systemd/system/dradis-ce.service
##add the following contents to dradis-ce.service
[Unit]
Description=Service for starting Dradis-CE


[Service]
vi /lib/systemd/system/dradis-ce-worker.service
Type=simple
WorkingDirectory=/opt/dradis-ce
ExecStart=/usr/local/bin/bundle exec rails server -b 0.0.0.0


[Install]
Tambahkan ke dradis-ce-worker.service
WantedBy=multi-user.target


##create systemd service for worker
[Unit]
nano /lib/systemd/system/dradis-ce-worker.service
Description=Service for starting Dradis-CE worker
##add the following contents to dradis-ce-worker.service
[Unit]
[Service]
Description=Service for starting Dradis-CE worker
Type=simple
WorkingDirectory=/opt/dradis-ce
ExecStart=/usr/local/bin/bundle exec rake resque:work
[Install]
WantedBy=multi-user.target


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


[Install]
systemctl enable dradis-ce.service
WantedBy=multi-user.target
systemctl enable dradis-ce-worker.service
Start Service


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


##start the services
Status Service
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
systemctl status dradis-ce.service
###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 status dradis-ce-worker.service


http:// IP or hostname:3000/setup
==Akses Dradis==


##done!
http://ipaddress:3000
http://ipaddress:3000/setup

Latest revision as of 03:24, 16 May 2018

Instalasi aplikasi pendukung

sudo su
nano /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse


sudo su
rm /var/lib/apt/lists/lock 
apt update
apt install -y openssh-server
apt install -y git redis-server ruby ruby-dev gcc make zlib1g-dev libsqlite3-dev libmysqlclient-dev g++

Install Dradis

cd /opt
git clone https://github.com/dradis/dradis-ce
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’

Inisialisasi Directory yang dibutuhkan

bundle exec rails server -b 0.0.0.0

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

Perbaiki Konfigurasi

Edit Nessus plugin

vi /opt/dradis-ce/templates/plugins/nessus/report_item.template

Tambahkan di report_item.template

#[Severity]#
%report_item.severity%


Buat systemd service untuk server

vi /lib/systemd/system/dradis-ce.service

Tambahkan di 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


Buat systemd service untuk worker

vi /lib/systemd/system/dradis-ce-worker.service

Tambahkan ke 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 service

systemctl enable dradis-ce.service
systemctl enable dradis-ce-worker.service

Start Service

systemctl start dradis-ce.service
systemctl start dradis-ce-worker.service

Status Service

systemctl status dradis-ce.service
systemctl status dradis-ce-worker.service

Akses Dradis

http://ipaddress:3000
http://ipaddress:3000/setup