Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.117.157.139
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
league /
glide /
src /
Signatures /
Delete
Unzip
Name
Size
Permission
Date
Action
Signature.php
1.74
KB
-rw-r--r--
2020-11-05 09:00
SignatureException.php
106
B
-rw-r--r--
2020-11-05 09:00
SignatureFactory.php
346
B
-rw-r--r--
2020-11-05 09:00
SignatureInterface.php
635
B
-rw-r--r--
2020-11-05 09:00
Save
Rename
<?php namespace League\Glide\Signatures; class Signature implements SignatureInterface { /** * Secret key used to generate signature. * @var string */ protected $signKey; /** * Create Signature instance. * @param string $signKey Secret key used to generate signature. */ public function __construct($signKey) { $this->signKey = $signKey; } /** * Add an HTTP signature to manipulation parameters. * @param string $path The resource path. * @param array $params The manipulation parameters. * @return array The updated manipulation parameters. */ public function addSignature($path, array $params) { return array_merge($params, ['s' => $this->generateSignature($path, $params)]); } /** * Validate a request signature. * @param string $path The resource path. * @param array $params The manipulation params. * @throws SignatureException */ public function validateRequest($path, array $params) { if (!isset($params['s'])) { throw new SignatureException('Signature is missing.'); } if ($params['s'] !== $this->generateSignature($path, $params)) { throw new SignatureException('Signature is not valid.'); } } /** * Generate an HTTP signature. * @param string $path The resource path. * @param array $params The manipulation parameters. * @return string The generated HTTP signature. */ public function generateSignature($path, array $params) { unset($params['s']); ksort($params); return md5($this->signKey.':'.ltrim($path, '/').'?'.http_build_query($params)); } }