Prowler is a Network Vulnerability Scanner implemented on a Raspberry Pi Cluster, first developed during Singapore Infosec Community Hackathon - HackSmith v1.0.
requirements.txt
/playbooks
)Key Python Packages:
dispy
(website) is the star of the show. It allows allows us to create a job queue that will be processed by the worker nodes.python-libnmap
is the python wrapper around nmap, an open source network scanner. It allows us to scan for open ports on devices.paramiko
is a python wrapper around SSH. We use it to probe SSH on devices to test for common credentials.eel
is used for the web dashboard (seperate repository, here)rabbitmq
(website) is used to pass the results from the cluster to the eel
server that is serving the dashboard page. For the playbooks to work, ansible
must be installed (sudo pip3 install ansible
). Configure the IP addresses of the nodes at /etc/ansible/hosts
.
WARNING: Your mileage may vary as these were only tested on my setup
shutdown.yml
and reboot.yml
self-explanatoryclone_repos.yml
clone prowler and dispy repositories (required!) on the worker nodessetup_node.yml
installs all required packages on the worker nodes. Does not clone the repositories!git clone https://github.com/tlkh/prowler.git
sudo pip3 install -r requirements.txt
on the controller Piansible-playbook playbooks/setup_node.yml
to install the required packages on worker nodes.ansible-playbook playbooks/clone_repos.yml
clusterhat on
on the controller Pi to ensure that all Pi Zeros are powered up.python3 cluster.py
on the controller Pi to start ProwlerTo edit the range of IP addresses being scanned, edit the following lines in cluster.py
:
test_range = []
for i in range(0, 1):
for j in range(100, 200):
test_range.append("172.22." + str(i) + "." + str(j))
pssh
and pssh -h pssh-hosts -l username -A -i "command"
compute.py
): cluster = dispy.JobCluster(compute, nodes='pi0_ip', ip_addr='pi3_ip')
ansible all -m ping
or ping p1.local -c 1 && ping p2.local -c 1 && ping p3.local -c 1 && ping p4.local -c 1
/opt/vc/bin/vcgencmd measure_temp && pssh -h workers -l pi -A -i "/opt/vc/bin/vcgencmd measure_temp" | grep temp
ABSOLUTELY NO WARRANTY WHATSOEVER! Feel free to submit issues though.