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

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

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

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

工具目录

分类

查看所有分类
Loading categories
NimicStack — NimicStack is the pure Nim implementation of Call Stack Spoofing technique to mimic legitimate programs | Kitploit
工具/GitHubGitHub/frkngksl/nimicstack
IDS/IPS EvasionPost-ExploitationRed TeamingAdversarial Attack
GitHubfrkngksl/nimicstack

NimicStack

NimicStack is the pure Nim implementation of Call Stack Spoofing technique to mimic legitimate programs

查看仓库
9544个月前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

NimicStack

NimicStack 是使用纯 Nim 实现的调用栈欺骗(Call Stack Spoofing)技术,用于模仿合法程序。整个项目基于 WithSecure Labs 分享的 PoC

编译

你可以使用以下命令直接编译源代码:

nim c -d=mingw --app=console --cpu=amd64 -o:NimicStack.exe .\Main.nim

如果遇到 "cannot open file" 错误,你还需要安装所需的依赖:

nimble install ptr_math winim

用法

与参考项目一样,NimicStack 可以在打开 LSASS 进程时模拟三种示例调用栈:WMI、RPC 和 Svchost。

.\NimicStack.exe <--wmi, --rpc, --svchost>

模拟 WMI 调用栈的示例输出:

root@kitploit:~
███╗   ██╗██╗███╗   ███╗██╗ ██████╗███████╗████████╗ █████╗  ██████╗██╗  ██╗
████╗  ██║██║████╗ ████║██║██╔════╝██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝
██╔██╗ ██║██║██╔████╔██║██║██║     ███████╗   ██║   ███████║██║     █████╔╝
██║╚██╗██║██║██║╚██╔╝██║██║██║     ╚════██║   ██║   ██╔══██║██║     ██╔═██╗
██║ ╚████║██║██║ ╚═╝ ██║██║╚██████╗███████║   ██║   ██║  ██║╚██████╗██║  ██╗
╚═╝  ╚═══╝╚═╝╚═╝     ╚═╝╚═╝ ╚═════╝╚══════╝   ╚═╝   ╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝

                              @R0h1rr1m

[+] wmi frame is selected!
[+] Required libraries were imported for return address calculation!
[+] SeDebugPrivilege is enabled!
[+] Fake Call Stack was created!
[+] Trying to find LSASS pid...
[+] LSASS pid found!: 756
[+] Registers were set for NtOpenProcess call!
[+] VEH callback was set for the suspended thread!
[+] Thread is resuming...
[+] VEH callback was called!
[+] Redirecting thread to RtlExitUserThread...
[+] Spoof is successful! Handle is 356
[+] You can check the spoofed call stack from Sysmon!

以及本次调用的 Sysmon 输出:

图像

参考

  • https://labs.withsecure.com/blog/spoofing-call-stacks-to-confuse-edrs/
  • https://github.com/countercept/CallStackSpoofer

免责声明

仅限经授权的安全测试使用。未经明确许可,将本工具用于他人系统属违法行为。

下载工具