Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Installing Hashview on Alternate Distros

i128 edited this page Jan 6, 2018 · 8 revisions

Note: Only the sections that differ will be documented here.


Kali Rolling

  1. Download Hashcat
  2. Install the following packages
apt-get update
apt-get install redis-server
  1. Optimize database
sudo vim /etc/mysql/conf.d/mysql.cnf

Add the following line under the [mysqld] section:

innodb_flush_log_at_trx_commit  = 0
innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_file_per_table=true

restart mysqld

sudo service mysql restart
  1. Install RVM (recommended)

    https://rvm.io/rvm/install

  2. Download Hashview

    git clone https://github.com/hashview/hashview

Install gems (from hashview directory)

Install ruby 2.2.2 via RVM (if using RVM (recommended))

rvm install ruby-2.2.2

Install dependencies

gem install bundler
bundle install
  1. Setup database connectivity

    cp config/database.yml.example config/database.yml vim config/database.yml

  2. Create database

    RACK_ENV=production rake db:setup

  3. Setup hashcat binary settings

    vim config/agent_config.json [edit] "hc_binary_path": "/path/to/hashcatbinary"

Debian 9

  1. vim is not installed by default. Either install it or use nano.
  2. In step 2 the libmysqlclient-dev is named 'default-libmysqlclient-dev' or just run:
    sudo apt-get install git mysql-server default-libmysqlclient-dev redis-server openssl
  3. The redis-server is started by default during install. Stop it and disable it from starting on boot:
sudo service redis-server stop  
sudo update-rc.d redis-server disable
  1. In step 3 you will need to add the '[mysqld]' section to my.cnf. Your edits to my.cnf should look like this:
[mysqld]
innodb_flush_log_at_trx_commit  = 0
innodb_file_format = Barracuda
innodb_large_prefix = 1
innodb_file_per_table=true

Centos (Amazon AMI)

Thanks to @recrudesce for documenting his steps:

So, I didn't install hashview onto a Debian box, so apt-get didn't exist etc etc. I installed onto an Amazon AMI, which has an OS based on CentOS and uses yum.

So, here's the issues I found, and here's how to overcome them !

sudo apt-get update
sudo apt-get install mysql-server libmysqlclient-dev redis-server openssl rake
[optional, but recommended]
mysql_secure_installation

OK, so libmysqlclient-dev doesn't exist, nor does redis-server. The first one is easy to fix, you just need to yum install mysql-devel.noarch. Second one is a little more complex - you need to download and run the script from https://gist.github.com/khelll/ff9461bfda8ebfdc488e (make sure you edit the version=3.2.0 line to be version=3.2.8 to get the latest version)

mysql_secure_installation will FAIL because it'll ask you for a root password, which you've not set up yet, so you need to start mysqld first via sudo service mysqld start and set a password via /usr/libexec/mysql55/mysqladmin -u root password 'newpassword' Then you can run mysql_secure_installation and enter the password you just set

my.cnf is in /etc/my.cnf not the location shown in the installation instructions.

USAGE: Other issues, the Setup asks you for the hashcat path, when actually it wants the binary name as well (ie not just the path). If you just put /opt/hashcat-3.30 in the box it'll fail to crack anything, you specifically have to put the binary name at the end of the path e.g. /opt/hashcat-3.30/hashcat64.bin