���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
portal-cutunix
/
vendor
/
laravel
/
reverb
/
src
/
Viewing: Certificate.php
<?php namespace Laravel\Reverb; class Certificate { /** * Determine if the certificate exists. */ public static function exists(string $url): bool { return static::resolve($url) !== null; } /** * Resolve the certificate and key for the given URL. * * @return array<int, string>|null */ public static function resolve(string $url): ?array { $host = parse_url($url, PHP_URL_HOST) ?: $url; $certificate = $host.'.crt'; $key = $host.'.key'; foreach (static::paths() as $path) { if (file_exists($path.$certificate) && file_exists($path.$key)) { return [$path.$certificate, $path.$key]; } } return null; } /** * Get the certificate paths. * * @return array<int, string> */ public static function paths(): array { return [ static::herdPath(), static::valetPath(), ]; } /** * Get the Herd certificate path. */ public static function herdPath(): string { if (PHP_OS_FAMILY === 'Windows') { return implode(DIRECTORY_SEPARATOR, [getenv('USERPROFILE') ?: $_SERVER['HOME'] ?? '', '.config', 'herd', 'config', 'valet', 'Certificates', '']); } return implode(DIRECTORY_SEPARATOR, [$_SERVER['HOME'] ?? '', 'Library', 'Application Support', 'Herd', 'config', 'valet', 'Certificates', '']); } /** * Get the Valet certificate path. */ public static function valetPath(): string { return implode(DIRECTORY_SEPARATOR, [$_SERVER['HOME'] ?? '', '.config', 'valet', 'Certificates', '']); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa