Linux bear.hostingplus.cl 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
LiteSpeed
Server IP : 192.140.57.17 & Your IP : 216.73.216.106
Domains :
Cant Read [ /etc/named.conf ]
User : explo
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
bitninja-threat-hunting /
node_modules /
ws /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
buffer-util.js
2.9
KB
-rw-r--r--
2024-07-01 08:57
constants.js
360
B
-rw-r--r--
2024-07-01 08:57
event-target.js
7.15
KB
-rw-r--r--
2024-07-01 08:57
extension.js
6.04
KB
-rw-r--r--
2024-07-01 08:57
limiter.js
1.01
KB
-rw-r--r--
2024-07-01 08:57
permessage-deflate.js
13.69
KB
-rw-r--r--
2024-07-01 08:57
receiver.js
14.17
KB
-rw-r--r--
2024-07-01 08:57
sender.js
12.37
KB
-rw-r--r--
2024-07-01 08:57
stream.js
3.99
KB
-rw-r--r--
2024-07-01 08:57
subprotocol.js
1.46
KB
-rw-r--r--
2024-07-01 08:57
validation.js
3.12
KB
-rw-r--r--
2024-07-01 08:57
websocket-server.js
15.46
KB
-rw-r--r--
2024-07-01 08:57
websocket.js
33.07
KB
-rw-r--r--
2024-07-01 08:57
Save
Rename
'use strict'; const { tokenChars } = require('./validation'); /** * Parses the `Sec-WebSocket-Protocol` header into a set of subprotocol names. * * @param {String} header The field value of the header * @return {Set} The subprotocol names * @public */ function parse(header) { const protocols = new Set(); let start = -1; let end = -1; let i = 0; for (i; i < header.length; i++) { const code = header.charCodeAt(i); if (end === -1 && tokenChars[code] === 1) { if (start === -1) start = i; } else if ( i !== 0 && (code === 0x20 /* ' ' */ || code === 0x09) /* '\t' */ ) { if (end === -1 && start !== -1) end = i; } else if (code === 0x2c /* ',' */) { if (start === -1) { throw new SyntaxError(`Unexpected character at index ${i}`); } if (end === -1) end = i; const protocol = header.slice(start, end); if (protocols.has(protocol)) { throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`); } protocols.add(protocol); start = end = -1; } else { throw new SyntaxError(`Unexpected character at index ${i}`); } } if (start === -1 || end !== -1) { throw new SyntaxError('Unexpected end of input'); } const protocol = header.slice(start, i); if (protocols.has(protocol)) { throw new SyntaxError(`The "${protocol}" subprotocol is duplicated`); } protocols.add(protocol); return protocols; } module.exports = { parse };