Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 the event it was loading modules or something), but I didn't get a prompt.

share|improve this question

migrated from Nov 28 '11 at 20:45

This question came from our site for information security professionals.

Instead of using meterpreter, have you tried doing it with cmd? – Iszi Nov 28 '11 at 16:06

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!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .