【问题标题】:Pytest6 and Python2? How to get them together?Pytest6 和 Python2?如何让他们在一起?
【发布时间】:2020-09-14 04:47:14
【问题描述】:

我有几个关于 AFL 中的 QSYM 和主从的问题。

  1. export AFL_ROOT="/workdir/afl-2.52b" export INPUT="/workdir/example/input" export OUTPUT="/workdir/example/output" export AFL_CMDLINE="/workdir/example/test.bin @@" $AFL_ROOT/afl-fuzz -S afl-slave -i $INPUT -o $OUTPUT -- $AFL_CMDLINE

当我输入$AFL_ROOT/afl-fuzz -S afl-slave -i $INPUT -o $OUTPUT -- $AFL_CMDLINE时,出现错误“-S is undefined”。

我该如何解决这个问题?根据 AFL 中的自述文件,我确信“-S”是一个合法的命令。

  1. QSYM 使用旧版本的 Python (Python2),而要为 QSYM 编译 Python 文件,我被要求使用最新版本的 Pytest (Pytest6),它需要 Python3。 即使我尝试在我的 PC 上使用 Python3 升级我的 pytest 也不起作用,只要它检测到 Python2,它就不会让我将 pytest 升级到版本 6。 一个错误:Python 2.7 reached the end of its life on January,2020 please upgrade pytest to its latest version has appeared.

我该怎么办?

要了解更多关于 QSYM 的信息,请访问此 GitHub 链接:https://github.com/sslab-gatech/qsym

谢谢。

【问题讨论】:

    标签: python ubuntu-16.04 fuzzing american-fuzzy-lop


    【解决方案1】:

    pytest 5+ 不支持 python2

    支持 python 2.7 的最后一个版本是 4.6.x

    免责声明:我是 pytest 核心开发人员

    【讨论】:

    • 嗨,我明白了,我想知道是否有任何方法可以解决这个问题?由于我尝试使用 Python3 升级 Pytest,但它不起作用。
    • 您的选择是:(1) 将您的应用程序升级到 python3(python2 已经报废)或 (2) 将 pytest 降级到 4.6.x
    猜你喜欢
    • 2011-11-19
    • 2021-08-20
    • 2016-10-15
    • 2011-12-08
    • 2011-08-26
    • 2017-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多