how to use the custom_net_fuzzer
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 ?
Does it work if you use absolute path to custom_net_fuzzer.dll
this worked
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