diff --git a/src/drivers/phantomjs/index.js b/src/drivers/phantomjs/index.js index 3b090b191..823a33fad 100644 --- a/src/drivers/phantomjs/index.js +++ b/src/drivers/phantomjs/index.js @@ -6,9 +6,9 @@ const phantomjs = require('phantomjs-prebuilt'); exports.run = function(args, callback) { - args.push.apply(['--web-security=no', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']); + args.unshift.apply(args, ['driver.js', '--web-security=false', '--load-images=false', '--ignore-ssl-errors=yes', '--ssl-protocol=any']); - var driver = phantomjs.exec('driver.js', args); + var driver = phantomjs.exec.apply(this, args); driver.stdout.on('data', (data) => { callback(`${data}`, null); diff --git a/src/drivers/phantomjs/package.json b/src/drivers/phantomjs/package.json index 990bcf4bf..d3201b69f 100644 --- a/src/drivers/phantomjs/package.json +++ b/src/drivers/phantomjs/package.json @@ -2,7 +2,7 @@ "name": "wappalyzer", "description": "Uncovers the technologies used on websites", "homepage": "https://github.com/AliasIO/Wappalyzer", - "version": "3.0.5", + "version": "3.0.6", "author": "Elbert Alias", "license": "GPL-3.0", "repository": {