Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not seem to support AFL Parallel Fuzzing Results on OSX #12

Open
gdsjdunlap opened this issue Feb 5, 2016 · 2 comments
Open

Does not seem to support AFL Parallel Fuzzing Results on OSX #12

gdsjdunlap opened this issue Feb 5, 2016 · 2 comments

Comments

@gdsjdunlap
Copy link

From the /sync directory

$ cwtriage -afl  -root . -workers 16 -engine lldb
2016/02/04 19:18:47 Couldn't parse AFL commandline in fuzz01/crashes/README.txt

With a readme file like:

Command line used to find this crash:

/Users/myuser/afl-1.95b/afl-fuzz -i - -o /Users/myuser/fuzzdir/sync/ -M fuzz01 ./programname -args @@

If you can't reproduce a bug outside of afl-fuzz, be sure to set the same
memory limit. The limit used for this fuzzing session was 50.0 MB. 

Need a tool to minimize test cases before investigating the crashes or sending
them to a vendor? Check out the afl-tmin that comes with the fuzzer!

Found any cool bugs in open-source tools using afl-fuzz? If yes, please drop
me a mail at <[email protected]> once the issues are fixed - I'd love to
add your finds to the gallery at: 

  http://lcamtuf.coredump.cx/afl/

Thanks :-)

Which is what AFL produces naturally. Perhaps I need to pare it down and remove the suggestions about coredump from the file to be able to use -afl?

Now, I suspected that the cause of the problem may be that I am not in the right directory, so I went to the directory where the fuzzed program lives and:

cwtriage -afl -engine lldb -root ~/fuzzdir/sync/ -workers 16

produces no output whatsoever.

as well as

cwtriage -afl -engine lldb -root ~/fuzzdir/sync/ -workers 16 -- ./program.o -tv @@

I may very well be putting the wrong cmdline arguments, but the program seems to be doing nothing at all.

@bnagy
Copy link
Owner

bnagy commented Feb 5, 2016

The README.TXT parser expects afl commands to have been launched with a separator -- before the target program and arguments. This is documented in the BUGS section of the crashwalk readme. It's not ideal, I know. See if that's the problem you're having (and close if it is, thanks)

@gdsjdunlap
Copy link
Author

Due to the OSX issue I mentioned in my other bug, I can't test if this is the issue. I'll close this once I can confirm one way or the other.

Best I can say at the moment is that if I put the -- in the readme, instead of complaining about the README being unparseable I get a golang crash. Seems to suggest it's at least trying to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants