unicornafl icon indicating copy to clipboard operation
unicornafl copied to clipboard

Add cmplog

Open dotCirill opened this issue 9 months ago • 3 comments

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.

dotCirill avatar Feb 16 '25 19:02 dotCirill

@wtdcode wdyt?

vanhauser-thc avatar Feb 17 '25 07:02 vanhauser-thc

@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.

wtdcode avatar Feb 17 '25 07:02 wtdcode

For testing with AFL++ https://github.com/dotCirill/AFLplusplus/tree/unicornafl_cmplog can be used

dotCirill avatar Feb 17 '25 19:02 dotCirill

Sorry for late. This looks good to me and we need to move on =)

wtdcode avatar Apr 21 '25 14:04 wtdcode