Skip to content

Commit ef70488

Browse files
authored
Merge pull request #354 from Ninjavin/web-technology-detector
Web Technology Detector Added in NodeJS
2 parents c803542 + e6757a6 commit ef70488

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Detect Web Technologies behind any Website
2+
3+
This script uses "Wappalyzer" and detects the technologies used to build a website.
4+
5+
## How to Run?
6+
7+
+ Run `npm i` to install all the dependencies.
8+
+ Run `node index.js "<website-name>"` to search for the website whose technologies you would like to detect
9+
10+
## Example
11+
12+
![image](images/web-tech.png)
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const Wappalyzer = require('wappalyzer');
2+
const Table = require('cli-table')
3+
const args = process.argv
4+
const url = args[2]
5+
// Table to print the output
6+
const table = new Table({
7+
head: ['Name', 'Confidence', 'Website', 'Category']
8+
})
9+
const options = {
10+
debug: false,
11+
delay: 500,
12+
headers: {},
13+
maxDepth: 3,
14+
maxUrls: 10,
15+
maxWait: 5000,
16+
recursive: true,
17+
probe: true,
18+
userAgent: 'Wappalyzer',
19+
htmlMaxCols: 2000,
20+
htmlMaxRows: 2000,
21+
};
22+
;(async function() {
23+
const wappalyzer = await new Wappalyzer(options)
24+
try{
25+
await wappalyzer.init()
26+
const headers = {}
27+
const site = await wappalyzer.open(url, headers)
28+
site.on('error', console.error)
29+
const results = await site.analyze()
30+
for(var i=0 ; i<results.technologies.length ; i++){
31+
table.push([`${results.technologies[i].name}`, `${results.technologies[i].confidence}`, `${results.technologies[i].website}`, `${results.technologies[i].categories[0].name}`])
32+
}
33+
console.log(table.toString())
34+
}catch (error) {
35+
console.error(error)
36+
}
37+
await wappalyzer.destroy()
38+
})()

0 commit comments

Comments
 (0)