Page 1 of 1

Metasploit doesn't work

PostPosted: Apr 19th, '14, 12:16
by schroedingerscat
Hello everybody

I've tried to run Metasploit yesterday (to show to my father that Windows XP is not secure:)). But I'm always getting errors:

Code: Select all
$ msfconsole                                                                                                                                                                                   
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- iconv (LoadError)                                                                                               
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'                                                                                                                               
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'                                                                                                                                                 
        from /usr/share/metasploit/lib/zip/zip.rb:3:in `<top (required)>'                                                                                                                                         
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'                                                                                                                               
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'                                                                                                                               
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'                                                                                                                                                 
        from /usr/share/metasploit/lib/zip.rb:1:in `<top (required)>'                                                                                                                                             
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'                                                                                                                               
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'                                                                                                                               
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'                                                                                                                                                 
        from /usr/share/metasploit/lib/msf/core/db.rb:27:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'
        from /usr/share/metasploit/lib/msf/core/db_manager.rb:5:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'
        from /usr/share/metasploit/lib/msf/core/framework.rb:69:in `<class:Framework>'
        from /usr/share/metasploit/lib/msf/core/framework.rb:13:in `<module:Msf>'
        from /usr/share/metasploit/lib/msf/core/framework.rb:5:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'
        from /usr/share/metasploit/lib/msf/core.rb:34:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'
        from /usr/share/metasploit/lib/msf/ui/console/driver.rb:2:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'
        from /usr/share/metasploit/lib/msf/ui/console.rb:11:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'
        from /usr/share/metasploit/lib/msf/ui.rb:11:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/metasploit/lib/fastlib.rb:374:in `require'
        from /usr/bin/msfconsole:136:in `<main>'


How can I avoid this error?

Have a nice weekend
schroedingerscat

Re: Metasploit doesn't work

PostPosted: Apr 19th, '14, 16:21
by daniewicz
Did you install this software using the Mageia Control Center?

Re: Metasploit doesn't work

PostPosted: Apr 19th, '14, 19:51
by doktor5000
Probably - it throws the same errors here, also the GUI can be started but there are some Java issues starting the RPC server.
Probably some dependencies are missing, but basically the package seems completely broken currently.

Re: Metasploit doesn't work

PostPosted: Apr 19th, '14, 20:04
by doktor5000

Re: Metasploit doesn't work

PostPosted: Apr 19th, '14, 22:39
by pete910
Easiest solution is to use pen test distro TBH,

This one been the most prevalent http://www.kali.org/ Used to be called Backtrack.

Re: Metasploit doesn't work

PostPosted: Apr 20th, '14, 10:54
by schroedingerscat
OK thank you very much. I thought those packages get intensively tested before release... Although, I'm happy I could contribute a little bit to this wonderful and best of all distros. :) I've heard of Kali, but I wanted to try it with Mageia, as it's my primary system. Now I will have to install it. No problem.

EDIT: I would be glad if someone could post when the bug is solved.
Have a nice weekend!
schroedingerscat

Re: Metasploit doesn't work

PostPosted: Apr 20th, '14, 14:31
by doktor5000
schroedingerscat wrote:EDIT: I would be glad if someone could post when the bug is solved.

That can only be solved by the metasploit developers, when they upgrade all of metasploit to work with newer ruby > 1.9.

But installing metasploit isn't that hard, you can easily install an older ruby only for your user via rvm,
then download metasploit and it will install the rest itself, it's pretty self-explanatory.
I'm currently doing that in the background and can post a short guide once I'm done.