From d27b2463ae5793ecb0804620cea663e00a2e5ca6 Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 15 Feb 2015 11:56:50 +1100 Subject: [PATCH] Fixed paths in Ruby driver --- drivers/ruby/wappalyzer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ruby/wappalyzer.rb b/drivers/ruby/wappalyzer.rb index e4f163ed5..b0e4452fe 100755 --- a/drivers/ruby/wappalyzer.rb +++ b/drivers/ruby/wappalyzer.rb @@ -23,8 +23,8 @@ class Wappalyzer end cxt = V8::Context.new - cxt.load File.join(@realdir, '..', '..', 'share', 'js', 'wappalyzer.js') - cxt.load File.join(@realdir, '..', 'php', 'js', 'driver.js') + cxt.load File.join(@realdir, 'js', 'wappalyzer.js') + cxt.load File.join(@realdir, 'js', 'driver.js') data = {'host' => uri.hostname, 'url' => url, 'html' => body, 'headers' => headers} output = cxt.eval("w.apps = #{@apps.to_json}; w.categories = #{@categories.to_json}; w.driver.data = #{data.to_json}; w.driver.init();") JSON.load(output)