* Nikolay Shaplov <
dh...@nataraj.su>, 2020-10-11, 20:19:
>When I tried to fuzz a simple example program, with __AFL_LOOP inside
>it printed
>[+] Persistent mode binary detected.
>and body of __AFL_LOOP actually executed several times in a loop
>
>Then I switched to a real project, and I get no Persistent mode binary
>detected, and the body of the loop is executed only once.
>
>The difference is that in real project is a part of module (extension)
>that is loaded at runtime as .so lib.
By default, afl-fuzz enables persistent mode only if the binary contains
the "##SIG_AFL_PERSISTENT##" string (which is added by the __AFL_LOOP
macro). If you used __AFL_LOOP in a shared library, afl-loop won't
detect it.
>Is there any way to make afl detect that persistent mode, or force it
>to use it.
You can use the __AFL_PERSISTENT environment variable to force
persistent mode.
--
Jakub Wilk