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

[question] Saving valid inputs #75

Open
igor-simoes opened this issue Jun 21, 2018 · 2 comments
Open

[question] Saving valid inputs #75

igor-simoes opened this issue Jun 21, 2018 · 2 comments

Comments

@igor-simoes
Copy link

Hi everyone,

Currently, I'm working with JS interpreters and I want to know if there is a way to use "muttest" and "gentest" saving all valid inputs?

For example if I ran "muttest", the new files generated are removed after each iteration. I want to store/save them if Quickfuzz generate an file that pass without throws SyntaxError or ReferenceError.

Thanks

@agustinmista
Copy link
Member

Hi there! Sorry for the delay.

Your intended use case is somewhat different from what we expect from this tool. QuickFuzz is only able to recognize crashes and "fail" exit codes. Your JS interpreter probably returns success exit codes for SyntaxError or ReferenceError failing inputs, hence the problem.

However, if you can modify your target JS interpreter to return an specific exit code when it receives a "valid" input, then modifying QuickFuzz to save valid test cases should be quite straightforward. Is this the case?

/Agustín

@igor-simoes
Copy link
Author

igor-simoes commented Jun 29, 2018

Hi Agustín, thanks for your answer.

I'm interested on getting all entries generated by Quickfuzz using muttest feature.
I found a workaround for this using:
quickfuzz muttest js "cat @@" inputs/ -q 1 -v > outdir/test.js

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