|
|
@ -11,7 +11,7 @@ Encoding.default_external = Encoding::UTF_8
|
|
|
|
class Wappalyzer
|
|
|
|
class Wappalyzer
|
|
|
|
def initialize
|
|
|
|
def initialize
|
|
|
|
@realdir = File.dirname(File.realpath(__FILE__))
|
|
|
|
@realdir = File.dirname(File.realpath(__FILE__))
|
|
|
|
file = File.join(@realdir, '..', '..', 'share', 'apps.json')
|
|
|
|
file = File.join(@realdir, 'apps.json')
|
|
|
|
@json = JSON.parse(IO.read(file))
|
|
|
|
@json = JSON.parse(IO.read(file))
|
|
|
|
@categories, @apps = @json['categories'], @json['apps']
|
|
|
|
@categories, @apps = @json['categories'], @json['apps']
|
|
|
|
end
|
|
|
|
end
|
|
|
|