You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
During the last week I started to set up and experiment WinAfl, I started with syzygy static instrumentation but I failed to use instrument.exe (WinAfl instrument.exe ERRORS #193) so I moved to DynamoRIO.
I've created a 32-bit build (I tried both Debug and Release) with DynamoRIO-Windows-8.0.18747 using this set of commands:
mkdir build32
cd build32
cmake -G"Visual Studio 16 2019" -A Win32 .. -DDynamoRIO_DIR=C:\Users\ditah\winafl_tests\DynamoRIO-Windows-8.0.18747\cmake
cmake --build . --config Debug
(I didn't used -DUSE_DRSYMS=1 because I encountered this as well, my Windows version is 1909)
Then I've created in.txt with the single line "test" inside winafl\build32\bin\Debug.
I've downloaded WinDbg to extract the offset of main function (x test!main) build32\bin\Debug\test.exe and ran the cmd below from this dir winafl\build32\bin\Debug:
WinAFL 1.16b by <ifratric@google.com>
Based on AFL 2.43b by <lcamtuf@google.com>
[+] You have 8 CPU cores and 0 runnable tasks (utilization: 0%).
[+] Try parallel jobs - see afl_docs\parallel_fuzzing.txt.
[*] Checking CPU core loadout...
[+] Found a free CPU core, binding to #0.
[+] Process affinity is set to 1.
[*] Setting up output directories...
[*] Scanning 'in'...
[+] No auto-generated dictionary tokens to reuse.
[*] Creating hard links for all input files...
[*] Attempting dry run with 'id_000000'...
[-] The program took more than 20000 ms to process one of the initial test cases.
In WinAFL, this error could also mean incorrect instrumentation params.
Please make sure instrumentation runs correctly using the debug mode
(see the README) before attempting to run afl-fuzz.
[-] PROGRAM ABORT : Test case 'id_000000' results in a timeout
Location : perform_dry_run(), C:\Users\ditah\winafl_tests\winafl\afl-fuzz.c:3018
C:\Users\ditah\winafl_tests\winafl\build32\bin\Debug>0 processes nudged
nudge operation failed, verify permissions and parameters.
I'm not sure what have I done incorrectly, please advise.
Thanks,
Dor
The text was updated successfully, but these errors were encountered:
As the log says, looks like target_offset is incorrect. Note that offset should be the offset in memory from the start of the module. The address you provided, -target_offset 0x00ed1670 looks like an absolute address rather than the relative offset.
Hi,
During the last week I started to set up and experiment WinAfl, I started with syzygy static instrumentation but I failed to use instrument.exe (WinAfl instrument.exe ERRORS #193) so I moved to DynamoRIO.
I've created a 32-bit build (I tried both Debug and Release) with DynamoRIO-Windows-8.0.18747 using this set of commands:
(I didn't used -DUSE_DRSYMS=1 because I encountered this as well, my Windows version is 1909)
Then I've created in.txt with the single line "test" inside winafl\build32\bin\Debug.
I've downloaded WinDbg to extract the offset of main function (
x test!main
) build32\bin\Debug\test.exe and ran the cmd below from this dir winafl\build32\bin\Debug:which printed this only once (I was expecting it to run 10 times)
This is the log file afl.test.exe.24412.0000.proc.log that was created:
I did this after the fuzzing of test.exe failed:
I'm not sure what have I done incorrectly, please advise.
Thanks,
Dor
The text was updated successfully, but these errors were encountered: