Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 52.14.238.102
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
locate-path /
Delete
Unzip
Name
Size
Permission
Date
Action
index.d.ts
1.54
KB
-rw-rw-r--
2022-08-30 11:49
index.js
1.3
KB
-rw-rw-r--
2022-08-30 11:49
license
1.08
KB
-rw-rw-r--
2022-08-30 11:49
package.json
720
B
-rw-rw-r--
2022-08-30 11:49
readme.md
1.8
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
'use strict'; const path = require('path'); const fs = require('fs'); const {promisify} = require('util'); const pLocate = require('p-locate'); const fsStat = promisify(fs.stat); const fsLStat = promisify(fs.lstat); const typeMappings = { directory: 'isDirectory', file: 'isFile' }; function checkType({type}) { if (type in typeMappings) { return; } throw new Error(`Invalid type specified: ${type}`); } const matchType = (type, stat) => type === undefined || stat[typeMappings[type]](); module.exports = async (paths, options) => { options = { cwd: process.cwd(), type: 'file', allowSymlinks: true, ...options }; checkType(options); const statFn = options.allowSymlinks ? fsStat : fsLStat; return pLocate(paths, async path_ => { try { const stat = await statFn(path.resolve(options.cwd, path_)); return matchType(options.type, stat); } catch (_) { return false; } }, options); }; module.exports.sync = (paths, options) => { options = { cwd: process.cwd(), allowSymlinks: true, type: 'file', ...options }; checkType(options); const statFn = options.allowSymlinks ? fs.statSync : fs.lstatSync; for (const path_ of paths) { try { const stat = statFn(path.resolve(options.cwd, path_)); if (matchType(options.type, stat)) { return path_; } } catch (_) { } } };