dirtyfilthy / metassh

ssh session type for metasploit
97 stars 24 forks source link

Problem using the plugin #8

Open madmantm opened 12 years ago

madmantm commented 12 years ago

hello, i'm trying to use metassh but it seems i'm getting issues, thanks

msf > load meta_ssh [+] Added 2 Exploit modules for metaSSH [*] Successfully loaded plugin: metaSSH msf > use multi/ssh/login_password [-] Error while running command use: Failed to instantiate the platform list for module Msf::Module::Platform::Solaris

Call stack: /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform.rb:146:in find_portion' /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform.rb:61:infind_platform' /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform_list.rb:55:in initialize' /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform_list.rb:53:ineach' /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform_list.rb:53:in initialize' /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform_list.rb:40:innew' /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform_list.rb:40:in from_a' /opt/metasploit-4.4.0/msf3/lib/msf/core/module/platform_list.rb:30:intransform' /opt/metasploit-4.4.0/msf3/lib/msf/core/module.rb:139:in initialize' /opt/metasploit-4.4.0/msf3/lib/msf/core/exploit.rb:368:ininitialize' /opt/metasploit-4.4.0/msf3/lib/msf/core/exploit.rb:253:in initialize' /opt/metasploit-4.4.0/msf3/plugins/meta_ssh/modules/exploits/multi/ssh/login_password.rb:36:ininitialize' /opt/metasploit-4.4.0/msf3/lib/msf/core/module_manager.rb:93:in new' /opt/metasploit-4.4.0/msf3/lib/msf/core/module_manager.rb:93:increate' /opt/metasploit-4.4.0/msf3/lib/msf/core/module_manager.rb:363:in create' /opt/metasploit-4.4.0/msf3/lib/msf/ui/console/command_dispatcher/core.rb:2156:incmd_use' /opt/metasploit-4.4.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:420:in send' /opt/metasploit-4.4.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:420:inrun_command' /opt/metasploit-4.4.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:382:in run_single' /opt/metasploit-4.4.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:ineach' /opt/metasploit-4.4.0/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in run_single' /opt/metasploit-4.4.0/msf3/lib/rex/ui/text/shell.rb:200:inrun' ./msfconsole:143

thanks

dirtyfilthy commented 12 years ago

hey there. i just downloaded the latest metasploit from the git repo, installed meta_ssh and everything worked fine, so i think the issue is just with your install. grab a clean version of metasploit and tell me if it still happens

madmantm commented 12 years ago

hey, thanks, i tried installing it with git, and the installer on the website and i still get the same issue...

it's funny i installed it a couple of times already, can you tell me how you installed msf, maybe i'm getting something wrong in the process...

On Wed, Jul 25, 2012 at 8:01 PM, dirtyfilthy < reply@reply.github.com

wrote:

hey there. i just downloaded the latest metasploit from the git repo, installed meta_ssh and everything worked fine, so i think the issue is just with your install. grab a clean version of metasploit and tell me if it still happens


Reply to this email directly or view it on GitHub: https://github.com/dirtyfilthy/metassh/issues/8#issuecomment-7265932

Marc-André Meloche

dirtyfilthy commented 12 years ago

just git clone https://github.com/rapid7/metasploit-framework.git

madmantm commented 12 years ago

Yeah, i did that, i will check again and reply in this thread.

Thanks for your help

On Wed, Jul 25, 2012 at 9:49 PM, dirtyfilthy < reply@reply.github.com

wrote:

just git clone https://github.com/rapid7/metasploit-framework.git


Reply to this email directly or view it on GitHub: https://github.com/dirtyfilthy/metassh/issues/8#issuecomment-7267330

Marc-André Meloche

dirtyfilthy commented 12 years ago

hey man, there is no msf3 dir in the latest version of metasploit so whatever you're doing you're not running the latest version

madmantm commented 12 years ago

well what version do you have, the msf3 directory is from the rapid7 installer package, and with the git clone i get the same issue.

   =[ metasploit v4.4.0-release [core:4.4 api:1.0]

msf > load meta_ssh [+] Added 2 Exploit modules for metaSSH [*] Successfully loaded plugin: metaSSH msf > use multi/ssh/login_password [-] Error while running command use: Failed to instantiate the platform list for module Msf::Module::Platform::Solaris

Call stack: /opt/metasploit-framework/lib/msf/core/module/platform.rb:146:in find_portion' /opt/metasploit-framework/lib/msf/core/module/platform.rb:61:infind_platform' /opt/metasploit-framework/lib/msf/core/module/platform_list.rb:55:in initialize' /opt/metasploit-framework/lib/msf/core/module/platform_list.rb:53:ineach' /opt/metasploit-framework/lib/msf/core/module/platform_list.rb:53:in initialize' /opt/metasploit-framework/lib/msf/core/module/platform_list.rb:40:innew' /opt/metasploit-framework/lib/msf/core/module/platform_list.rb:40:in from_a' /opt/metasploit-framework/lib/msf/core/module/platform_list.rb:30:intransform' /opt/metasploit-framework/lib/msf/core/module.rb:139:in initialize' /opt/metasploit-framework/lib/msf/core/exploit.rb:370:ininitialize' /opt/metasploit-framework/lib/msf/core/exploit.rb:255:in initialize' /opt/metasploit-framework/plugins/meta_ssh/modules/exploits/multi/ssh/login_password.rb:36:ininitialize' /opt/metasploit-framework/lib/msf/core/module_manager.rb:93:in new' /opt/metasploit-framework/lib/msf/core/module_manager.rb:93:increate' /opt/metasploit-framework/lib/msf/core/module_manager.rb:363:in create' /opt/metasploit-framework/lib/msf/ui/console/command_dispatcher/core.rb:2156:incmd_use' /opt/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:420:in send' /opt/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:420:inrun_command' /opt/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:382:in run_single' /opt/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:376:ineach' /opt/metasploit-framework/lib/rex/ui/text/dispatcher_shell.rb:376:in run_single' /opt/metasploit-framework/lib/rex/ui/text/shell.rb:200:inrun' ./msfconsole:143

dirtyfilthy commented 12 years ago

ah sweet i can reproduce the issue -- only occurs in ruby 1.8, i'm running 1.9.3. I'll look at this in the coming week man, for now if you upgrade to a newer ruby version it should fix it.

madmantm commented 12 years ago

confirmed, i had the 1.8 installed and the 1.9.3, and as soon as i removed the 1.8, the plug-in works.

thanks for your help.

On Thu, Jul 26, 2012 at 9:27 AM, dirtyfilthy < reply@reply.github.com

wrote:

ah sweet i can reproduce the issue -- only occurs in ruby 1.8, i'm running 1.9.3. I'll look at this in the coming week man, for now if you upgrade to a newer ruby version it should fix it.


Reply to this email directly or view it on GitHub: https://github.com/dirtyfilthy/metassh/issues/8#issuecomment-7277450

Marc-André Meloche