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

01 Installing Hashview

ccammilleri edited this page Dec 8, 2017 · 17 revisions

Before you begin

We only support Ubuntu 14.04 and 16.04. Hashview has been installed successfully on many different distros. If you are installing on an untested/unsupported distro, please see: Installing Hashview on alternate distros.


Download and install hashcat-3.x

https://hashcat.net/hashcat/

IMPORTANT: Confirm hashcat is working via command line before continuing

NOTE: We've only tested on debian installs, although CentOS (specifically as an AMI) are known to work. Follow these modifications here until we can incorporate them into the wiki.

Install mysql & Redis

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

Optimize the database

(on ubuntu 16.10 & 16.04 /etc/mysql/mysql.conf.d/mysqld.cnf)

sudo vim /etc/mysql/my.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

Install RVM (recommended)

https://rvm.io/rvm/install

Setup Hashview

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

Setup database connectivity

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

Create database

RACK_ENV=production rake db:setup

Setup hashcat binary settings

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

[Only for Dev branch] Set your path to your hashcat binary

Edit the 'hc_binary_path' variable in config/agent_config.json to the full path of the hashcat64.bin. Example of a config/agent_config.json file:

{
  "ip": "127.0.0.1",
  "port": "4567",
  "uuid": "0e566bcb-bb12-448f-a073-76e5b46c9cec",
  "hc_binary_path": "/home/meatball/hashcat-current/hashcat64.bin"
}

Running Hashview

See Running Hashview Wiki page.