Metasploit mailing list archives

cmd_portfwd


From: aepereyra at gmail.com (Augusto Pereyra)
Date: Sun, 3 May 2009 19:02:45 -0300

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

Thanks by the previous answer.

Im using this test script over an existing session of meterpreter
attached to a real target

I have metasploit in a backtrack3 and the victim machine is a winxp

Best Regard
Augusto Pereyra


Current thread: