Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
softmedya.net /
node_modules /
tar /
dist /
esm /
Delete
Unzip
Name
Size
Permission
Date
Action
create.d.ts
165
B
-rw-r--r--
2025-10-09 13:40
create.d.ts.map
192
B
-rw-r--r--
2025-10-09 13:40
create.js
2.11
KB
-rw-r--r--
2025-10-09 13:40
create.js.map
5.2
KB
-rw-r--r--
2025-10-09 13:40
cwd-error.d.ts
214
B
-rw-r--r--
2025-10-09 13:40
cwd-error.d.ts.map
283
B
-rw-r--r--
2025-10-09 13:40
cwd-error.js
310
B
-rw-r--r--
2025-10-09 13:40
cwd-error.js.map
727
B
-rw-r--r--
2025-10-09 13:40
extract.d.ts
177
B
-rw-r--r--
2025-10-09 13:40
extract.d.ts.map
194
B
-rw-r--r--
2025-10-09 13:40
extract.js
1.65
KB
-rw-r--r--
2025-10-09 13:40
extract.js.map
3.55
KB
-rw-r--r--
2025-10-09 13:40
get-write-flag.d.ts
130
B
-rw-r--r--
2025-10-09 13:40
get-write-flag.d.ts.map
168
B
-rw-r--r--
2025-10-09 13:40
get-write-flag.js
1018
B
-rw-r--r--
2025-10-09 13:40
get-write-flag.js.map
1.89
KB
-rw-r--r--
2025-10-09 13:40
header.d.ts
1.46
KB
-rw-r--r--
2025-10-09 13:40
header.d.ts.map
1.79
KB
-rw-r--r--
2025-10-09 13:40
header.js
10.36
KB
-rw-r--r--
2025-10-09 13:40
header.js.map
23.63
KB
-rw-r--r--
2025-10-09 13:40
index.d.ts
945
B
-rw-r--r--
2025-10-09 13:40
index.d.ts.map
827
B
-rw-r--r--
2025-10-09 13:40
index.js
647
B
-rw-r--r--
2025-10-09 13:40
index.js.map
1.59
KB
-rw-r--r--
2025-10-09 13:40
large-numbers.d.ts
275
B
-rw-r--r--
2025-10-09 13:40
large-numbers.d.ts.map
218
B
-rw-r--r--
2025-10-09 13:40
large-numbers.js
2.52
KB
-rw-r--r--
2025-10-09 13:40
large-numbers.js.map
5.76
KB
-rw-r--r--
2025-10-09 13:40
list.d.ts
297
B
-rw-r--r--
2025-10-09 13:40
list.d.ts.map
287
B
-rw-r--r--
2025-10-09 13:40
list.js
3.24
KB
-rw-r--r--
2025-10-09 13:40
list.js.map
7.17
KB
-rw-r--r--
2025-10-09 13:40
make-command.d.ts
4.62
KB
-rw-r--r--
2025-10-09 13:40
make-command.d.ts.map
4.3
KB
-rw-r--r--
2025-10-09 13:40
make-command.js
1.83
KB
-rw-r--r--
2025-10-09 13:40
make-command.js.map
8.86
KB
-rw-r--r--
2025-10-09 13:40
mkdir.d.ts
1008
B
-rw-r--r--
2025-10-09 13:40
mkdir.d.ts.map
749
B
-rw-r--r--
2025-10-09 13:40
mkdir.js
5.6
KB
-rw-r--r--
2025-10-09 13:40
mkdir.js.map
12.96
KB
-rw-r--r--
2025-10-09 13:40
mode-fix.d.ts
129
B
-rw-r--r--
2025-10-09 13:40
mode-fix.d.ts.map
174
B
-rw-r--r--
2025-10-09 13:40
mode-fix.js
753
B
-rw-r--r--
2025-10-09 13:40
mode-fix.js.map
1.36
KB
-rw-r--r--
2025-10-09 13:40
normalize-unicode.d.ts
109
B
-rw-r--r--
2025-10-09 13:40
normalize-unicode.d.ts.map
179
B
-rw-r--r--
2025-10-09 13:40
normalize-unicode.js
869
B
-rw-r--r--
2025-10-09 13:40
normalize-unicode.js.map
1.79
KB
-rw-r--r--
2025-10-09 13:40
normalize-windows-path.d.ts
118
B
-rw-r--r--
2025-10-09 13:40
normalize-windows-path.d.ts.map
184
B
-rw-r--r--
2025-10-09 13:40
normalize-windows-path.js
490
B
-rw-r--r--
2025-10-09 13:40
normalize-windows-path.js.map
950
B
-rw-r--r--
2025-10-09 13:40
options.d.ts
23.34
KB
-rw-r--r--
2025-10-09 13:40
options.d.ts.map
5.76
KB
-rw-r--r--
2025-10-09 13:40
options.js
1.6
KB
-rw-r--r--
2025-10-09 13:40
options.js.map
26.48
KB
-rw-r--r--
2025-10-09 13:40
pack.d.ts
3.66
KB
-rw-r--r--
2025-10-09 13:40
pack.d.ts.map
3.73
KB
-rw-r--r--
2025-10-09 13:40
pack.js
13.52
KB
-rw-r--r--
2025-10-09 13:40
pack.js.map
28.82
KB
-rw-r--r--
2025-10-09 13:40
package.json
23
B
-rw-r--r--
2025-10-09 13:40
parse.d.ts
3.46
KB
-rw-r--r--
2025-10-09 13:40
parse.d.ts.map
3.64
KB
-rw-r--r--
2025-10-09 13:40
parse.js
22.31
KB
-rw-r--r--
2025-10-09 13:40
parse.js.map
41.18
KB
-rw-r--r--
2025-10-09 13:40
path-reservations.d.ts
314
B
-rw-r--r--
2025-10-09 13:40
path-reservations.d.ts.map
419
B
-rw-r--r--
2025-10-09 13:40
path-reservations.js
5.33
KB
-rw-r--r--
2025-10-09 13:40
path-reservations.js.map
10.69
KB
-rw-r--r--
2025-10-09 13:40
pax.d.ts
778
B
-rw-r--r--
2025-10-09 13:40
pax.d.ts.map
883
B
-rw-r--r--
2025-10-09 13:40
pax.js
4.64
KB
-rw-r--r--
2025-10-09 13:40
pax.js.map
9.85
KB
-rw-r--r--
2025-10-09 13:40
read-entry.d.ts
1012
B
-rw-r--r--
2025-10-09 13:40
read-entry.d.ts.map
1.15
KB
-rw-r--r--
2025-10-09 13:40
read-entry.js
4.08
KB
-rw-r--r--
2025-10-09 13:40
read-entry.js.map
8
KB
-rw-r--r--
2025-10-09 13:40
replace.d.ts
121
B
-rw-r--r--
2025-10-09 13:40
replace.d.ts.map
144
B
-rw-r--r--
2025-10-09 13:40
replace.js
7.04
KB
-rw-r--r--
2025-10-09 13:40
replace.js.map
14.94
KB
-rw-r--r--
2025-10-09 13:40
strip-absolute-path.d.ts
117
B
-rw-r--r--
2025-10-09 13:40
strip-absolute-path.d.ts.map
178
B
-rw-r--r--
2025-10-09 13:40
strip-absolute-path.js
1.04
KB
-rw-r--r--
2025-10-09 13:40
strip-absolute-path.js.map
1.88
KB
-rw-r--r--
2025-10-09 13:40
strip-trailing-slashes.d.ts
120
B
-rw-r--r--
2025-10-09 13:40
strip-trailing-slashes.d.ts.map
183
B
-rw-r--r--
2025-10-09 13:40
strip-trailing-slashes.js
489
B
-rw-r--r--
2025-10-09 13:40
strip-trailing-slashes.js.map
1.03
KB
-rw-r--r--
2025-10-09 13:40
symlink-error.d.ts
261
B
-rw-r--r--
2025-10-09 13:40
symlink-error.d.ts.map
321
B
-rw-r--r--
2025-10-09 13:40
symlink-error.js
390
B
-rw-r--r--
2025-10-09 13:40
symlink-error.js.map
837
B
-rw-r--r--
2025-10-09 13:40
types.d.ts
841
B
-rw-r--r--
2025-10-09 13:40
types.d.ts.map
767
B
-rw-r--r--
2025-10-09 13:40
types.js
1.25
KB
-rw-r--r--
2025-10-09 13:40
types.js.map
3.42
KB
-rw-r--r--
2025-10-09 13:40
unpack.d.ts
3.57
KB
-rw-r--r--
2025-10-09 13:40
unpack.d.ts.map
3.75
KB
-rw-r--r--
2025-10-09 13:40
unpack.js
29.5
KB
-rw-r--r--
2025-10-09 13:40
unpack.js.map
56.84
KB
-rw-r--r--
2025-10-09 13:40
update.d.ts
119
B
-rw-r--r--
2025-10-09 13:40
update.d.ts.map
140
B
-rw-r--r--
2025-10-09 13:40
update.js
1006
B
-rw-r--r--
2025-10-09 13:40
update.js.map
2.27
KB
-rw-r--r--
2025-10-09 13:40
warn-method.d.ts
929
B
-rw-r--r--
2025-10-09 13:40
warn-method.d.ts.map
1.09
KB
-rw-r--r--
2025-10-09 13:40
warn-method.js
795
B
-rw-r--r--
2025-10-09 13:40
warn-method.js.map
2.53
KB
-rw-r--r--
2025-10-09 13:40
winchars.d.ts
142
B
-rw-r--r--
2025-10-09 13:40
winchars.d.ts.map
195
B
-rw-r--r--
2025-10-09 13:40
winchars.js
549
B
-rw-r--r--
2025-10-09 13:40
winchars.js.map
1.6
KB
-rw-r--r--
2025-10-09 13:40
write-entry.d.ts
4.49
KB
-rw-r--r--
2025-10-09 13:40
write-entry.d.ts.map
4.72
KB
-rw-r--r--
2025-10-09 13:40
write-entry.js
22.25
KB
-rw-r--r--
2025-10-09 13:40
write-entry.js.map
47.25
KB
-rw-r--r--
2025-10-09 13:40
Save
Rename
// tar -r import { WriteStream, WriteStreamSync } from '@isaacs/fs-minipass'; import fs from 'node:fs'; import path from 'node:path'; import { Header } from './header.js'; import { list } from './list.js'; import { makeCommand } from './make-command.js'; import { isFile, } from './options.js'; import { Pack, PackSync } from './pack.js'; // starting at the head of the file, read a Header // If the checksum is invalid, that's our position to start writing // If it is, jump forward by the specified size (round up to 512) // and try again. // Write the new Pack stream starting there. const replaceSync = (opt, files) => { const p = new PackSync(opt); let threw = true; let fd; let position; try { try { fd = fs.openSync(opt.file, 'r+'); } catch (er) { if (er?.code === 'ENOENT') { fd = fs.openSync(opt.file, 'w+'); } else { throw er; } } const st = fs.fstatSync(fd); const headBuf = Buffer.alloc(512); POSITION: for (position = 0; position < st.size; position += 512) { for (let bufPos = 0, bytes = 0; bufPos < 512; bufPos += bytes) { bytes = fs.readSync(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos); if (position === 0 && headBuf[0] === 0x1f && headBuf[1] === 0x8b) { throw new Error('cannot append to compressed archives'); } if (!bytes) { break POSITION; } } const h = new Header(headBuf); if (!h.cksumValid) { break; } const entryBlockSize = 512 * Math.ceil((h.size || 0) / 512); if (position + entryBlockSize + 512 > st.size) { break; } // the 512 for the header we just parsed will be added as well // also jump ahead all the blocks for the body position += entryBlockSize; if (opt.mtimeCache && h.mtime) { opt.mtimeCache.set(String(h.path), h.mtime); } } threw = false; streamSync(opt, p, position, fd, files); } finally { if (threw) { try { fs.closeSync(fd); } catch (er) { } } } }; const streamSync = (opt, p, position, fd, files) => { const stream = new WriteStreamSync(opt.file, { fd: fd, start: position, }); p.pipe(stream); addFilesSync(p, files); }; const replaceAsync = (opt, files) => { files = Array.from(files); const p = new Pack(opt); const getPos = (fd, size, cb_) => { const cb = (er, pos) => { if (er) { fs.close(fd, _ => cb_(er)); } else { cb_(null, pos); } }; let position = 0; if (size === 0) { return cb(null, 0); } let bufPos = 0; const headBuf = Buffer.alloc(512); const onread = (er, bytes) => { if (er || typeof bytes === 'undefined') { return cb(er); } bufPos += bytes; if (bufPos < 512 && bytes) { return fs.read(fd, headBuf, bufPos, headBuf.length - bufPos, position + bufPos, onread); } if (position === 0 && headBuf[0] === 0x1f && headBuf[1] === 0x8b) { return cb(new Error('cannot append to compressed archives')); } // truncated header if (bufPos < 512) { return cb(null, position); } const h = new Header(headBuf); if (!h.cksumValid) { return cb(null, position); } /* c8 ignore next */ const entryBlockSize = 512 * Math.ceil((h.size ?? 0) / 512); if (position + entryBlockSize + 512 > size) { return cb(null, position); } position += entryBlockSize + 512; if (position >= size) { return cb(null, position); } if (opt.mtimeCache && h.mtime) { opt.mtimeCache.set(String(h.path), h.mtime); } bufPos = 0; fs.read(fd, headBuf, 0, 512, position, onread); }; fs.read(fd, headBuf, 0, 512, position, onread); }; const promise = new Promise((resolve, reject) => { p.on('error', reject); let flag = 'r+'; const onopen = (er, fd) => { if (er && er.code === 'ENOENT' && flag === 'r+') { flag = 'w+'; return fs.open(opt.file, flag, onopen); } if (er || !fd) { return reject(er); } fs.fstat(fd, (er, st) => { if (er) { return fs.close(fd, () => reject(er)); } getPos(fd, st.size, (er, position) => { if (er) { return reject(er); } const stream = new WriteStream(opt.file, { fd: fd, start: position, }); p.pipe(stream); stream.on('error', reject); stream.on('close', resolve); addFilesAsync(p, files); }); }); }; fs.open(opt.file, flag, onopen); }); return promise; }; const addFilesSync = (p, files) => { files.forEach(file => { if (file.charAt(0) === '@') { list({ file: path.resolve(p.cwd, file.slice(1)), sync: true, noResume: true, onReadEntry: entry => p.add(entry), }); } else { p.add(file); } }); p.end(); }; const addFilesAsync = async (p, files) => { for (let i = 0; i < files.length; i++) { const file = String(files[i]); if (file.charAt(0) === '@') { await list({ file: path.resolve(String(p.cwd), file.slice(1)), noResume: true, onReadEntry: entry => p.add(entry), }); } else { p.add(file); } } p.end(); }; export const replace = makeCommand(replaceSync, replaceAsync, /* c8 ignore start */ () => { throw new TypeError('file is required'); }, () => { throw new TypeError('file is required'); }, /* c8 ignore stop */ (opt, entries) => { if (!isFile(opt)) { throw new TypeError('file is required'); } if (opt.gzip || opt.brotli || opt.zstd || opt.file.endsWith('.br') || opt.file.endsWith('.tbr')) { throw new TypeError('cannot append to compressed archives'); } if (!entries?.length) { throw new TypeError('no paths specified to add/replace'); } }); //# sourceMappingURL=replace.js.map