Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace pluu; use pocketmine\plugin\PluginBase; use pocketmine\event\Listener; u..

Decoded Output download

<?php 
 namespace pluu; use pocketmine\plugin\PluginBase; use pocketmine\event\Listener; use pocketmine\network\mcpe\protocol\RemoveActorPacket; use pocketmine\network\mcpe\protocol\AddPlayerPacket; use pocketmine\entity\Entity; use pocketmine\utils\UUID; use pocketmine\item\Item; use pocketmine\level\Position; use pocketmine\utils\Config; use pocketmine\event\player\PlayerJoinEvent; use pocketmine\Player; use pocketmine\command\CommandSender; use pocketmine\command\Command; use pocketmine\network\mcpe\protocol\AddActorPacket; use pocketmine\event\server\DataPacketReceiveEvent; use pocketmine\network\mcpe\protocol\ModalFormRequestPacket; use pocketmine\network\mcpe\protocol\ModalFormResponsePacket; use onebone\economyapi\EconomyAPI; class pluu extends PluginBase implements Listener { public $data, $db; public $eid; public $time; public function onEnable() { $this->getServer()->getPluginManager()->registerEvents($this, $this); @mkdir($this->getDataFolder()); $this->data = new Config($this->getDataFolder() . "Data.yml", Config::YAML); $this->db = $this->data->getAll(); $this->getScheduler()->scheduleRepeatingTask(new class($this) extends \pocketmine\scheduler\Task { private $owner; public function __construct(pluu $owner) { $this->owner = $owner; } public function onRun(int $currentTick) { foreach ($this->owner->getServer()->getOnlinePlayers() as $player) { if (!isset($this->owner->db[$player->getName()])) { continue; } if ($this->owner->db[$player->getName()]["type"] == "true") { $this->owner->($player); } } } }, 20); } public function onSave() { $this->data->setAll($this->db); $this->data->save(); } public function onJoin(\pocketmine\event\player\PlayerJoinEvent $event) { $player = $event->getPlayer(); $name = $player->getName(); if (!isset($this->db[$name])) { $this->db[$name] = array(); $this->db[$name]["type"] = true; $this->onSave(); } } public function onCommand(CommandSender $player, Command $command, string $label, array $args) : bool { if ($command->getName() == "\354\x9d\xb8\xeb\262\244\xec\264\x88\352\270\260\xed\231\x94") { $name = $player->getName(); if ($player instanceof Player) { $player->dataPacket($this->getForm($name)); return true; } } return true; } public function getForm($name) { $encode = new ModalFormRequestPacket(); $encode->formId = 29881; $encode->formData = json_encode(array("type" => "custom_form", "title" => "\xec\225\204\354\235\xb4\355\x85\x9c\354\240\x9c\xea\261\xb0 UI", "content" => array(array("type" => "toggle", "text" => "\xc2\xa77\302\247r\354\x95\204\xec\235\xb4\xed\205\x9c\354\235\204 \354\xa0\234\352\261\xb0 \xed\225\230\xec\213\244\xea\xb1\xb4\352\260\200\354\x9a\224? \xec\236\205\xea\263\xa0\xec\x9e\210\353\x8a\x94 \352\xb0\221\xec\230\xb7 \xec\xa0\234\354\x99\270 \xec\236\205\xeb\x8b\210\353\x8b\244..", "default" => $this->db[$name]["type"])))); return $encode; } public function onReceive(DataPacketReceiveEvent $event) { $player = $event->getPlayer(); $name = $player->getName(); $t = "\302\xa7e\xc2\xa7l[\xc2\247f\302\247l \xec\x9d\270\xeb\xb2\xa4\355\x86\xa0\353\246\xac UI\302\xa7e\xc2\247l ]\302\xa7f\302\247l "; $packet = $event->getPacket(); if ($packet instanceof ModalFormResponsePacket) { if ($packet->formId === 29881) { $data = json_decode($packet->formData, true); if ($data[0] === null) { } else { if ($data[0] !== true) { $b = true; $player->sendMessage($t . "\354\x9d\270\353\262\xa4\355\x86\xa0\353\246\xac \xec\xa0\234\352\261\xb0\xec\x97\x90 \354\267\250\354\x86\x8c\355\x95\x98\354\230\200\xec\212\xb5\353\x8b\x88\353\x8b\xa4."); return true; } if ($data[0] !== false) { $a = false; $player->sendMessage($t . "\354\235\270\xeb\262\244\355\x86\xa0\353\246\254\352\xb0\x80 \xec\xa0\234\352\261\260\353\220\x98\xec\x97\210\354\x8a\265\353\x8b\210\353\213\xa4. \xeb\xb3\265\352\xb5\xac\353\212\224 \xeb\270\224\352\260\200\353\212\245\355\x95\xa9\353\x8b\x88\xeb\213\244."); $player->getInventory()->clearAll(); $this->getServer()->getLogger()->info("{$name}\xeb\x8b\x98\354\x9d\xb4 \354\225\x84\xec\x9d\264\xed\205\234\xeb\xa5\xbc \354\240\204\xeb\266\x80 \xec\xb4\x88\xea\270\260\xed\x99\x94 \355\x96\210\354\x8a\xb5\xeb\x8b\x88\353\213\xa4. \xec\236\x85\xea\xb3\xa0\354\236\x88\353\x8a\x94 \xea\260\221\xec\x98\xb7 \xec\xa0\234\354\x99\xb8"); return true; } } return true; } } return true; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace pluu; use pocketmine\plugin\PluginBase; use pocketmine\event\Listener; use pocketmine\network\mcpe\protocol\RemoveActorPacket; use pocketmine\network\mcpe\protocol\AddPlayerPacket; use pocketmine\entity\Entity; use pocketmine\utils\UUID; use pocketmine\item\Item; use pocketmine\level\Position; use pocketmine\utils\Config; use pocketmine\event\player\PlayerJoinEvent; use pocketmine\Player; use pocketmine\command\CommandSender; use pocketmine\command\Command; use pocketmine\network\mcpe\protocol\AddActorPacket; use pocketmine\event\server\DataPacketReceiveEvent; use pocketmine\network\mcpe\protocol\ModalFormRequestPacket; use pocketmine\network\mcpe\protocol\ModalFormResponsePacket; use onebone\economyapi\EconomyAPI; class pluu extends PluginBase implements Listener { public $data, $db; public $eid; public $time; public function onEnable() { $this->getServer()->getPluginManager()->registerEvents($this, $this); @mkdir($this->getDataFolder()); $this->data = new Config($this->getDataFolder() . "\x44\141\164\141\x2e\171\155\x6c", Config::YAML); $this->db = $this->data->getAll(); $this->getScheduler()->scheduleRepeatingTask(new class($this) extends \pocketmine\scheduler\Task { private $owner; public function __construct(pluu $owner) { $this->owner = $owner; } public function onRun(int $currentTick) { foreach ($this->owner->getServer()->getOnlinePlayers() as $player) { if (!isset($this->owner->db[$player->getName()])) { continue; } if ($this->owner->db[$player->getName()]["\164\171\160\145"] == "\164\x72\x75\x65") { $this->owner->($player); } } } }, 20); } public function onSave() { $this->data->setAll($this->db); $this->data->save(); } public function onJoin(\pocketmine\event\player\PlayerJoinEvent $event) { $player = $event->getPlayer(); $name = $player->getName(); if (!isset($this->db[$name])) { $this->db[$name] = array(); $this->db[$name]["\x74\x79\x70\x65"] = true; $this->onSave(); } } public function onCommand(CommandSender $player, Command $command, string $label, array $args) : bool { if ($command->getName() == "\354\x9d\xb8\xeb\262\244\xec\264\x88\352\270\260\xed\231\x94") { $name = $player->getName(); if ($player instanceof Player) { $player->dataPacket($this->getForm($name)); return true; } } return true; } public function getForm($name) { $encode = new ModalFormRequestPacket(); $encode->formId = 29881; $encode->formData = json_encode(array("\x74\171\x70\x65" => "\x63\x75\x73\x74\x6f\155\x5f\146\157\162\155", "\x74\x69\x74\x6c\145" => "\xec\225\204\354\235\xb4\355\x85\x9c\354\240\x9c\xea\261\xb0\40\125\x49", "\143\157\156\164\x65\156\x74" => array(array("\x74\171\x70\x65" => "\164\157\147\147\x6c\145", "\x74\145\x78\x74" => "\xc2\xa7\x37\302\247\x72\354\x95\204\xec\235\xb4\xed\205\x9c\354\235\204\40\354\xa0\234\352\261\xb0\x20\xed\225\230\xec\213\244\xea\xb1\xb4\352\260\200\354\x9a\224\x3f\40\xec\236\205\xea\263\xa0\xec\x9e\210\353\x8a\x94\x20\352\xb0\221\xec\230\xb7\x20\xec\xa0\234\354\x99\270\40\xec\236\205\xeb\x8b\210\353\x8b\244\56\56", "\144\x65\x66\x61\165\x6c\x74" => $this->db[$name]["\164\x79\160\145"])))); return $encode; } public function onReceive(DataPacketReceiveEvent $event) { $player = $event->getPlayer(); $name = $player->getName(); $t = "\302\xa7\145\xc2\xa7\154\x5b\xc2\247\x66\302\247\154\40\xec\x9d\270\xeb\xb2\xa4\355\x86\xa0\353\246\xac\40\125\111\302\xa7\x65\xc2\247\x6c\40\135\302\xa7\146\302\247\154\40"; $packet = $event->getPacket(); if ($packet instanceof ModalFormResponsePacket) { if ($packet->formId === 29881) { $data = json_decode($packet->formData, true); if ($data[0] === null) { } else { if ($data[0] !== true) { $b = true; $player->sendMessage($t . "\354\x9d\270\353\262\xa4\355\x86\xa0\353\246\xac\40\xec\xa0\234\352\261\xb0\xec\x97\x90\40\354\267\250\354\x86\x8c\355\x95\x98\354\230\200\xec\212\xb5\353\x8b\x88\353\x8b\xa4\56"); return true; } if ($data[0] !== false) { $a = false; $player->sendMessage($t . "\354\235\270\xeb\262\244\355\x86\xa0\353\246\254\352\xb0\x80\40\xec\xa0\234\352\261\260\353\220\x98\xec\x97\210\354\x8a\265\353\x8b\210\353\213\xa4\56\40\xeb\xb3\265\352\xb5\xac\353\212\224\40\xeb\270\224\352\260\200\353\212\245\355\x95\xa9\353\x8b\x88\xeb\213\244\56"); $player->getInventory()->clearAll(); $this->getServer()->getLogger()->info("{$name}\xeb\x8b\x98\354\x9d\xb4\40\354\225\x84\xec\x9d\264\xed\205\234\xeb\xa5\xbc\40\354\240\204\xeb\266\x80\40\xec\xb4\x88\xea\270\260\xed\x99\x94\40\355\x96\210\354\x8a\xb5\xeb\x8b\x88\353\213\xa4\56\40\xec\236\x85\xea\xb3\xa0\354\236\x88\353\x8a\x94\x20\xea\260\221\xec\x98\xb7\x20\xec\xa0\234\354\x99\xb8"); return true; } } return true; } } return true; } }

Function Calls

None

Variables

None

Stats

MD5 ec419ad4ad97db730cb419e4d5916514
Eval Count 0
Decode Time 87 ms