From 80b5e8b0b32350cda414e3e25f5b01414e45935d Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Thu, 15 Oct 2020 14:44:40 +1100 Subject: [PATCH] Add Coinbase detection --- src/README.md | 40 ------------------- .../webextension/images/icons/Coinbase.svg | 1 + src/technologies.json | 16 ++++++++ 3 files changed, 17 insertions(+), 40 deletions(-) delete mode 100644 src/README.md create mode 100644 src/drivers/webextension/images/icons/Coinbase.svg diff --git a/src/README.md b/src/README.md deleted file mode 100644 index 6ffff3ef9..000000000 --- a/src/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# Wappalyzer core - -[Wappalyzer](https://www.wappalyzer.com/) indentifies technologies on websites. - -## Installation - -```shell -$ npm i wappalyzer-core -``` - -## Usage - -```javascript -#!/usr/bin/env node - -const fs = require('fs') -const Wappalyzer = require('./wappalyzer') - -// See https://www.wappalyzer.com/docs/dev/specification or use -// https://raw.githubusercontent.com/AliasIO/wappalyzer/master/src/technologies.json -const { technologies, categories } = JSON.parse( - fs.readFileSync('./technologies.json') -) - -Wappalyzer.setTechnologies(technologies) -Wappalyzer.setCategories(categories) - -const detections = Wappalyzer.analyze({ - url: 'https://example.github.io/', - meta: { generator: ['WordPress'] }, - headers: { server: ['Nginx'] }, - scripts: ['jquery-3.0.0.js'], - cookies: { awselb: [''] }, - html: '
' -}) - -const results = Wappalyzer.resolve(detections) - -console.log(results) -``` diff --git a/src/drivers/webextension/images/icons/Coinbase.svg b/src/drivers/webextension/images/icons/Coinbase.svg new file mode 100644 index 000000000..81c79dce6 --- /dev/null +++ b/src/drivers/webextension/images/icons/Coinbase.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/technologies.json b/src/technologies.json index a49c14c80..ade643cd5 100644 --- a/src/technologies.json +++ b/src/technologies.json @@ -1044,6 +1044,22 @@ "implies": "Amazon Web Services", "website": "https://aws.amazon.com/elasticloadbalancing/" }, + "Coinbase Commerce": { + "cats": [ + 41, + 61 + ], + "description": "Coinbase Commerce is a platform that enables merchants to accept cryptocurrency payments.", + "dom": { + "a[href^='https://commerce.coinbase.com/checkout/']": { + "attributes": { + "href": "^https://commerce\\.coinbase\\.com/checkout/[a-z0-9-]+$" + } + } + }, + "icon": "Coinbase.svg", + "website": "https://commerce.coinbase.com/" + }, "Amazon Associates": { "cats": [ 71