-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.mjs
49 lines (36 loc) · 1.43 KB
/
index.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import express from 'express';
import nextjsStaticFilesHoneypot from './honeyPots/nextjsStaticFiles/honeypot.mjs'
import nowItsPHP from './honeyPots/nowItsPHP/honeypot.mjs'
import oldApache from './honeyPots/oldApache/honeypot.mjs'
import directoryListing from './honeyPots/directoryListing/honeypot.mjs'
import phpShell from './honeyPots/phpShell/honeypot.mjs'
import dotGit from './honeyPots/dotGit/honeypot.mjs'
export default function( options = {
nextjsStaticFilesHoneypot: true,
nowItsPHP: true,
directoryListing: true,
phpShell: true,
oldApache: true,
dotGit: true
}) {
const router = express.Router();
if(typeof options.nextjsStaticFilesHoneypot === 'undefined' || options.nextjsStaticFilesHoneypot === true) {
nextjsStaticFilesHoneypot(router, options);
}
if(typeof options.nowItsPHP === 'undefined' || options.nowItsPHP === true) {
nowItsPHP(router, options);
}
if(typeof options.oldApache === 'undefined' || options.oldApache === true) {
oldApache(router, options);
}
if(typeof options.phpShell === 'undefined' || options.phpShell === true) {
phpShell(router, options);
}
if(typeof options.directoryListing === 'undefined' || options.directoryListing === true) {
directoryListing(router, options);
}
if(typeof options.dotGit === 'undefined' || options.dotGit === true) {
dotGit(router, options);
}
return router;
}