Metasploit mailing list archives

cmd_portfwd


From: hdm at metasploit.com (H D Moore)
Date: Sun, 03 May 2009 09:40:17 -0500

On Sun, 2009-05-03 at 04:47 +0000, Augusto Pereyra wrote:
Now the code is this:

@class = Console::CommandDispatcher::Stdapi::Net.new
@class.cmd_portfwd("add -l 4445 -r 127.0.0.1 -p 3389")

And the error is the same.
[-] Error in script: wrong number of arguments (0 for 1)

Any suggestion?

You need to use an existing instance of a Meterpreter session instead of
trying to create a new one, unattached to any real target.

-HD



Current thread: