Processing
 

Can't load Metasploit after installation

19/08/2014 20:18#1

Joined at: 7 months ago

Post: 2

Thank: 0

Thanked: 0

After istallation of Metaploit via darkoperator/MSF-Installer try to start the msfconsole and it return:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- /usr/local/bin/config/boot (LoadError)     from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'     from /usr/local/bin/msfconsole:23:in `<main>' 

using:

Linux ubuntu 3.13.0-32-generic  

Have someone an idea?

22/10/2014 14:28Top#2

Joined at: 7 months ago

Post: 2

Thank: 0

Thanked: 0

For me it helped following:

sudo chmod o+r /var/lib/gems/1.9.1/gems/robots-0.10.1/lib/robots.rb

after that user is able to run metasploit.

21/12/2014 23:48Top#3

Phil L.

Member

Joined at: 8 months ago

Post: 3

Thank: 0

Thanked: 0

As user4170357 but with a slight difference due to: Mac OS X 10.9.5

to fix, run:

sudo chmod o+r /Library/Ruby/Gems/2.0.0/gems/robots-0.10.1/lib/robots.rb 

(path is a little bit different than original answer)

19/08/2014 21:22Top#4

Joined at: 7 months ago

Post: 2

Thank: 0

Thanked: 0

From http://techlogbook.wordpress.com/2014/08/19/installing-metasploit-on-xubuntu-14-04/

$ msfconsole /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- /usr/local/bin/config/boot (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /usr/local/bin/msfconsole:23:in `'

What I did was to edit /usr/local/bin/msfconsole line 23, and replace that line with: require File.expand_path('/usr/local/share/metasploit-framework/config/boot.rb', __FILE__)

Make sure that the path for config/boot.rb is correct for your system.

Now, when I run msfconsole again, it gives me some warning of missing permission to write some log file. Rails Error: Unable to access log file. Please ensure that /usr/local/share/metasploit-framework/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.

So I need to create the directory and make sure it is accessible.

$ cd /usr/local/share/metasploit-framework/

$ mkdir log

$ chmod 777 log

Now, I can run msfconsole. Before reaching the prompt, however, I got the following warning:

[-] WARNING! The following modules could not be loaded!

[-] /usr/local/share/metasploit-framework/modules/auxiliary/scanner/smb/smb_login.rb: LoadError cannot load such file -- robots`

Maybe that can help you get started

17/09/2014 05:58Top#5

AK_

Member

Joined at: 9 months ago

Post: 7

Thank: 0

Thanked: 0

This is a bug in the kernel where file-system becomes read-only or inaccessible randomly. Read more here.

To fix Just reboot and it will be fixed.

19/07/2016 20:55Top#6

Joined at: 6 months ago

Post: 1

Thank: 0

Thanked: 0

this might be becuase you bundled or installed metasploit as root you might need to get root access to run metasploit

Similar articles

Non-interactive method for dpkg-reconfigure tzdata

5 years ago - Reply: 3 - Views: 140

monit is not able to read mongod.lock

2 years ago - Reply: 3 - Views: 138

Ubuntu: hadoop command not found

2 years ago - Reply: 4 - Views: 244

C# Mono Console.ReadLine quitting

4 years ago - Reply: 1 - Views: 87

linking jsoncpp on Ubuntu

2 years ago - Reply: 1 - Views: 5

Build artifacts over ssh jenkins - PHP

2 years ago - Reply: 1 - Views: 37

Can't load Metasploit after installation

2 years ago - Reply: 5 - Views: 212

Selenium FirefoxDriver in Headless get error

2 years ago - Reply: 1 - Views: 96

Unable to start MongoDB. ERROR: addr already in use

2 years ago - Reply: 2 - Views: 118

ZSH Agnoster Theme showing machine name

2 years ago - Reply: 4 - Views: 248

Unable to start firefox browser with jenkins user

2 years ago - Reply: 2 - Views: 110

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re