This is a mashup of casper netsniff and spider.js