403Webshell
Server IP : 185.208.173.17  /  Your IP : 87.236.161.98
Web Server : Microsoft-IIS/10.0
System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64
User : IUSR ( 0)
PHP Version : 7.4.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/parsmega.nuxt/node_modules/@jsonjoy.com/base64/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/parsmega.nuxt/node_modules/@jsonjoy.com/base64/lib/createToBase64.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createToBase64 = void 0;
const flatstr_1 = require("./util/strings/flatstr");
const constants_1 = require("./constants");
const createToBase64 = (chars = constants_1.alphabet, pad = '=') => {
    if (chars.length !== 64)
        throw new Error('chars must be 64 characters long');
    const table = chars.split('');
    const table2 = [];
    for (const c1 of table) {
        for (const c2 of table) {
            const two = (0, flatstr_1.flatstr)(c1 + c2);
            table2.push(two);
        }
    }
    const E = pad;
    const EE = (0, flatstr_1.flatstr)(pad + pad);
    return (uint8, length) => {
        let out = '';
        const extraLength = length % 3;
        const baseLength = length - extraLength;
        for (let i = 0; i < baseLength; i += 3) {
            const o1 = uint8[i];
            const o2 = uint8[i + 1];
            const o3 = uint8[i + 2];
            const v1 = (o1 << 4) | (o2 >> 4);
            const v2 = ((o2 & 0b1111) << 8) | o3;
            out += table2[v1] + table2[v2];
        }
        if (!extraLength)
            return out;
        if (extraLength === 1) {
            const o1 = uint8[baseLength];
            out += table2[o1 << 4] + EE;
        }
        else {
            const o1 = uint8[baseLength];
            const o2 = uint8[baseLength + 1];
            const v1 = (o1 << 4) | (o2 >> 4);
            const v2 = (o2 & 0b1111) << 2;
            out += table2[v1] + table[v2] + E;
        }
        return out;
    };
};
exports.createToBase64 = createToBase64;
//# sourceMappingURL=createToBase64.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit