在Metasploit的Meterpreter中运行PowerShell?


2

我在Meterpreter中运行此命令:

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

这是输出:

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

我等了大约5分钟(如果它正在加载模块或其他东西),但我没有得到提示。


而不是使用meterpreter,你试过用cmd吗?
Iszi

Answers:


1

我的理解是Meterpreter execute通常通过将命令的输出转储到控制台来工作。虽然-i应该允许交互性,但使用它可能更有意义shell

从生成的shell(cmd.exe),您应该能够在必要时运行PowerShell。否则,您应该已经有一个标准的cmd.exe shell。

如果运行shell不起作用,您的Meterpreter会话可能会遇到其他一些问题。

希望有所帮助!

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.