Metasploit mailing list archives

Re: Can't convert nil to String


From: "Ricardo F. Teixeira" <ricardo.teixas () gmail com>
Date: Thu, 28 Jan 2010 14:54:50 +0000

Joshua,

At least in Mac OS X to install rjb you need to set the JAVA_HOME variable.
Without that it will complain, so that was not the error :) But has you say
it has been fixed in r8288 :)

msf > use exploit/multi/browser/java_signed_applet
msf exploit(java_signed_applet) >

-- 
Ricardo F. Teixeira

uid:  0x5BBD1456

On Thu, Jan 28, 2010 at 8:15 AM, Joshua J. Drake <jdrake () metasploit com>wrote:

On Thu, Jan 28, 2010 at 01:49:24AM -0600, Joshua J. Drake wrote:
On Thu, Jan 28, 2010 at 01:20:20AM +0000, Ricardo F. Teixeira wrote:
I get this error after installing rjb and run java_signed_applet.
Maybe uninitialized variable or a null pointer dereference.

msf > version
Framework: 3.3.4-dev.8284
Console  : 3.3.4-dev.8065

msf > use exploit/multi/browser/java_signed_applet
[-] Error while running command use: can't convert nil into String

Call stack:
/opt/local/msf/lib/msf/core/exploit/java.rb:45:in `join'
/opt/local/msf/lib/msf/core/exploit/java.rb:45:in `init_jvm'
/opt/local/msf/lib/msf/core/exploit/java.rb:33:in `initialize'
(eval):97:in `initialize'
/opt/local/msf/lib/msf/core/module_manager.rb:91:in `new'
/opt/local/msf/lib/msf/core/module_manager.rb:91:in `create'
/opt/local/msf/lib/msf/core/module_manager.rb:366:in `create'
/opt/local/msf/lib/msf/ui/console/command_dispatcher/core.rb:1619:in
`cmd_use'
/opt/local/msf/lib/rex/ui/text/dispatcher_shell.rb:239:in `send'
/opt/local/msf/lib/rex/ui/text/dispatcher_shell.rb:239:in `run_command'
/opt/local/msf/lib/rex/ui/text/dispatcher_shell.rb:201:in `run_single'
/opt/local/msf/lib/rex/ui/text/dispatcher_shell.rb:195:in `each'
/opt/local/msf/lib/rex/ui/text/dispatcher_shell.rb:195:in `run_single'
/opt/local/msf/lib/rex/ui/text/shell.rb:144:in `run'
/opt/local/msf/msfconsole:92
msf >

Ricardo,

This is fixed in r8288.

After a closer look, it looks like you might not have had JAVA_HOME
set properly in your environment before running msf..

I added an additional check in r8289 so that the error message makes
more sense.

--
Joshua J. Drake
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework

Current thread: