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

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

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

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

工具目录

分类

查看所有分类
Loading categories
netbsd_hfs — NetBSD hfs 溢出 | Kitploit
工具/GitHubGitHub/fuzzrf/netbsd_hfs
权限提升漏洞分析漏洞利用二进制利用
GitHubfuzzrf/netbsd_hfs

netbsd_hfs

NetBSD hfs 溢出

查看仓库
23年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

NetBSD hfs 本地溢出

漏洞详情:

root@kitploit:~
size_t
hfslib_reada_node_offsets(void* in_bytes, uint16_t* out_offset_array)
{
        void*           ptr;

        if (in_bytes == NULL || out_offset_array == NULL)
                return 0;

        ptr = in_bytes;

        /*
         * The offset for record 0 (which is the very last offset in the node) is
         * always equal to 14, the size of the node descriptor. So, once we hit
         * offset=14, we know this is the last offset. In this way, we don't need
         * to know the number of records beforehand.
         */
        out_offset_array--;
        do {
                out_offset_array++;
                *out_offset_array = be16tohp(&ptr);
        } while (*out_offset_array != (uint16_t)14);

        return ((uint8_t*)ptr - (uint8_t*)in_bytes);
}

while 循环没有范围检查,因此我们可以溢出 out_offset_array 数组。

如何测试:

root@kitploit:~
1. enable user mounts
# sysctl -w vfs.generic.usermount=1


2. mount test.img
下载工具