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
GitHub Issue: Problem with Fuzz Testing Using WinAFL and DynamoRIO
Description
I am performing fuzz testing on a sample C++ program using WinAFL and DynamoRIO. The program was compiled using Visual Studio Community 2022, generating the .exe and .pdb files. To provide input for fuzzing, I created a binary file named image.img with the following Python script:
importstruct# Define the dataheader=b"IMAG"# 4-byte headerwidth=20# Integer (4 bytes)height=30# Integer (4 bytes)data=b"ABCDEFGHIJ"# 10 bytes of data# Create binary data using structbinary_data=struct.pack("4sii10s", header, width, height, data)
# Write to a filewithopen("image.img", "wb") asf:
f.write(binary_data)
print("image.img file has been created.")
After debugging my configuration, the dry run of the fuzzing process was successful. However, when executing the final fuzzing command, I encountered the following error:
Error Screenshot
Environment Details
Operating System: Windows 11
Compiler: Visual Studio Community 2022
WinAFL Version: Latest
DynamoRIO Version: Windows-7.1.0-1 (bin32 used for 32-bit fuzzing)
I have no knowledge of winafl but are getting odd support requests which seem to be based on bad example test cases.
There is a NON ISO standard small.PDF sample that will stress Adobe Acrobat due to it being malformed, however MuPDF will process the file without error. Thus there should be no "fault" to test.
Additionally, the -target_offset 0xffdff000 appears incorrect. The value is too large. The target offset is meant to be an offset from the start of the module to the function you want to fuzz and can be obtained e.g. using windbg.
GitHub Issue: Problem with Fuzz Testing Using WinAFL and DynamoRIO
Description
I am performing fuzz testing on a sample C++ program using WinAFL and DynamoRIO. The program was compiled using Visual Studio Community 2022, generating the
.exe
and.pdb
files. To provide input for fuzzing, I created a binary file namedimage.img
with the following Python script:After debugging my configuration, the dry run of the fuzzing process was successful. However, when executing the final fuzzing command, I encountered the following error:
Error Screenshot
Environment Details
Steps Taken
Verified that the compiled program runs without errors.
Ensured
image.img
conforms to the structure expected by theProcessImage
function.Performed a dry run with:
This was successful and produced no errors.
When running the afl-fuzz command, the error mentioned above was encountered.
Request
Could someone help identify where the problem might be in the configuration or execution? Specifically:
Any guidance on resolving this error would be greatly appreciated!
The text was updated successfully, but these errors were encountered: