first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
24
node/CVE-2017-14849/www/app.js
Normal file
24
node/CVE-2017-14849/www/app.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const express = require('express')
|
||||
const app = express()
|
||||
const path = require('path')
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send(`<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Hello vulhub!</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<input v-model="name">
|
||||
<p>Hello {{ name }}</p>
|
||||
</div>
|
||||
<script src="//cdn.bootcss.com/vue/2.4.4/vue.min.js"></script>
|
||||
<script src="/static/main.js"></script>
|
||||
</body>
|
||||
</html>`)
|
||||
})
|
||||
|
||||
app.use('/static', express.static(path.join(__dirname, 'static')));
|
||||
|
||||
app.listen(3000, () => console.log('Example app listening on port 3000!'))
|
6
node/CVE-2017-14849/www/static/main.js
Normal file
6
node/CVE-2017-14849/www/static/main.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var app = new Vue({
|
||||
el: '#app',
|
||||
data: {
|
||||
name: 'Vulhub'
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user