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 : 18.188.73.229
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 /
yargs /
build /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
typings
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
utils
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
argsert.js
2.42
KB
-rw-rw-r--
2022-08-30 11:49
command.js
17.71
KB
-rw-rw-r--
2022-08-30 11:49
completion-templates.js
1.42
KB
-rw-rw-r--
2022-08-30 11:49
completion.js
9.44
KB
-rw-rw-r--
2022-08-30 11:49
middleware.js
3.15
KB
-rw-rw-r--
2022-08-30 11:49
parse-command.js
1.04
KB
-rw-rw-r--
2022-08-30 11:49
usage.js
20.48
KB
-rw-rw-r--
2022-08-30 11:49
validation.js
12.36
KB
-rw-rw-r--
2022-08-30 11:49
yargs-factory.js
74.23
KB
-rw-rw-r--
2022-08-30 11:49
yerror.js
181
B
-rw-rw-r--
2022-08-30 11:49
Save
Rename
export function parseCommand(cmd) { const extraSpacesStrippedCommand = cmd.replace(/\s{2,}/g, ' '); const splitCommand = extraSpacesStrippedCommand.split(/\s+(?![^[]*]|[^<]*>)/); const bregex = /\.*[\][<>]/g; const firstCommand = splitCommand.shift(); if (!firstCommand) throw new Error(`No command found in: ${cmd}`); const parsedCommand = { cmd: firstCommand.replace(bregex, ''), demanded: [], optional: [], }; splitCommand.forEach((cmd, i) => { let variadic = false; cmd = cmd.replace(/\s/g, ''); if (/\.+[\]>]/.test(cmd) && i === splitCommand.length - 1) variadic = true; if (/^\[/.test(cmd)) { parsedCommand.optional.push({ cmd: cmd.replace(bregex, '').split('|'), variadic, }); } else { parsedCommand.demanded.push({ cmd: cmd.replace(bregex, '').split('|'), variadic, }); } }); return parsedCommand; }