0.0.8 • Published 9 months ago

@canalun/fuzzdiff v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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:

  1. generates random page(=DOM+JS).
  2. runs the generated script on that page and records which API was called with what args and return values.
  3. again, runs the generated script on that page, but this time, with your script embedded. And records the same as step 2.
  4. 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
0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago