Distributing Hashcat tasks to Multiple Computers

sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt upgrade -yq
sudo apt install -y php-gd php-pear lamp-server^
git clone https://github.com/s3inlc/hashtopolis.git
sudo mkdir /var/www/hashtopolis
sudo cp -r hashtopolis/src/* /var/www/hashtopolis
sudo chown -R www-data:www-data /var/www/hashtopolis
sudo mysql -uroot -e "create database hashtopolis;"
sudo mysql -uroot -e "GRANT ALL ON hashtopolis.* TO 'hashtopolis'@'localhost' identified by 'securePassword';"
sudo mysql -uroot -e "flush privileges;"
sudo nano /etc/apache2/sites-available/hashtopolis.lt.conf
<VirtualHost *:80>
ServerName hashtopolis.lt
DocumentRoot /var/www/hashtopolis
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
sudo sudo a2dissite 000-default
sudo a2ensite hashtopolis.lt
sudo systemctl reload apache2

Hashtopolis Installation

On a favorite browser, I entered domain address of my Linux machine. I see welcome and the installation page. In a step below I gave my database credentials.

sudo nano /etc/hosts
192.168.1.111  hashtopolis.lt
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt upgrade -yq
sudo apt install -y python3-pip zippip3 install requests psutil
curl http://hashtopolis.lt/agents.php?download=1 -so agent.zippython3 agent.zip
URL http://hashtopolis.lt/api/server.phpVoucher A11QA26Q
python3 agent.zip

Cleanup and security enhancements

On a server machine we can modify agent code:

sudo apt install -y python3-pip zipgit clone https://github.com/s3inlc/hashtopolis-agent-python
cd hashtopolis-agent-python/
pip3 install -r requirements.txt
bash build.shsudo cp hashtopolis.zip /var/www/hashtopolis/bin
sudo nano /etc/apache2/apache2.conf
KeepAliveTimeout 10
MaxKeepAliveRequests 1000
AllowOverride All
sudo systemctl reload apache2
sudo rm -r /var/www/hashtopolis/install
sudo mysql_secure_installation
Photo by Caspar Camille Rubin on Unsplash

Reference

#1 https://medium.com/@tomas_savenas/all-great-things-start-from-installing-ubuntu-9500873fec82
#2 https://medium.com/@tomas_savenas/testing-my-local-network-security-with-responder-caa1af10d2ca
#3 https://github.com/s3inlc/hashtopolis/wiki/Server-Prerequisites
#4 https://github.com/s3inlc/hashtopolis-agent-python
#5 https://hashtopolis.org

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tomas Savenas

Tomas Savenas

Kibernetinio saugumo entuziastas; Aktyviausias Lietuvis TryHackMe platformoje; Inovacijų valdymo ir Antreprenerystės Magistrantas @ KTU