/usr/share/python-afl/py-afl-fuzz is in python-afl 0.6.1-1build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #!/bin/sh
export AFL_SKIP_CHECKS=1 # AFL << 1.20b
export AFL_SKIP_BIN_CHECK=1 # AFL >= 1.20b
export AFL_DUMB_FORKSRV=1
if [ -n "$PYTHON_AFL_DUMB" ]
then
# shellcheck disable=SC2016
printf '%s: $PYTHON_AFL_DUMB is deprecated; use -n instead\n' "$(basename "$0")" >&2
set -- -n "$@"
fi
export PYTHON_AFL_SIGNAL=${PYTHON_AFL_SIGNAL:-SIGUSR1}
export PYTHON_AFL_PERSISTENT=1
if ! command -v afl-fuzz > /dev/null
then
cat >&2 <<EOF
$0: afl-fuzz not found
Is AFL <http://lcamtuf.coredump.cx/afl/> installed?
EOF
exit 127
fi
exec afl-fuzz "$@"
# vim:ts=4 sts=4 sw=4 et
|