|
|
|
@ -298,19 +298,20 @@ const Wappalyzer = {
|
|
|
|
|
const mm = Wappalyzer.analyzeManyToMany
|
|
|
|
|
|
|
|
|
|
const relations = {
|
|
|
|
|
url: oo,
|
|
|
|
|
xhr: oo,
|
|
|
|
|
html: oo,
|
|
|
|
|
text: oo,
|
|
|
|
|
scripts: oo,
|
|
|
|
|
css: oo,
|
|
|
|
|
robots: oo,
|
|
|
|
|
certIssuer: oo,
|
|
|
|
|
scriptSrc: om,
|
|
|
|
|
cookies: mm,
|
|
|
|
|
meta: mm,
|
|
|
|
|
headers: mm,
|
|
|
|
|
css: oo,
|
|
|
|
|
dns: mm,
|
|
|
|
|
headers: mm,
|
|
|
|
|
html: oo,
|
|
|
|
|
meta: mm,
|
|
|
|
|
probe: mm,
|
|
|
|
|
robots: oo,
|
|
|
|
|
scriptSrc: om,
|
|
|
|
|
scripts: oo,
|
|
|
|
|
text: oo,
|
|
|
|
|
url: oo,
|
|
|
|
|
xhr: oo,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
@ -344,82 +345,77 @@ const Wappalyzer = {
|
|
|
|
|
Wappalyzer.technologies = Object.keys(data).reduce((technologies, name) => {
|
|
|
|
|
const {
|
|
|
|
|
cats,
|
|
|
|
|
certIssuer,
|
|
|
|
|
cookies,
|
|
|
|
|
cpe,
|
|
|
|
|
css,
|
|
|
|
|
description,
|
|
|
|
|
url,
|
|
|
|
|
xhr,
|
|
|
|
|
dns,
|
|
|
|
|
dom,
|
|
|
|
|
html,
|
|
|
|
|
text,
|
|
|
|
|
scripts,
|
|
|
|
|
css,
|
|
|
|
|
robots,
|
|
|
|
|
meta,
|
|
|
|
|
excludes,
|
|
|
|
|
headers,
|
|
|
|
|
dns,
|
|
|
|
|
certIssuer,
|
|
|
|
|
cookies,
|
|
|
|
|
scriptSrc,
|
|
|
|
|
js,
|
|
|
|
|
html,
|
|
|
|
|
icon,
|
|
|
|
|
implies,
|
|
|
|
|
excludes,
|
|
|
|
|
js,
|
|
|
|
|
meta,
|
|
|
|
|
pricing,
|
|
|
|
|
probe,
|
|
|
|
|
requires,
|
|
|
|
|
requiresCategory,
|
|
|
|
|
icon,
|
|
|
|
|
robots,
|
|
|
|
|
scriptSrc,
|
|
|
|
|
scripts,
|
|
|
|
|
text,
|
|
|
|
|
url,
|
|
|
|
|
website,
|
|
|
|
|
pricing,
|
|
|
|
|
cpe,
|
|
|
|
|
xhr,
|
|
|
|
|
} = data[name]
|
|
|
|
|
|
|
|
|
|
technologies.push({
|
|
|
|
|
name,
|
|
|
|
|
description: description || null,
|
|
|
|
|
categories: cats || [],
|
|
|
|
|
slug: Wappalyzer.slugify(name),
|
|
|
|
|
url: transform(url),
|
|
|
|
|
xhr: transform(xhr),
|
|
|
|
|
headers: transform(headers),
|
|
|
|
|
dns: transform(dns),
|
|
|
|
|
certIssuer: transform(certIssuer),
|
|
|
|
|
cookies: transform(cookies),
|
|
|
|
|
cpe: cpe || null,
|
|
|
|
|
css: transform(css),
|
|
|
|
|
description: description || null,
|
|
|
|
|
dns: transform(dns),
|
|
|
|
|
dom: transform(
|
|
|
|
|
typeof dom === 'string' || Array.isArray(dom)
|
|
|
|
|
? toArray(dom).reduce(
|
|
|
|
|
(dom, selector) => ({
|
|
|
|
|
...dom,
|
|
|
|
|
[selector]: { exists: '' },
|
|
|
|
|
}),
|
|
|
|
|
(dom, selector) => ({ ...dom, [selector]: { exists: '' } }),
|
|
|
|
|
{}
|
|
|
|
|
)
|
|
|
|
|
: dom,
|
|
|
|
|
true,
|
|
|
|
|
false
|
|
|
|
|
),
|
|
|
|
|
excludes: transform(excludes).map(({ value }) => ({ name: value })),
|
|
|
|
|
headers: transform(headers),
|
|
|
|
|
html: transform(html),
|
|
|
|
|
text: transform(text),
|
|
|
|
|
scripts: transform(scripts),
|
|
|
|
|
css: transform(css),
|
|
|
|
|
certIssuer: transform(certIssuer),
|
|
|
|
|
robots: transform(robots),
|
|
|
|
|
meta: transform(meta),
|
|
|
|
|
scriptSrc: transform(scriptSrc),
|
|
|
|
|
js: transform(js, true),
|
|
|
|
|
icon: icon || 'default.svg',
|
|
|
|
|
implies: transform(implies).map(({ value, confidence, version }) => ({
|
|
|
|
|
name: value,
|
|
|
|
|
confidence,
|
|
|
|
|
version,
|
|
|
|
|
})),
|
|
|
|
|
excludes: transform(excludes).map(({ value }) => ({
|
|
|
|
|
name: value,
|
|
|
|
|
})),
|
|
|
|
|
requires: transform(requires).map(({ value }) => ({
|
|
|
|
|
name: value,
|
|
|
|
|
})),
|
|
|
|
|
js: transform(js, true),
|
|
|
|
|
meta: transform(meta),
|
|
|
|
|
name,
|
|
|
|
|
pricing: pricing || [],
|
|
|
|
|
probe: transform(probe, true),
|
|
|
|
|
requires: transform(requires).map(({ value }) => ({ name: value })),
|
|
|
|
|
requiresCategory: transform(requiresCategory).map(({ value }) => ({
|
|
|
|
|
id: value,
|
|
|
|
|
})),
|
|
|
|
|
icon: icon || 'default.svg',
|
|
|
|
|
robots: transform(robots),
|
|
|
|
|
scriptSrc: transform(scriptSrc),
|
|
|
|
|
scripts: transform(scripts),
|
|
|
|
|
slug: Wappalyzer.slugify(name),
|
|
|
|
|
text: transform(text),
|
|
|
|
|
url: transform(url),
|
|
|
|
|
website: website || null,
|
|
|
|
|
pricing: pricing || [],
|
|
|
|
|
cpe: cpe || null,
|
|
|
|
|
xhr: transform(xhr),
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return technologies
|
|
|
|
|