Merge branch 'master' of github.com:ElbertF/Wappalyzer

main
Elbert Alias 12 years ago
commit 3b80cec0ba

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 260 B

@ -172,15 +172,9 @@ var wappalyzer = (function() {
config: { config: {
environment: 'dev', // dev | live environment: 'dev', // dev | live
version: false,
websiteURL: 'http://wappalyzer.com/', websiteURL: 'http://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer', twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer', githubURL: 'https://github.com/ElbertF/Wappalyzer',
firstRun: false,
upgraded: false
}, },
/** /**
@ -214,19 +208,7 @@ var wappalyzer = (function() {
} }
// Initialize driver // Initialize driver
driver('init', function() { driver('init');
if ( w.config.firstRun ) {
driver('goToURL', { url: w.config.websiteURL + 'installed', medium: 'install' });
w.config.firstRun = false;
}
if ( w.config.upgraded ) {
driver('goToURL', { url: w.config.websiteURL + 'upgraded', medium: 'upgrade' });
w.config.upgraded = false;
}
});
}, },
/** /**

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 260 B

@ -172,15 +172,9 @@ var wappalyzer = (function() {
config: { config: {
environment: 'dev', // dev | live environment: 'dev', // dev | live
version: false,
websiteURL: 'http://wappalyzer.com/', websiteURL: 'http://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer', twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer', githubURL: 'https://github.com/ElbertF/Wappalyzer',
firstRun: false,
upgraded: false
}, },
/** /**
@ -214,19 +208,7 @@ var wappalyzer = (function() {
} }
// Initialize driver // Initialize driver
driver('init', function() { driver('init');
if ( w.config.firstRun ) {
driver('goToURL', { url: w.config.websiteURL + 'installed', medium: 'install' });
w.config.firstRun = false;
}
if ( w.config.upgraded ) {
driver('goToURL', { url: w.config.websiteURL + 'upgraded', medium: 'upgrade' });
w.config.upgraded = false;
}
});
}, },
/** /**

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 260 B

@ -172,15 +172,9 @@ var wappalyzer = (function() {
config: { config: {
environment: 'dev', // dev | live environment: 'dev', // dev | live
version: false,
websiteURL: 'http://wappalyzer.com/', websiteURL: 'http://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer', twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer', githubURL: 'https://github.com/ElbertF/Wappalyzer',
firstRun: false,
upgraded: false
}, },
/** /**
@ -214,19 +208,7 @@ var wappalyzer = (function() {
} }
// Initialize driver // Initialize driver
driver('init', function() { driver('init');
if ( w.config.firstRun ) {
driver('goToURL', { url: w.config.websiteURL + 'installed', medium: 'install' });
w.config.firstRun = false;
}
if ( w.config.upgraded ) {
driver('goToURL', { url: w.config.websiteURL + 'upgraded', medium: 'upgrade' });
w.config.upgraded = false;
}
});
}, },
/** /**

@ -5,3 +5,4 @@ locale wappalyzer fr-FR locale/fr-FR/
skin wappalyzer classic/1.0 skin/ skin wappalyzer classic/1.0 skin/
overlay chrome://browser/content/browser.xul chrome://wappalyzer/content/xul/wappalyzer.xul overlay chrome://browser/content/browser.xul chrome://wappalyzer/content/xul/wappalyzer.xul
overlay chrome://navigator/content/navigator.xul chrome://wappalyzer/content/xul/wappalyzer.xul

File diff suppressed because it is too large Load Diff

@ -172,15 +172,9 @@ var wappalyzer = (function() {
config: { config: {
environment: 'dev', // dev | live environment: 'dev', // dev | live
version: false,
websiteURL: 'http://wappalyzer.com/', websiteURL: 'http://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer', twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer', githubURL: 'https://github.com/ElbertF/Wappalyzer',
firstRun: false,
upgraded: false
}, },
/** /**
@ -214,19 +208,7 @@ var wappalyzer = (function() {
} }
// Initialize driver // Initialize driver
driver('init', function() { driver('init');
if ( w.config.firstRun ) {
driver('goToURL', { url: w.config.websiteURL + 'installed', medium: 'install' });
w.config.firstRun = false;
}
if ( w.config.upgraded ) {
driver('goToURL', { url: w.config.websiteURL + 'upgraded', medium: 'upgrade' });
w.config.upgraded = false;
}
});
}, },
/** /**

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 260 B

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 B

After

Width:  |  Height:  |  Size: 832 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 260 B

@ -172,15 +172,9 @@ var wappalyzer = (function() {
config: { config: {
environment: 'dev', // dev | live environment: 'dev', // dev | live
version: false,
websiteURL: 'http://wappalyzer.com/', websiteURL: 'http://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer', twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer', githubURL: 'https://github.com/ElbertF/Wappalyzer',
firstRun: false,
upgraded: false
}, },
/** /**
@ -214,19 +208,7 @@ var wappalyzer = (function() {
} }
// Initialize driver // Initialize driver
driver('init', function() { driver('init');
if ( w.config.firstRun ) {
driver('goToURL', { url: w.config.websiteURL + 'installed', medium: 'install' });
w.config.firstRun = false;
}
if ( w.config.upgraded ) {
driver('goToURL', { url: w.config.websiteURL + 'upgraded', medium: 'upgrade' });
w.config.upgraded = false;
}
});
}, },
/** /**

File diff suppressed because it is too large Load Diff

@ -172,15 +172,9 @@ var wappalyzer = (function() {
config: { config: {
environment: 'dev', // dev | live environment: 'dev', // dev | live
version: false,
websiteURL: 'http://wappalyzer.com/', websiteURL: 'http://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer', twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/ElbertF/Wappalyzer', githubURL: 'https://github.com/ElbertF/Wappalyzer',
firstRun: false,
upgraded: false
}, },
/** /**
@ -214,19 +208,7 @@ var wappalyzer = (function() {
} }
// Initialize driver // Initialize driver
driver('init', function() { driver('init');
if ( w.config.firstRun ) {
driver('goToURL', { url: w.config.websiteURL + 'installed', medium: 'install' });
w.config.firstRun = false;
}
if ( w.config.upgraded ) {
driver('goToURL', { url: w.config.websiteURL + 'upgraded', medium: 'upgrade' });
w.config.upgraded = false;
}
});
}, },
/** /**

@ -0,0 +1,39 @@
#!/usr/bin/env ruby
require 'net/http'
require 'v8'
require 'json'
class Wappalyzer
def initialize
@realdir = File.dirname(File.realpath(__FILE__))
file = File.join(@realdir, '..', '..', 'share', 'apps.json')
@json = JSON.parse(IO.read(file))
@categories, @apps = @json['categories'], @json['apps']
end
def analyze(url)
uri, body, headers = URI(url), nil, {}
Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https', :open_timeout => 5) do |http|
resp = http.get(uri.request_uri)
resp.canonical_each{|k,v| headers[k] = v}
body = resp.body.encode('UTF-8', :invalid => :replace, :undef => :replace)
end
cxt = V8::Context.new
cxt.load File.join(@realdir, '..', 'php', 'js', 'wappalyzer.js')
cxt.load File.join(@realdir, '..', 'php', '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)
end
end
if $0 == __FILE__
url = ARGV[0]
if url
puts JSON.pretty_generate(Wappalyzer.new.analyze(ARGV[0]))
else
puts "Usage: #{__FILE__} http://example.com"
end
end

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Loading…
Cancel
Save