Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
WmiExec — 使用仅 WMI 和 PowerShell(非远程处理)远程执行 Windows 命令并捕获输出。 | Kitploit
工具/GitHubGitHub/onescripter/wmiexec
横向移动脚本与自动化后渗透利用渗透测试命令与控制实用工具与框架红队远程访问工具
GitHubonescripter/wmiexec

WmiExec

使用仅 WMI 和 PowerShell(非远程处理)远程执行 Windows 命令并捕获输出。

查看仓库
661112年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

WmiExec.ps1

仅依赖 WMI 和 PowerShell 的 Windows 远程执行工具。

远程执行控制台命令并捕获 stdout/stderr 流,无需依赖 PowerShell Remoting、WinRM 或 PsExec。

示例

关于此技术的博客文章和视频。

下面的示例展示了 WmiExec 如何从管道接受命令字符串作为值。

PS C:\ "Get-ChildItem C:\" | .\WmiExec.ps1 -ComputerName "server1"
Running the following command on: server1...
Get-ChildItem C:\
PID: 5580 - Waiting for remote command to finish...
PID: 5580 - Waiting for remote command to finish...
Result...


    Directory: C:\


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       28.06.2018     15:16                PerfLogs
d-r---       09.09.2019     15:19                Program Files
d-r---       07.10.2019     08:36                Program Files (x86)
d-r---       10.10.2019     10:51                Users
d-----       10.10.2019     16:00                Windows

下面的示例展示了返回的对象类型。

PS C:\ $result = .\WmiExec.ps1 -ComputerName "server1" -Command "Get-ChildItem C:\"
Running the following command on: server1...
Get-ChildItem C:\
PID: 5580 - Waiting for remote command to finish...
PID: 5580 - Waiting for remote command to finish...
Result...
PS C:\ $result.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     String                                   System.Object

Twitter https://twitter.com/OneScripter

使用 System Frontier,为你的 PowerShell 脚本创建利用 RBAC 的 Web GUI,做更多酷炫的事情。 https://systemfrontier.com/powershell

下载工具