Metasploit mailing list archives

cmd_portfwd


From: aepereyra at gmail.com (Augusto Pereyra)
Date: Sun, 3 May 2009 04:47:00 +0000

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?

Thanks

Augusto Pereyra

On Wed, Apr 29, 2009 at 2:57 AM, Patrick Webster <patrick at aushack.com> wrote:
Just a guess... brackets?

cmd_portfwd("add -l etc")

-Patrick

On Tue, Apr 28, 2009 at 2:02 PM, Augusto Pereyra <aepereyra at gmail.com>
wrote:

Hi list:

Anyone can tell me how to use the class cmd_portfwd? I'm tryng to use
it in a meterpreter script to do some task automaticaly.
I know how use it in console calling the command portfwd
What's wrong in the following code used to test this class?

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

when i execute it in a meterpreter it showme the this:

[-] Error in script: wrong number of arguments (0 for 1)

Sorry if my english isn't clear

Best Regard
Augusto Pereyra
CISSP-CEH
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework




Current thread: