How To Install hashrat on Debian 9
Introduction
In this tutorial we learn how to install hashrat on Debian 9.
What is hashrat
hashrat is:
Hashrat is a hash-generation utility that supports the md5, sha1, sha256, sha512, whirlpool, jh-244, jh256, jh-384 and jh-512 hash functions, and also the HMAC versions of those functions. It can output in ’traditional' format (same as md5sum and shasum and the like), or it’s own format.
Hashes can be output in octal, decimal, hexadecimal, uppercase hexadecimal or base64.
Hashrat also supports directory recursion, hashing entire devices, generating a hash for an entire directory, operations in remote machines and several other features. It has a ‘CGI’ mode that can be used as a web-page to lookup hashes.
This tool is useful in forensics investigations and network security.
There are three methods to install hashrat on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install hashrat Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install hashrat using apt-get by running the following command:
sudo apt-get -y install hashrat
Install hashrat Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install hashrat using apt by running the following command:
sudo apt -y install hashrat
Install hashrat Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install hashrat using aptitude by running the following command:
sudo aptitude -y install hashrat
How To Uninstall hashrat on Debian 9
To uninstall only the hashrat package we can use the following command:
sudo apt-get remove hashrat
Uninstall hashrat And Its Dependencies
To uninstall hashrat and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove hashrat
Remove hashrat Configurations and Data
To remove hashrat configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge hashrat
Remove hashrat configuration, data, and all of its dependencies
We can use the following command to remove hashrat configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge hashrat
Dependencies
hashrat have the following dependencies:
References
Summary
In this tutorial we learn how to install hashrat package on Debian 9 using different package management tools: apt, apt-get and aptitude.