winafl icon indicating copy to clipboard operation
winafl copied to clipboard

Target function

Open mineechor opened this issue 3 years ago • 2 comments

Why does winafl target function have to finish opening and closing testcase(files) when afl does not have to manually specify object functions?

mineechor avatar Nov 01 '22 03:11 mineechor

That is because WinAFL uses persistent mode, meaning it does not restart the target process between iterations. WinAFL uses dynamic binary instrumentation to get coverage. Instrumenting the process initially is expensive, however that is the price you only have to pay once per process. That's why, instead of restarting the process for every iteration, WinAFL runs the user-specified target function in a loop. In order for that to work, the target function must behave in a relatively standalone way and have the requirements you mentioned.

ifratric avatar Nov 01 '22 09:11 ifratric

Thank you very much  

842294334 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Ivan @.>; 发送时间: 2022年11月1日(星期二) 下午5:30 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [googleprojectzero/winafl] Target function (Issue #393)

That is because WinAFL uses persistent mode, meaning it does not restart the target process between iterations. WinAFL uses dynamic binary instrumentation to get coverage. Instrumenting the process initially is expensive, however that is the price you only have to pay once per process. That's why, instead of restarting the process for every iteration, WinAFL runs the user-specified target function in a loop. In order for that to work, the target function must behave in a relatively standalone way and have the requirements you mentioned.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mineechor avatar Nov 03 '22 13:11 mineechor