代码之家  ›  专栏  ›  技术社区  ›  aneela

如何用afl-gcc编译openssl

  •  0
  • aneela  · 技术社区  · 7 年前

    我需要用afl fuzz编译openssl 1.0.1f版本,然后在应用程序中使用它来查找heartbleed bug。到目前为止,我已经做到了; 转到openssl1.0.1f目录并运行以下命令

    ./config CC="afl-gcc" CXX="afl-g++"
    ./config no-shared no-idea no-mdc2 no-rc5 no-comp enable-tlsext no-ssl2
     make depend
     make && make install
    

    一切正常,但在编译过程中我看到 gcc -I 命令编译文件而不是 afl-gcc 最后我没有看到插装细节,因为我在用afl fuzz编译的简单程序中看到了插装细节。我不确定openssl是否已使用gcc或afl gcc编译。我也换了 gcc 具有 在Makefile中,但没有结果。

    请有人解释一下,就像所有关于openssl和afl fuzz的博客一样,我只找到了这些命令。

    谢谢。

    1 回复  |  直到 7 年前
        1
  •  1
  •   aneela    7 年前

    ./config no-shared no-idea no-mdc2 no-rc5 no-comp enable-tlsext no-ssl2
    make depend
    Manually replace every occurrence of `gcc`to `afl-gcc` in Makefile 
    make && make install
    

    谢谢。

    推荐文章