@canalun/fuzzdiff
v0.0.8
Published
fuzzer for third party script developers
Downloads
9
Readme
fuzzdiff
fuzzer for third party script developers :)
idea
'fuzzdiff' checks if your script has side effect on the page it's embedded on. It works as follows:
- generates random page(=DOM+JS).
- runs the generated script on that page and records which API was called with what args and return values.
- again, runs the generated script on that page, but this time, with your script embedded. And records the same as step 2.
- compares the two records. If found some diff, it means your script has some side effects on web page.
This is the basic idea.
usage
import { fuzzBehavior, fuzzPerformance } from '@canalun/fuzzdiff'
// check behavioral side-effects
fuzzBehavior('path/to/your/script')
// check performance side-effects
// WARNING: Currently it's NOT working!
fuzzPerformance('path/to/your/script')
Please try samples.
$ node ./sample/behavior.js