Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
php-debugbar
/
php-debugbar
/
src
/
DebugBar
/
DataCollector
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
PDO
--
ren
AggregatedCollector.php
4.113KB
edt
ren
AssetProvider.php
1.639KB
edt
ren
ConfigCollector.php
1.952KB
edt
ren
DataCollector.php
0.576KB
edt
ren
DataCollectorInterface.php
0.586KB
edt
ren
ExceptionsCollector.php
7.553KB
edt
ren
LocalizationCollector.php
1.374KB
edt
ren
MemoryCollector.php
2.782KB
edt
ren
MessagesAggregateInterf
...
0.409KB
edt
ren
MessagesCollector.php
8.189KB
edt
ren
ObjectCountCollector.php
3.267KB
edt
ren
PhpInfoCollector.php
1.015KB
edt
ren
Renderable.php
0.586KB
edt
ren
RequestDataCollector.php
3.42KB
edt
ren
TimeDataCollector.php
7.27KB
edt
ren
<?php /* * This file is part of the DebugBar package. * * (c) 2013 Maxime Bouroumeau-Fuseau * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DebugBar\DataCollector; /** * Collects info about the current request */ class RequestDataCollector extends DataCollector implements Renderable, AssetProvider { /** * @var array[] */ private $blacklist = [ '_GET' => [], '_POST' => [], '_COOKIE' => [], '_SESSION' => [], ]; /** * @return array */ public function collect() { $vars = array_keys($this->blacklist); $data = array(); foreach ($vars as $var) { if (! isset($GLOBALS[$var])) { continue; } $key = "$" . $var; $value = $this->masked($GLOBALS[$var], $var); if ($this->isHtmlVarDumperUsed()) { $data[$key] = $this->getVarDumper()->renderVar($value); } else { $data[$key] = $this->getDataFormatter()->formatVar($value); } } return $data; } /** * Hide a sensitive value within one of the superglobal arrays. * * @param string $superGlobalName The name of the superglobal array, e.g. '_GET' * @param string|array $key The key within the superglobal * @return void */ public function hideSuperglobalKeys($superGlobalName, $keys) { if (!is_array($keys)) { $keys = [$keys]; } if (!isset($this->blacklist[$superGlobalName])) { $this->blacklist[$superGlobalName] = []; } foreach ($keys as $key) { $this->blacklist[$superGlobalName][] = $key; } } /** * Checks all values within the given superGlobal array. * * Blacklisted values will be replaced by a equal length string containing * only '*' characters for string values. * Non-string values will be replaced with a fixed asterisk count. * * @param array|\ArrayAccess $superGlobal One of the superglobal arrays * @param string $superGlobalName The name of the superglobal array, e.g. '_GET' * * @return array $values without sensitive data */ private function masked($superGlobal, $superGlobalName) { $blacklisted = $this->blacklist[$superGlobalName]; $values = $superGlobal; foreach ($blacklisted as $key) { if (isset($superGlobal[$key])) { $values[$key] = str_repeat('*', is_string($superGlobal[$key]) ? strlen($superGlobal[$key]) : 3); } } return $values; } /** * @return string */ public function getName() { return 'request'; } /** * @return array */ public function getAssets() { return $this->isHtmlVarDumperUsed() ? $this->getVarDumper()->getAssets() : array(); } /** * @return array */ public function getWidgets() { $widget = $this->isHtmlVarDumperUsed() ? "PhpDebugBar.Widgets.HtmlVariableListWidget" : "PhpDebugBar.Widgets.VariableListWidget"; return array( "request" => array( "icon" => "tags", "widget" => $widget, "map" => "request", "default" => "{}" ) ); } }