This project is WIP.
If you have any idea to improve this fuzzer, would be glad if you let me know via issues :)
fuzzer for third party script developers :)
'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.
import { fuzzBehavior } from '@canalun/fuzzdiff'
const options = {
dataNum: 10,
scriptFilePath: path.resolve(__dirname, 'path/to/your/script'),
outputPath: path.resolve(__dirname, 'path/to/output/dir'),
};
// check behavioral side-effects
fuzzBehavior(options)
Please try samples.
$ node ./sample/behavior.js
You need python3
! Sorry for inconvenience...!