【问题标题】:Compile error for cve-2017-1000253 proof of conceptcve-2017-1000253 概念证明的编译错误
【发布时间】:2019-01-02 19:49:24
【问题描述】:

我正在尝试编译一个漏洞来在 CentOS 7 虚拟机上进行渗透测试。这是我要编译的代码:cve-2017-1000253.c。尝试编译时出现此错误。

我知道没有 rootshell.h 来创建它,但网站没有提供它。代码中的 rootshell.h 是我需要创建一个包含该代码的新文件吗? 提前致谢

【问题讨论】:

标签: linux gcc compiler-errors centos7 exploit


【解决方案1】:

请阅读cve-2017-1000253.c 中版权标题后的评论。它包含一个shell脚本,末尾有以下命令:

gcc -fpic -shared -nostartfiles -Os -s -o rootshell rootshell.c
xxd -i rootshell > rootshell.h

运行此 shell 脚本将生成所需的 rootshell.h 文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-08
    • 2017-08-28
    • 1970-01-01
    相关资源
    最近更新 更多