You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

53 lines
1.1 KiB

4 years ago
# Wappalyzer core
2 years ago
[Wappalyzer](https://www.wappalyzer.com/) identifies technologies on websites.
4 years ago
## Installation
```shell
$ npm i wappalyzer-core
```
## Usage
```javascript
#!/usr/bin/env node
const fs = require('fs')
const Wappalyzer = require('./wappalyzer')
1 year ago
// See https://github.com/wappalyzer/wappalyzer/blob/master/README.md#specification
const categories = JSON.parse(
fs.readFileSync(path.resolve(`./categories.json`))
4 years ago
)
let technologies = {}
for (const index of Array(27).keys()) {
const character = index ? String.fromCharCode(index + 96) : '_'
technologies = {
...technologies,
...JSON.parse(
1 year ago
fs.readFileSync(path.resolve(`./technologies/${character}.json`))
),
}
}
4 years ago
Wappalyzer.setTechnologies(technologies)
Wappalyzer.setCategories(categories)
Wappalyzer.analyze({
4 years ago
url: 'https://example.github.io/',
meta: { generator: ['WordPress'] },
headers: { server: ['Nginx'] },
scriptSrc: ['jquery-3.0.0.js'],
4 years ago
cookies: { awselb: [''] },
1 year ago
html: '<div ng-app="">',
}).then((detections) => {
const results = Wappalyzer.resolve(detections)
4 years ago
console.log(results)
})
4 years ago
```