Saturday, March 31, 2018

Part 2 - Discovering Clusters of Vulnerabilities

tl;dr

Not sure if the RabbitMQ Server is supposed to be installed on the RPi Controller, but I'm trying it anyway.

Installing RabbitMQ

First, we need to download a few files:
Open a terminal and download the latest package for the Raspbian

sudo -s
cd /home/pi/Downloads
wget -c https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb
wget -c https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.4/rabbitmq-server_3.7.4-1_all.deb

Install the dependencies

apt-get install socat logrotate

Now install the erlang

dpkg -i esl-erlang_20.1.7-1~raspbian~stretch_armhf.deb

Now install the RabbitMQ server

dpkg -i rabbitmq-server_3.7.4-1_all.deb

Install any missing packages, then, reboot the RPi

Configure the Management Console

Open a terminal and enter the following commands, replacing variables (denoted by brackets) with actual values:

sudo -s
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl add_user pi clusterhat
rabbitmqctl set_user_tags pi administrator
rabbitmqctl set_permissions -p / pi ".*" ".*" ".*"

The above commands will perform the following actions:
  • Enable the management console
  • Create a new user for authenticated connections
  • Gives the new user administrator privileges
  • Gives the new user full control of exchanges/queues
Once this is complete, you can now access the management console by opening a browser and navigating to the RPi Controller's internal IP address, with the port 15672 (i.e., https://192.168.1.1:15672).

Dashboard

Open a terminal and git a clone of the dashboard

sudo -s
cd /home/pi
git clone https://github.com/tlkh/prowler-dashboard.git

Now run the dashboard, from the terminal:

cd /home/pi/prowler-dashboard
python3 app.py


No comments:

Post a Comment