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/memfs/lib/snapshot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/parsmega.nuxt/node_modules/memfs/lib/snapshot/sync.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromSnapshotSync = exports.toSnapshotSync = void 0;
const toSnapshotSync = ({ fs, path = '/', separator = '/' }) => {
    const stats = fs.lstatSync(path);
    if (stats.isDirectory()) {
        const list = fs.readdirSync(path);
        const entries = {};
        const dir = path.endsWith(separator) ? path : path + separator;
        for (const child of list) {
            const childSnapshot = (0, exports.toSnapshotSync)({ fs, path: `${dir}${child}`, separator });
            if (childSnapshot)
                entries['' + child] = childSnapshot;
        }
        return [0 /* SnapshotNodeType.Folder */, {}, entries];
    }
    else if (stats.isFile()) {
        const buf = fs.readFileSync(path);
        const uint8 = new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
        return [1 /* SnapshotNodeType.File */, {}, uint8];
    }
    else if (stats.isSymbolicLink()) {
        return [
            2 /* SnapshotNodeType.Symlink */,
            {
                target: fs.readlinkSync(path).toString(),
            },
        ];
    }
    return null;
};
exports.toSnapshotSync = toSnapshotSync;
const fromSnapshotSync = (snapshot, { fs, path = '/', separator = '/' }) => {
    if (!snapshot)
        return;
    switch (snapshot[0]) {
        case 0 /* SnapshotNodeType.Folder */: {
            if (!path.endsWith(separator))
                path = path + separator;
            const [, , entries] = snapshot;
            fs.mkdirSync(path, { recursive: true });
            for (const [name, child] of Object.entries(entries))
                (0, exports.fromSnapshotSync)(child, { fs, path: `${path}${name}`, separator });
            break;
        }
        case 1 /* SnapshotNodeType.File */: {
            const [, , data] = snapshot;
            fs.writeFileSync(path, data);
            break;
        }
        case 2 /* SnapshotNodeType.Symlink */: {
            const [, { target }] = snapshot;
            fs.symlinkSync(target, path);
            break;
        }
    }
};
exports.fromSnapshotSync = fromSnapshotSync;
//# sourceMappingURL=sync.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit