-
Notifications
You must be signed in to change notification settings - Fork 130
Installing Hashview on Alternate Distros
Note: Only the sections that differ will be documented here.
Users have recently reported some inconsistencies with the Kali installation instructions. These instructions need updating. For the mean time, reference @whoot notes in tix #468 along with these instructions.
- Download Hashcat
- Install the following packages
apt-get update
apt-get install redis-server libmariadbclient-dev-compat3
- Optimize database
sudo vim /etc/mysql/my.cnf
add the following lines at the END of the file
[mysqld]
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)
-
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"
- vim is not installed by default. Either install it or use nano.
- 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
- 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
- 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
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
Ubuntu 18.04 has not been fully tested. However, thanks to @dmaasland installation notes, here are some steps to get it working.
Note: this is still a work in progress
Openssl 1.1 will cause some issues. For the time being downgrade by doing:
apt-get install openssl1.0
rvm install ruby-2.2.2 -- --with-openssl-dir=/usr/lib/ssl1.0/
OR
a fresh install of rvm can sort out the openssl versioning issue.
MySQL: "Ubuntu 18.04 uses MySQL 5.7 which by default uses sockets for authentication and not passwords. Long story short: regular users cannot log in as root@localhost to MySQL. See: https://askubuntu.com/questions/766334/cant-login-as-mysql-user-root-from-normal-user-account-in-ubuntu-16-04"