Metasploit doesn't work

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Metasploit doesn't work

Postby schroedingerscat » Apr 19th, '14, 12:16

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
schroedingerscat
 
Posts: 20
Joined: Mar 19th, '14, 19:33

Re: Metasploit doesn't work

Postby daniewicz » Apr 19th, '14, 16:21

Did you install this software using the Mageia Control Center?
The dude abides.
User avatar
daniewicz
 
Posts: 224
Joined: Feb 10th, '13, 03:37

Re: Metasploit doesn't work

Postby doktor5000 » Apr 19th, '14, 19:51

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18070
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Metasploit doesn't work

Postby doktor5000 » Apr 19th, '14, 20:04

Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18070
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Metasploit doesn't work

Postby pete910 » Apr 19th, '14, 22:39

Easiest solution is to use pen test distro TBH,

This one been the most prevalent http://www.kali.org/ Used to be called Backtrack.
User avatar
pete910
 
Posts: 357
Joined: Jan 8th, '12, 18:53

Re: Metasploit doesn't work

Postby schroedingerscat » Apr 20th, '14, 10:54

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
schroedingerscat
 
Posts: 20
Joined: Mar 19th, '14, 19:33

Re: Metasploit doesn't work

Postby doktor5000 » Apr 20th, '14, 14:31

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18070
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest