Metasploit mailing list archives
multicommand and rc file issues
From: Miguel Rios <miguelrios35 () yahoo com>
Date: Tue, 14 Dec 2010 10:31:07 -0800 (PST)
Hi, Just tried to use multicommand to have it execute a file on the XP target. When I do it through the command line (ie meterpreter > run multicommand -cl "cmd.exe /c start %TEMP%/calc.exe") it executes without a hitch. When I try the same using a resource file I get this error: meterpreter > run multicommand -rc /etc/meta/execute.rc [-] Error in script: NoMethodError undefined method `<<' for nil:NilClass In my execute.rc file I have just one line and nothing else: "cmd.exe /c start %TEMP%/calc.exe" (I have tried with and without the quotes and I always get the NilClass error) Am I doing something silly? It makes no sense that it works in the command line but not with the rc file. Obviously I'm screwing up the syntax or something. Any help?
_______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- multicommand and rc file issues Miguel Rios (Dec 14)
- Re: multicommand and rc file issues Joshua J. Drake (Dec 14)
- Re: multicommand and rc file issues Miguel Rios (Dec 15)
- Re: multicommand and rc file issues Joshua J. Drake (Dec 14)