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

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

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

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

工具目录

分类

查看所有分类
Loading categories
No-Consolation — A BOF that runs unmanaged PEs inline | Kitploit
工具/GitHubGitHub/fortra/no-consolation
Penetration Testing FrameworksIDS/IPS EvasionPost-ExploitationRed TeamingPayload Development
GitHubfortra/no-consolation

No-Consolation

A BOF that runs unmanaged PEs inline

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

No-Consolation

这是一个 Beacon 对象文件(BOF),用于内联执行非托管 PE 并获取其输出,而无需分配控制台(即生成 conhost.exe 进程)。

截图

功能

  • 支持 64 位和 32 位
  • 支持 EXE 和 DLL
  • 不创建新进程
  • 不创建新线程
  • 将模块链接到 PEB
  • 在内存中保存二进制文件
  • 支持 C++ 异常(仅限 x64)
  • 自定义加载所有依赖项

用法

root@kitploit:~
Summary: Run an unmanaged EXE/DLL inside Beacon's memory.

Usage: noconsolation [--local] [--inthread] [--link-to-peb] [--dont-unload] [--timeout 60] [-k] [--method funcname] [-w] [--no-output] [--alloc-console] [--close-handles] [--free-libraries wininet.dll,winhttp.dll] [--dont-save] [--list-pes] [--unload-pe pename] [--load-all-dependencies] [--load-all-dependencies-but advapi32.dll] [--load-dependencies wininet.dll] [--search-paths C:\Windows\Temp\] /path/to/binary.exe arg1 arg2
    --local, -l                                    Optional. The binary should be loaded from the target Windows machine
    --inthread, -it                                Optional. Run the PE with the main thread. This might hang your beacon depending on the PE and its arguments.
    --link-to-peb, -ltp                            Optional. Load the PE into the PEB
    --dont-unload, -du                             Optional. If set, the DLL won't be unloaded.
    --timeout NUM_SECONDS, -t NUM_SECONDS          Optional. The number of seconds you wish to wait for the PE to complete running. Default 60 seconds. Set to 0 to disable
    -k                                             Optional. Overwrite the PE headers
    --method EXPORT_NAME, -m EXPORT_NAME           Optional. Method or function name to execute in case of DLL. If not provided, DllMain will be executed
    -w                                             Optional. Command line is passed to unmanaged DLL function in UNICODE format. (default is ANSI)
    --no-output, -no                               Optional. Do not try to obtain the output
    --alloc-console, -ac                           Optional. Allocate a console. This will spawn a new process
    --close-handles, -ch                           Optional. Close Pipe handles once finished. If PowerShell was already ran, this will break the output for PowerShell in the future
    --free-libraries, -fl DLL_A,DLL_B              Optional. List of DLLs (previously loaded with --dont-unload) to be offloaded
    --dont-save, -ds                               Optional. Do not save this binary in memory
    --list-pes, -lpe                               Optional. List all PEs that have been loaded in memory
    --unload-pe PE_NAME, -upe PE_NAME              Optional. Unload from memory a PE
    --load-all-dependencies, -lad                  Optional. Custom load all the PE's dependencies
    --load-all-dependencies-but, -ladb DLL_A,DLL_B Optional. Custom load all the PE's dependencies except these
    --load-dependencies, -ld DLL_A,DLL_B           Optional. Custom load these PE's dependencies
    --search-paths, -sp PATH_A,PATH_B              Optional. Look for DLLs on these paths (system32 is the default)

    /path/to/binary.exe                   Required. Full path to the windows EXE/DLL you wish you run inside Beacon. If already loaded, you can simply specify the binary name.
    ARG1 ARG2                             Optional. Parameters for the PE. Must be provided after the path

    Example: noconsolation --local C:\windows\system32\windowspowershell\v1.0\powershell.exe $ExecutionContext.SessionState.LanguageMode
    Example: noconsolation /tmp/mimikatz.exe privilege::debug token::elevate exit
    Example: noconsolation --local C:\windows\system32\cmd.exe /c ipconfig
    Example: noconsolation --list-pes
    Example: noconsolation LoadedBinary.exe args

将二进制文件加载到内存中

二进制文件在首次运行后会被自动加密并存储在内存中。这意味着您无需通过网络反复发送该二进制文件。
要执行已保存在内存中的二进制文件,只需指定其名称,而无需提供完整路径。因此,与其运行:

root@kitploit:~
beacon> noconsolation --local C:\windows\system32\cmd.exe /c ipconfig

您可以这样运行:

root@kitploit:~
beacon> noconsolation cmd.exe /c ipconfig

要列出内存中加载的所有二进制文件,请运行 --list-pes。
如果您使用完某个二进制文件并希望将其卸载,请运行 --unload-pe mimikatz.exe。
最后,如果您希望运行二进制文件时不自动将其加载到内存中,请使用 --dont-save 运行它。

加载 PE 的依赖项

您可以通过自定义加载 PE 的所有依赖项来避免所有映像加载事件:

root@kitploit:~
beacon> noconsolation --load-dependencies --link-to-peb /tmp/malware.exe

执行完成后,PE 及其依赖项将自动卸载。
不支持使用线程本地存储(TLS)的 DLL。

致谢

  • 感谢 Octoberfest7 的 Inline-Execute-PE,它是我这个项目的灵感来源
  • 感谢 modexp 和 TheWover 提供来自 donut 的 PE 加载逻辑
  • 感谢 rad9800 的 HWBP 引擎
  • 感谢 batsec 的 DarkLoadLibrary
  • 感谢 aidankhoury 的 ApiSet
  • 感谢 bb107 的 MemoryModulePP
下载工具