Fixed paths in Ruby driver

main
Elbert Alias 10 years ago
parent 4abfe0ccf8
commit d27b2463ae

@ -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)