unicornafl
unicornafl copied to clipboard
Add cmplog
This is cmplog realization for unicorn-afl.
CMPCOV will be turned on when UNICORN_AFL_CMPCOV env exists (now it is turned off by default).
CMPLOG will be turned on when __AFL_CMPLOG_SHM_ID env exists.
I've tested this code for ARM32 firmware (unicorn version should be >= 2.1.2) with LibAFL.
AFL++ should be patched a little bit to allow cmplog with -U option.
@wtdcode wdyt?
@wtdcode wdyt?
Spare me a few days as I need to get 2.1.3 out. We broken a few distributions unfortunately. I will be back to polish unicornafl.
The implementation itself looks good at first glance since the relevant support was just accepted by Unicorn a few weeks ago but I need to review a bit more.
For testing with AFL++ https://github.com/dotCirill/AFLplusplus/tree/unicornafl_cmplog can be used
Sorry for late. This looks good to me and we need to move on =)