webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
mollie
/
mollie-api-php
/
src
/
Idempotency
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
DefaultIdempotencyKeyGe
...
1.153KB
edt
ren
FakeIdempotencyKeyGener
...
0.35KB
edt
ren
IdempotencyKeyGenerator
...
0.116KB
edt
ren
<?php namespace Mollie\Api\Idempotency; use Mollie\Api\Exceptions\IncompatiblePlatform; class DefaultIdempotencyKeyGenerator implements IdempotencyKeyGeneratorContract { const DEFAULT_LENGTH = 16; /** * @var int */ protected $length; public function __construct($length = self::DEFAULT_LENGTH) { $this->length = $length; } /** * @throws \Mollie\Api\Exceptions\IncompatiblePlatform * @return string */ public function generate() { $length = $this->length; $string = ''; while (($len = strlen($string)) < $length) { $size = $length - $len; try { $bytes = random_bytes($size); } catch (\Exception $e) { throw new IncompatiblePlatform( 'PHP function random_bytes missing. Consider overriding the DefaultIdempotencyKeyGenerator with your own.', IncompatiblePlatform::INCOMPATIBLE_RANDOM_BYTES_FUNCTION ); } $string .= substr(str_replace(['/', '+', '='], '', base64_encode($bytes)), 0, $size); } return $string; } }
<=Back
Liking