问题描述
我对AFL中的QSYM和主从有几个疑问。
-
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”是合法命令。
- 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
谢谢。
解决方法
pytest 5+不支持python2
最后一个支持python 2.7的版本是4.6.x
免责声明:我是pytest核心开发人员