Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 security.stackexchange.com 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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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