diff --git a/lib/whatweb/parser.rb b/lib/whatweb/parser.rb index 84f6043d7..792eaec9e 100644 --- a/lib/whatweb/parser.rb +++ b/lib/whatweb/parser.rb @@ -18,7 +18,7 @@ module WhatWeb class Parser - def self.run_plugins(target, plugins) + def self.run_plugins(target: target, plugins: plugins, scanner: scanner) results = [] if plugins.empty? diff --git a/whatweb b/whatweb index 1744df2b1..16d8a9c37 100755 --- a/whatweb +++ b/whatweb @@ -650,14 +650,14 @@ scanner.scan do | target | # change so we can call it without Target object and with just Headers, HTML, etc. # note this modifies target with redirection info - result = WhatWeb::Parser.run_plugins(target, plugins) + result = WhatWeb::Parser.run_plugins(target: target, scanner: scanner, plugins: plugins) # check for redirection WhatWeb::Redirect.new(target, scanner, max_redirects) WhatWeb::Parser.parse(target: target, result: result, - logging_list: logging_list, +] logging_list: logging_list, grep_plugin: use_custom_grep_plugin) end