vanhauser-thc / afl-pin

run AFL with pintool
GNU Affero General Public License v3.0
66 stars 11 forks source link

where is forkserver.so? #5

Closed lyliu closed 5 years ago

lyliu commented 5 years ago

Hi, I tried to use afl-pin with forkserver, but where is forkserver.so, and i found there is no forkserver.cpp file in pin directory.

vanhauser-thc commented 5 years ago

the file is forkserver.c, its in the repository, and when you type "make" it is compiled to forkserver.so

lyliu commented 5 years ago

Thanks, so, you implement forkserver by fork(),instead of using pin's API?

vanhauser-thc commented 5 years ago

the forkserver does more than just doing a fork(), it also talks to afl etc. it was the easiest way. Do you see a disadvantage in that approach? I am open to recommendations. (also afl-pin is rather an exercise than something useful. if you want to fuzz a blackbox binary then use afl-dyninst or afl -Q qemu mode - or afl-pt if you are willing to work with an old kernel and old ubuntu)

lyliu commented 5 years ago

Thanks for your reply! I'm just thinking about how to implement forkserver using pin on windows.