-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.js
22 lines (16 loc) · 775 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const express = require('express')
const bodyParser = require('body-parser');
const app = express()
const port = 3000
app.set('view engine', 'ejs'); //for template injection
app.use(bodyParser.json());
app.get('/', (req, res) => res.send('Hello World!'))
app.use('/xss', require('./vulnerabilities/xss'));
app.use('/sqli', require('./vulnerabilities/sqli'));
app.use('/nosqli', require('./vulnerabilities/nosqli'));
app.use('/exec', require('./vulnerabilities/exec'));
app.use('/loop', require('./vulnerabilities/loop'));
app.use('/redos', require('./vulnerabilities/redos'));
app.use('/xxe', require('./vulnerabilities/xxe'));
app.use('/ssrf', require('./vulnerabilities/ssrf'));
app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))