__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Aws\Credentials;
final class CredentialsUtils
{
/**
* Determines whether a given host
* is a loopback address.
*
* @param $host
*
* @return bool
*/
public static function isLoopBackAddress($host): bool
{
if (!filter_var($host, FILTER_VALIDATE_IP)) {
return false;
}
if (filter_var($host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
if ($host === '::1') {
return true;
}
return false;
}
$loopbackStart = ip2long('127.0.0.0');
$loopbackEnd = ip2long('127.255.255.255');
$ipLong = ip2long($host);
return ($ipLong >= $loopbackStart && $ipLong <= $loopbackEnd);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AssumeRoleCredentialProvider.php | File | 1.89 KB | 0777 |
|
| AssumeRoleWithWebIdentityCredentialProvider.php | File | 5.97 KB | 0777 |
|
| CredentialProvider.php | File | 36.9 KB | 0777 |
|
| Credentials.php | File | 3.18 KB | 0777 |
|
| CredentialsInterface.php | File | 1.11 KB | 0777 |
|
| CredentialsUtils.php | File | 759 B | 0777 |
|
| EcsCredentialProvider.php | File | 7.79 KB | 0777 |
|
| InstanceProfileProvider.php | File | 16.24 KB | 0777 |
|