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 /
events /
node_modules /
get-uri /
dist /
[ HOME SHELL ]
Name
Size
Permission
Action
data.d.ts
428
B
-rw-rw-r--
data.js
1.6
KB
-rw-rw-r--
data.js.map
1.08
KB
-rw-rw-r--
file.d.ts
555
B
-rw-rw-r--
file.js
2.08
KB
-rw-rw-r--
file.js.map
1.33
KB
-rw-rw-r--
ftp.d.ts
410
B
-rw-rw-r--
ftp.js
3.12
KB
-rw-rw-r--
ftp.js.map
2.27
KB
-rw-rw-r--
http-error.d.ts
236
B
-rw-rw-r--
http-error.js
506
B
-rw-rw-r--
http-error.js.map
420
B
-rw-rw-r--
http.d.ts
872
B
-rw-rw-r--
http.js
7.08
KB
-rw-rw-r--
http.js.map
5.07
KB
-rw-rw-r--
https.d.ts
195
B
-rw-rw-r--
https.js
544
B
-rw-rw-r--
https.js.map
318
B
-rw-rw-r--
index.d.ts
1.7
KB
-rw-rw-r--
index.js
2.09
KB
-rw-rw-r--
index.js.map
1.13
KB
-rw-rw-r--
notfound.d.ts
280
B
-rw-rw-r--
notfound.js
499
B
-rw-rw-r--
notfound.js.map
262
B
-rw-rw-r--
notmodified.d.ts
264
B
-rw-rw-r--
notmodified.js
538
B
-rw-rw-r--
notmodified.js.map
270
B
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ftp.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ftp = void 0; const basic_ftp_1 = require("basic-ftp"); const stream_1 = require("stream"); const path_1 = require("path"); const debug_1 = __importDefault(require("debug")); const notfound_1 = __importDefault(require("./notfound")); const notmodified_1 = __importDefault(require("./notmodified")); const debug = (0, debug_1.default)('get-uri:ftp'); /** * Returns a Readable stream from an "ftp:" URI. */ const ftp = async (url, opts = {}) => { const { cache } = opts; const filepath = decodeURIComponent(url.pathname); let lastModified; if (!filepath) { throw new TypeError('No "pathname"!'); } const client = new basic_ftp_1.Client(); try { const host = url.hostname || url.host || 'localhost'; const port = parseInt(url.port || '0', 10) || 21; const user = url.username ? decodeURIComponent(url.username) : undefined; const password = url.password ? decodeURIComponent(url.password) : undefined; await client.access({ host, port, user, password, ...opts, }); // first we have to figure out the Last Modified date. // try the MDTM command first, which is an optional extension command. try { lastModified = await client.lastMod(filepath); } catch (err) { // handle the "file not found" error code if (err.code === 550) { throw new notfound_1.default(); } } if (!lastModified) { // Try to get the last modified date via the LIST command (uses // more bandwidth, but is more compatible with older FTP servers const list = await client.list((0, path_1.dirname)(filepath)); // attempt to find the "entry" with a matching "name" const name = (0, path_1.basename)(filepath); const entry = list.find((e) => e.name === name); if (entry) { lastModified = entry.modifiedAt; } } if (lastModified) { if (isNotModified()) { throw new notmodified_1.default(); } } else { throw new notfound_1.default(); } const stream = new stream_1.PassThrough(); const rs = stream; client.downloadTo(stream, filepath).then((result) => { debug(result.message); client.close(); }); rs.lastModified = lastModified; return rs; } catch (err) { client.close(); throw err; } // called when `lastModified` is set, and a "cache" stream was provided function isNotModified() { if (cache?.lastModified && lastModified) { return +cache.lastModified === +lastModified; } return false; } }; exports.ftp = ftp; //# sourceMappingURL=ftp.js.map
Close