stephenfewer / grinder

Grinder is a system to automate the fuzzing of web browsers and the management of a large number of crashes.
BSD 3-Clause "New" or "Revised" License
415 stars 131 forks source link

The path of HTML's elements? #22

Closed zhuyue1314 closed 10 years ago

zhuyue1314 commented 10 years ago

In the fuzzer HTML, there is a code like "<embed src="aa.swf", ...", the file aa.swf is just in the current directory. But when the grinder run, it cannot find aa.swf. I also put it in the ./data directory. It still cannot find it.

stephenfewer commented 10 years ago

The file https://github.com/stephenfewer/grinder/blob/master/node/core/server.rb#L176 handles serving out some hard coded files from the ./data directory. If the file is not found a 307 redirect is issued.

With a little modification you should be able to serve out the file you wish (either hard code the file name or use a regex match against request.path.