googleprojectzero / fuzzilli

A JavaScript Engine Fuzzer
Apache License 2.0
1.86k stars 300 forks source link

Add njs as a target/profile #434

Closed 0xbigshaq closed 2 months ago

0xbigshaq commented 3 months ago

Hi Samuel/Carl, I took a small side-quest few weeks ago(for fun) and used fuzzilli. It led to writing this thingy. This is my attempt to give back :D thank you for creating this project.

This PR adds njs as a new target/profile to fuzz so everyone can enjoy hehe

Note: The logic behind the hot-patching 'technique' I implemented here is: instead of using a .patch files - we leverage the way they designed their build system to 'extend' the language(add fuzzilli() builtin, make our own shell for REPRL, etc.). I found that approach more reliable and work with more revisions.

saelo commented 2 months ago

Thanks again!