hashview / hashview-old

A web front-end for password cracking and analytics
http://www.hashview.io
GNU General Public License v3.0
621 stars 134 forks source link

Openssl on Ubuntu 18.04 #417

Closed dmaasland closed 5 years ago

dmaasland commented 6 years ago

Hi Guys,

Just installed this on Ubuntu 18.04, but was unable to do so initially due to OpenSSL 1.1. For future reference, this fixed the install for me on Ubuntu 18.04 (with RVM):

edit hmm other problems now, might need some help with this one :):

RACK_ENV=production rake db:setup --trace
rake aborted!
ArgumentError: undefined class/module Digest::Class
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/openssl.rb:17:in `require'
/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/openssl.rb:17:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-3.3.2/lib/redis/connection/ruby.rb:8:in `require'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-3.3.2/lib/redis/connection/ruby.rb:8:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-3.3.2/lib/redis/connection.rb:9:in `require'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-3.3.2/lib/redis/connection.rb:9:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-3.3.2/lib/redis.rb:2775:in `require'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-3.3.2/lib/redis.rb:2775:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-namespace-1.5.2/lib/redis/namespace.rb:1:in `require'
/usr/local/rvm/gems/ruby-2.2.2/gems/redis-namespace-1.5.2/lib/redis/namespace.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-1.26.0/lib/resque.rb:2:in `require'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-1.26.0/lib/resque.rb:2:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-scheduler-4.3.0/lib/resque/scheduler/delaying_extensions.rb:2:in `require'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-scheduler-4.3.0/lib/resque/scheduler/delaying_extensions.rb:2:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-scheduler-4.3.0/lib/resque/scheduler/extension.rb:4:in `require_relative'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-scheduler-4.3.0/lib/resque/scheduler/extension.rb:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-scheduler-4.3.0/lib/resque-scheduler.rb:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-scheduler-4.3.0/lib/resque/scheduler/tasks.rb:4:in `require'
/usr/local/rvm/gems/ruby-2.2.2/gems/resque-scheduler-4.3.0/lib/resque/scheduler/tasks.rb:4:in `<top (required)>'
/home/user/tools/hashview/Rakefile:2:in `require'
/home/user/tools/hashview/Rakefile:2:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/application.rb:686:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/application.rb:96:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/application.rb:95:in `load_rakefile'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/application.rb:79:in `block in run'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/lib/rake/application.rb:77:in `run'
/usr/local/rvm/gems/ruby-2.2.2/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.2/bin/rake:23:in `load'
/usr/local/rvm/gems/ruby-2.2.2/bin/rake:23:in `<main>'
/usr/local/rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'
ccammilleri commented 6 years ago

thanks @dmaasland I've added these notes in the wiki: https://github.com/hashview/hashview/wiki/Installing-Hashview-on-Alternate-Distros#ubuntu-1804

Honestly, i'm not sure where to start with your error. My guess is its gem related and you might need to redo a bundle install. I'd start there and also verify with a gem list that you only have the required version gems. You can compare with the Gemfile.

dmaasland commented 6 years ago

Small update on this, I tried again from scratch (removing everything, etc.). Turns out rvm already sorts the OpenSSL 1.1 vs 1.0 issue for you, so those commands seem to be useless (perhaps for use without RVM, don't know :)).

However, when running "bundle install" it gave me a 403 error when downloading the "digest" gem (the same one that gave an error earlier). Turns out this gem is no longer available on rubygems for some reason. Commenting it out of the Gemfile seems to make everything work, however I can't really tell what the digest gem is used for.

Ps; 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

ccammilleri commented 5 years ago

Thanks @dmaasland for the update! We're trying to figure out a workaround for the digest gem. #419 without it you wont be able to perform clustering with other hashview agents.

I'm going to add your notes about 18.04 to the wiki.