Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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 /
cqt /
node_modules /
yaml /
dist /
compose /
[ HOME SHELL ]
Name
Size
Permission
Action
compose-collection.d.ts
594
B
-rw-r--r--
compose-collection.js
3.53
KB
-rw-r--r--
compose-doc.d.ts
641
B
-rw-r--r--
compose-doc.js
1.58
KB
-rw-r--r--
compose-node.d.ts
1.22
KB
-rw-r--r--
compose-node.js
3.87
KB
-rw-r--r--
compose-scalar.d.ts
405
B
-rw-r--r--
compose-scalar.js
3.37
KB
-rw-r--r--
composer.d.ts
2.58
KB
-rw-r--r--
composer.js
8.36
KB
-rw-r--r--
resolve-block-map.d.ts
467
B
-rw-r--r--
resolve-block-map.js
4.95
KB
-rw-r--r--
resolve-block-scalar.d.ts
494
B
-rw-r--r--
resolve-block-scalar.js
7.32
KB
-rw-r--r--
resolve-block-seq.d.ts
477
B
-rw-r--r--
resolve-block-seq.js
1.78
KB
-rw-r--r--
resolve-end.d.ts
289
B
-rw-r--r--
resolve-end.js
1.23
KB
-rw-r--r--
resolve-flow-collection.d.ts
658
B
-rw-r--r--
resolve-flow-collection.js
8.74
KB
-rw-r--r--
resolve-flow-scalar.d.ts
444
B
-rw-r--r--
resolve-flow-scalar.js
7.19
KB
-rw-r--r--
resolve-props.d.ts
854
B
-rw-r--r--
resolve-props.js
5.46
KB
-rw-r--r--
util-contains-newline.d.ts
134
B
-rw-r--r--
util-contains-newline.js
1.06
KB
-rw-r--r--
util-empty-scalar-position.d.t...
164
B
-rw-r--r--
util-empty-scalar-position.js
871
B
-rw-r--r--
util-flow-indent-check.d.ts
211
B
-rw-r--r--
util-flow-indent-check.js
547
B
-rw-r--r--
util-map-includes.d.ts
269
B
-rw-r--r--
util-map-includes.js
471
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : resolve-flow-scalar.js
'use strict'; var Scalar = require('../nodes/Scalar.js'); var resolveEnd = require('./resolve-end.js'); function resolveFlowScalar(scalar, strict, onError) { const { offset, type, source, end } = scalar; let _type; let value; const _onError = (rel, code, msg) => onError(offset + rel, code, msg); switch (type) { case 'scalar': _type = Scalar.Scalar.PLAIN; value = plainValue(source, _onError); break; case 'single-quoted-scalar': _type = Scalar.Scalar.QUOTE_SINGLE; value = singleQuotedValue(source, _onError); break; case 'double-quoted-scalar': _type = Scalar.Scalar.QUOTE_DOUBLE; value = doubleQuotedValue(source, _onError); break; /* istanbul ignore next should not happen */ default: onError(scalar, 'UNEXPECTED_TOKEN', `Expected a flow scalar value, but found: ${type}`); return { value: '', type: null, comment: '', range: [offset, offset + source.length, offset + source.length] }; } const valueEnd = offset + source.length; const re = resolveEnd.resolveEnd(end, valueEnd, strict, onError); return { value, type: _type, comment: re.comment, range: [offset, valueEnd, re.offset] }; } function plainValue(source, onError) { let badChar = ''; switch (source[0]) { /* istanbul ignore next should not happen */ case '\t': badChar = 'a tab character'; break; case ',': badChar = 'flow indicator character ,'; break; case '%': badChar = 'directive indicator character %'; break; case '|': case '>': { badChar = `block scalar indicator ${source[0]}`; break; } case '@': case '`': { badChar = `reserved character ${source[0]}`; break; } } if (badChar) onError(0, 'BAD_SCALAR_START', `Plain value cannot start with ${badChar}`); return foldLines(source); } function singleQuotedValue(source, onError) { if (source[source.length - 1] !== "'" || source.length === 1) onError(source.length, 'MISSING_CHAR', "Missing closing 'quote"); return foldLines(source.slice(1, -1)).replace(/''/g, "'"); } function foldLines(source) { /** * The negative lookbehind here and in the `re` RegExp is to * prevent causing a polynomial search time in certain cases. * * The try-catch is for Safari, which doesn't support this yet: * https://caniuse.com/js-regexp-lookbehind */ let first, line; try { first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy'); line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy'); } catch { first = /(.*?)[ \t]*\r?\n/sy; line = /[ \t]*(.*?)[ \t]*\r?\n/sy; } let match = first.exec(source); if (!match) return source; let res = match[1]; let sep = ' '; let pos = first.lastIndex; line.lastIndex = pos; while ((match = line.exec(source))) { if (match[1] === '') { if (sep === '\n') res += sep; else sep = '\n'; } else { res += sep + match[1]; sep = ' '; } pos = line.lastIndex; } const last = /[ \t]*(.*)/sy; last.lastIndex = pos; match = last.exec(source); return res + sep + (match?.[1] ?? ''); } function doubleQuotedValue(source, onError) { let res = ''; for (let i = 1; i < source.length - 1; ++i) { const ch = source[i]; if (ch === '\r' && source[i + 1] === '\n') continue; if (ch === '\n') { const { fold, offset } = foldNewline(source, i); res += fold; i = offset; } else if (ch === '\\') { let next = source[++i]; const cc = escapeCodes[next]; if (cc) res += cc; else if (next === '\n') { // skip escaped newlines, but still trim the following line next = source[i + 1]; while (next === ' ' || next === '\t') next = source[++i + 1]; } else if (next === '\r' && source[i + 1] === '\n') { // skip escaped CRLF newlines, but still trim the following line next = source[++i + 1]; while (next === ' ' || next === '\t') next = source[++i + 1]; } else if (next === 'x' || next === 'u' || next === 'U') { const length = { x: 2, u: 4, U: 8 }[next]; res += parseCharCode(source, i + 1, length, onError); i += length; } else { const raw = source.substr(i - 1, 2); onError(i - 1, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`); res += raw; } } else if (ch === ' ' || ch === '\t') { // trim trailing whitespace const wsStart = i; let next = source[i + 1]; while (next === ' ' || next === '\t') next = source[++i + 1]; if (next !== '\n' && !(next === '\r' && source[i + 2] === '\n')) res += i > wsStart ? source.slice(wsStart, i + 1) : ch; } else { res += ch; } } if (source[source.length - 1] !== '"' || source.length === 1) onError(source.length, 'MISSING_CHAR', 'Missing closing "quote'); return res; } /** * Fold a single newline into a space, multiple newlines to N - 1 newlines. * Presumes `source[offset] === '\n'` */ function foldNewline(source, offset) { let fold = ''; let ch = source[offset + 1]; while (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') { if (ch === '\r' && source[offset + 2] !== '\n') break; if (ch === '\n') fold += '\n'; offset += 1; ch = source[offset + 1]; } if (!fold) fold = ' '; return { fold, offset }; } const escapeCodes = { '0': '\0', // null character a: '\x07', // bell character b: '\b', // backspace e: '\x1b', // escape character f: '\f', // form feed n: '\n', // line feed r: '\r', // carriage return t: '\t', // horizontal tab v: '\v', // vertical tab N: '\u0085', // Unicode next line _: '\u00a0', // Unicode non-breaking space L: '\u2028', // Unicode line separator P: '\u2029', // Unicode paragraph separator ' ': ' ', '"': '"', '/': '/', '\\': '\\', '\t': '\t' }; function parseCharCode(source, offset, length, onError) { const cc = source.substr(offset, length); const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc); const code = ok ? parseInt(cc, 16) : NaN; if (isNaN(code)) { const raw = source.substr(offset - 2, length + 2); onError(offset - 2, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`); return raw; } return String.fromCodePoint(code); } exports.resolveFlowScalar = resolveFlowScalar;
Close