404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.138.137.150: ~ $
<?php

use League\Flysystem\Ftp\FtpConnectionOptions;
use League\Flysystem\Ftp\FtpConnectionProvider;

include __DIR__ . '/../vendor/autoload.php';

$options = FtpConnectionOptions::fromArray([
   'host' => 'localhost',
   'port' => (int) ($argv[1] ?? 2122),
   'root' => '/',
   'username' => 'foo',
   'password' => 'pass',
]);

$provider = new FtpConnectionProvider();
$start = time();
$connected = false;

while (time() - $start < 60) {
    try {
        $provider->createConnection($options);
        $connected = true;
        break;
    } catch (Throwable $exception) {
        if (time() - $start < 30) {
            fwrite(STDOUT, "Exception while trying to connect:'\n");
            fwrite(STDOUT, (string) $exception);
            fwrite(STDOUT, "\n\n");
        }
        usleep(10000);
    }
}

if ( ! $connected) {
    fwrite(STDERR, "Unable to start FTP server.\n");
    exit(1);
}

fwrite(STDOUT, "Detected FTP server successfully.\n");

Filemanager

Name Type Size Permission Actions
sftp Folder 0755
toxiproxy Folder 0755
.gitignore File 8 B 0644
wait_for_ftp.php File 994 B 0644
wait_for_sftp.php File 933 B 0644