404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.145.9.174: ~ $
<?php

use League\Flysystem\PhpseclibV2\SftpConnectionProvider as V2Provider;
use League\Flysystem\PhpseclibV3\SftpConnectionProvider as V3Provider;
use phpseclib3\Net\SFTP;

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

$providerName = class_exists(SFTP::class) ? V3Provider::class : V2Provider::class;
$connectionProvider = $providerName::fromArray(
    [
        'host' => 'localhost',
        'username' => 'foo',
        'password' => 'pass',
        'port' => 2222,
    ]
);

$start = time();
$connected = false;

while (time() - $start < 60) {
    try {
        $connectionProvider->provideConnection();
        $connected = true;
        break;
    } catch (Throwable $exception) {
        echo($exception);
        usleep(10000);
    }
}

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

fwrite(STDOUT, "Detected SFTP 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