Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
node_modules /
file-type /
Delete
Unzip
Name
Size
Permission
Date
Action
index.d.ts
6.98
KB
-rw-r--r--
2022-04-21 14:25
index.js
23.09
KB
-rw-r--r--
2022-04-21 14:25
license
1.08
KB
-rw-r--r--
2022-04-21 14:25
package.json
1.9
KB
-rw-r--r--
2022-04-21 14:25
readme.md
12.13
KB
-rw-r--r--
2022-04-21 14:25
supported.js
3.8
KB
-rw-r--r--
2022-04-21 14:25
util.js
2.22
KB
-rw-r--r--
2022-04-21 14:25
Save
Rename
'use strict'; exports.stringToBytes = string => [...string].map(character => character.charCodeAt(0)); const uint8ArrayUtf8ByteString = (array, start, end) => { return String.fromCharCode(...array.slice(start, end)); }; exports.readUInt64LE = (buffer, offset = 0) => { let n = buffer[offset]; let mul = 1; let i = 0; while (++i < 8) { mul *= 0x100; n += buffer[offset + i] * mul; } return n; }; exports.tarHeaderChecksumMatches = buffer => { // Does not check if checksum field characters are valid if (buffer.length < 512) { // `tar` header size, cannot compute checksum without it return false; } const MASK_8TH_BIT = 0x80; let sum = 256; // Intitalize sum, with 256 as sum of 8 spaces in checksum field let signedBitSum = 0; // Initialize signed bit sum for (let i = 0; i < 148; i++) { const byte = buffer[i]; sum += byte; signedBitSum += byte & MASK_8TH_BIT; // Add signed bit to signed bit sum } // Skip checksum field for (let i = 156; i < 512; i++) { const byte = buffer[i]; sum += byte; signedBitSum += byte & MASK_8TH_BIT; // Add signed bit to signed bit sum } const readSum = parseInt(uint8ArrayUtf8ByteString(buffer, 148, 154), 8); // Read sum in header // Some implementations compute checksum incorrectly using signed bytes return ( // Checksum in header equals the sum we calculated readSum === sum || // Checksum in header equals sum we calculated plus signed-to-unsigned delta readSum === (sum - (signedBitSum << 1)) ); }; exports.multiByteIndexOf = (buffer, bytesToSearch, startAt = 0) => { // `Buffer#indexOf()` can search for multiple bytes if (Buffer && Buffer.isBuffer(buffer)) { return buffer.indexOf(Buffer.from(bytesToSearch), startAt); } const nextBytesMatch = (buffer, bytes, startIndex) => { for (let i = 1; i < bytes.length; i++) { if (bytes[i] !== buffer[startIndex + i]) { return false; } } return true; }; // `Uint8Array#indexOf()` can search for only a single byte let index = buffer.indexOf(bytesToSearch[0], startAt); while (index >= 0) { if (nextBytesMatch(buffer, bytesToSearch, index)) { return index; } index = buffer.indexOf(bytesToSearch[0], index + 1); } return -1; }; exports.uint8ArrayUtf8ByteString = uint8ArrayUtf8ByteString;