winafl icon indicating copy to clipboard operation
winafl copied to clipboard

how to use the custom_net_fuzzer

Open jaoh opened this issue 8 months ago • 3 comments

I would like to reproduce the example call provided

afl-fuzz.exe -l custom_net_fuzzer.dll -i inn -o outn -D D:\winafl10\winafl\DynamoRIO\bin64 -t 20000 -- -target_module test_netmode.exe -target_method recv_func -coverage_module test_netmode.exe -fuzz_iterations 5000 -nargs 1 -- test_netmode.exe

i run into the following error

WinAFL 1.17 by [email protected] Based on AFL 2.43b by [email protected] Loading custom winAFL server library

[-] PROGRAM ABORT : Unable to load custom server library, GetLastError = 0x57 custom_net_fuzzer.dll Location : load_custom_library(), D:\winafl10\winafl\afl-fuzz.c:8131

i execute this from within my release directory so the dll should be present

any hint how to debug this ?

jaoh avatar Apr 18 '25 16:04 jaoh

Does it work if you use absolute path to custom_net_fuzzer.dll

ifratric avatar Apr 18 '25 16:04 ifratric

this worked

jaoh avatar Apr 18 '25 16:04 jaoh

a quick update neither my debug or my release build expoted the recv_func symbol. I was able to circumvent by providing the target offset using ghidra .

This may be good to know for anyone who wants to reproduce

jaoh avatar Apr 18 '25 17:04 jaoh