I'm running this command in meterpreter:

execute -H -c -i -f powershell.exe

This is the output:

Process 2716 created.
Channel 3 created.
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

I waited for about 5 min (in case it was loading modules or something), didn't get a prompt.

link|improve this question
Instead of using meterpreter, have you tried doing it with cmd? – Iszi Rory or Isznti Nov 28 '11 at 16:06
feedback

migrated from security.stackexchange.com Nov 28 '11 at 20:45

This question came from our site for IT security professionals.

1 Answer

My understanding is that Meterpreter execute generally works by dumping the output of a command to the console. Although -i should allow interactivity, it would probably make more sense to use shell instead.

From the shell that spawns (cmd.exe), you should be able to run PowerShell if necessary. Otherwise, you should have a standard cmd.exe shell already.

If running shell doesn't work, you might have some other issues with your Meterpreter session.

Hope that helps!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.