__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Aws\S3\Crypto;
use Aws\AwsClientInterface;
use Aws\Middleware;
use Psr\Http\Message\RequestInterface;
trait UserAgentTrait
{
private function appendUserAgent(AwsClientInterface $client, $agentString)
{
$list = $client->getHandlerList();
$list->appendBuild(Middleware::mapRequest(
function(RequestInterface $req) use ($agentString) {
if (!empty($req->getHeader('User-Agent'))
&& !empty($req->getHeader('User-Agent')[0])
) {
$userAgent = $req->getHeader('User-Agent')[0];
if (strpos($userAgent, $agentString) === false) {
$userAgent .= " {$agentString}";
};
} else {
$userAgent = $agentString;
}
$req = $req->withHeader('User-Agent', $userAgent);
return $req;
}
));
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CryptoParamsTrait.php | File | 2.51 KB | 0777 |
|
| CryptoParamsTraitV2.php | File | 505 B | 0777 |
|
| HeadersMetadataStrategy.php | File | 1.58 KB | 0777 |
|
| InstructionFileMetadataStrategy.php | File | 2.9 KB | 0777 |
|
| S3EncryptionClient.php | File | 13.42 KB | 0777 |
|
| S3EncryptionClientV2.php | File | 17.93 KB | 0777 |
|
| S3EncryptionMultipartUploader.php | File | 6.65 KB | 0777 |
|
| S3EncryptionMultipartUploaderV2.php | File | 7.26 KB | 0777 |
|
| UserAgentTrait.php | File | 968 B | 0777 |
|