update wappalyzer.js path in the ruby driver

main
Alexey Lapitsky 11 years ago committed by Alexey Lapitsky
parent 438670d09e
commit c0187b3585

@ -23,7 +23,7 @@ class Wappalyzer
end end
cxt = V8::Context.new cxt = V8::Context.new
cxt.load File.join(@realdir, '..', 'php', 'js', 'wappalyzer.js') cxt.load File.join(@realdir, '..', '..', 'share', 'js', 'wappalyzer.js')
cxt.load File.join(@realdir, '..', 'php', 'js', 'driver.js') cxt.load File.join(@realdir, '..', 'php', 'js', 'driver.js')
data = {'host' => uri.hostname, 'url' => url, 'html' => body, 'headers' => headers} 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();") output = cxt.eval("w.apps = #{@apps.to_json}; w.categories = #{@categories.to_json}; w.driver.data = #{data.to_json}; w.driver.init();")