neraliu / tainted-phantomjs

Tainted PhantomJS
BSD 3-Clause "New" or "Revised" License
53 stars 12 forks source link

Improve argument parsing #5

Closed andresriancho closed 10 years ago

andresriancho commented 10 years ago

The argument parsing is done caveman style :smile: https://github.com/neraliu/tpjs/blob/master/examples/domxss-common.js#L51 in order to specify if I want to fuzz or not I have to run with two parameters that I don't care about:

./bin/phantomjs examples/domxss.js http://w3af.org/ '' 1000 1

It would be nice to be able to use:

./bin/phantomjs examples/domxss.js http://w3af.org/ --fuzz=1
neraliu commented 10 years ago

thanks, we are aware of this, we will enhance it later

neraliu commented 10 years ago

this is our proposed script, any comments? https://github.com/neraliu/tpjs/blob/master/cli/tpjs

andresriancho commented 10 years ago
neraliu commented 10 years ago

1 - agreed, and will make it improved

2 - this one has the story behind, as domxss detection may be relied on some user interaction, so -s is for running some specific script, but i agree to make the --fuzz=1 for some pattern scanning.

3 - improved later as it should have install script to take care of it.