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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2021-3156 — Proof-of-concept exploit for CVE-2021-3156, a heap-based buffer overflow in sudo (Baron Samedit). Provides target selection, manual parameter tuning, and experimental brute-force detection for privilege escalation. | Kitploit
工具/GitHubGitHub/exodusro/cve-2021-3156
权限提升漏洞分析漏洞利用渗透测试二进制利用
GitHubexodusro/cve-2021-3156

CVE-2021-3156

Proof-of-concept exploit for CVE-2021-3156, a heap-based buffer overflow in sudo (Baron Samedit). Provides target selection, manual parameter tuning, and experimental brute-force detection for privilege escalation.

查看仓库
35年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2021-3156 PoC

介绍

这是针对 CVE-2021-3156 sudo 漏洞(由 Qualys 称为 Baron Samedit)的利用程序。

使用方式

构建:

$ make

目标列表:

$ ./sudo-hax-me-a-sandwich

运行:

$ ./sudo-hax-me-a-sandwich <目标编号>

手动模式:

$ ./sudo-hax-me-a-sandwich <smash_len_a> <smash_len_b> <null_stomp_len> <lc_all_len>

暴力破解目标检测(实验性)

确保已安装 GNU parallel。

$ make brute
$ ./brute.sh <smash_start> <smash_end> <null_start> <null_end> <lc_start> <lc_end>

一些可尝试的默认值:

$ ./brute.sh 90 120 50 70 150 300

它将消耗所有可用核心。不要尝试一边看Netflix一边暴力破解。

贡献

向仓库贡献 发送合理的PR,我可以合并。 点个星标

一些想法:

  • 更多目标
  • 目标本地化
  • 其他利用策略
  • 更独立的功能:
    • 集成共享库hax.c(请缩小,ELF golf + asm setuid/execve桩代码)
    • 将mkdir逻辑添加到hax.c
  • 清理目录/共享库
下载工具