winafl icon indicating copy to clipboard operation
winafl copied to clipboard

Program output gets mixed with afl status view

Open mrpeppels opened this issue 10 years ago • 4 comments

When fuzzing a few extraction binaries i bumped into an inconvenience;

Having the program extract the input to stdout is neccesary to avoid tons of 'unique' extracted files with mangled filenames. And also because i find it soothing to watch a bunch of illegal unicode flash by XD. But when i do this the output gets mixed with afl's. i've tried redirecting the output to NUL and starting it in another window, unfortunately this doesn't play nice with how the command is passed to winafl.

Would it be possible to have the target binary start from a new window? Or could i do this myself and am i overlooking a command?

mrpeppels avatar Oct 14 '16 09:10 mrpeppels

Misclicked the close, apologies for the reopen.

for anyone interested:

afl-fuzz.exe -t 1000+ -i - -o ../../fuzz/unrar/o -D C:\Tools\DR\bin32 -- -fuzz_iterations 5000 -target_module unrar.exe -nargs 1 -target_offset 0x170d0 -coverage_module unrar.exe -- C:\Tools\fuzz\unrar\unrar.exe p @@

unrar.zip

mrpeppels avatar Oct 14 '16 09:10 mrpeppels

There isn't currently a command to do this but if you want to change this behavior it should be doable by passing different flags to CreateProcess() in https://github.com/ivanfratric/winafl/blob/master/afl-fuzz.c#L2040

ivanfratric avatar Oct 14 '16 10:10 ivanfratric

@mrpeppels have a look at https://github.com/ivanfratric/winafl/commit/f51465321c5e6f826bea26253672070aa211cc4d :).

Cheers

0vercl0k avatar Dec 25 '16 23:12 0vercl0k

I believe @0vercl0k 's patch fixes the issue.

ivanfratric avatar Dec 29 '16 15:12 ivanfratric