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 mTM_F; U0pkL: $apiKey = "\x41\111\172\x61\123\171\x41\121\x34\x77\121\62\x4f\..
Decoded Output download
<?php
goto mTM_F; U0pkL: $apiKey = "AIzaSyAQ4wQ2OknQdKrbRHgwv076Bvl2M_08yjo"; goto Sk_RK; Mei_E: if (count($imageUrls) > 0) { echo json_encode($imageUrls, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); } else { echo json_encode(array("error" => "Herhangi bir resim bulunamad.")); } goto q8Nuc; TFM0t: if (isset($data["items"])) { foreach ($data["items"] as $item) { $imageUrls[] = array("thumbnail_url" => $item["image"]["thumbnailLink"]); } } goto Mei_E; LD3RF: if (!$searchTerm) { echo json_encode(array("error" => "Arama terimi belirtilmedi.")); die; } goto U0pkL; wqnUS: $imageUrls = array(); goto TFM0t; mTM_F: $searchTerm = isset($_GET["searchTerm"]) ? $_GET["searchTerm"] : ''; goto LD3RF; MqKHf: $data = json_decode($response, true); goto wqnUS; XkF4k: $response = file_get_contents($googleUrl); goto UhsAu; UhsAu: if (!$response) { echo json_encode(array("error" => "Google API'ye eriilemedi.")); die; } goto MqKHf; Sk_RK: $cseId = "f509ea45a52eb45b7"; goto zIJjD; zIJjD: $googleUrl = "https://www.googleapis.com/customsearch/v1?q=" . urlencode($searchTerm) . "&cx=" . $cseId . "&searchType=image&key=" . $apiKey; goto XkF4k; q8Nuc: ?>
Did this file decode correctly?
Original Code
<?php
goto mTM_F; U0pkL: $apiKey = "\x41\111\172\x61\123\171\x41\121\x34\x77\121\62\x4f\153\x6e\121\x64\x4b\162\142\x52\110\x67\167\166\x30\67\66\x42\166\x6c\x32\x4d\x5f\60\70\x79\x6a\157"; goto Sk_RK; Mei_E: if (count($imageUrls) > 0) { echo json_encode($imageUrls, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); } else { echo json_encode(array("\145\162\162\157\162" => "\110\x65\x72\150\141\x6e\147\151\x20\142\151\x72\40\x72\145\163\151\155\40\x62\x75\x6c\165\x6e\141\155\141\x64\304\xb1\x2e")); } goto q8Nuc; TFM0t: if (isset($data["\151\x74\145\155\163"])) { foreach ($data["\151\164\145\x6d\163"] as $item) { $imageUrls[] = array("\164\x68\x75\x6d\142\156\x61\x69\x6c\137\165\162\x6c" => $item["\x69\155\141\147\x65"]["\164\x68\x75\155\x62\x6e\x61\x69\154\114\151\x6e\153"]); } } goto Mei_E; LD3RF: if (!$searchTerm) { echo json_encode(array("\x65\162\x72\157\x72" => "\x41\x72\141\155\141\x20\164\145\162\151\155\x69\40\142\145\x6c\151\162\x74\x69\x6c\x6d\x65\144\x69\x2e")); die; } goto U0pkL; wqnUS: $imageUrls = array(); goto TFM0t; mTM_F: $searchTerm = isset($_GET["\x73\145\141\x72\143\150\x54\x65\162\155"]) ? $_GET["\x73\145\x61\162\143\x68\x54\x65\162\155"] : ''; goto LD3RF; MqKHf: $data = json_decode($response, true); goto wqnUS; XkF4k: $response = file_get_contents($googleUrl); goto UhsAu; UhsAu: if (!$response) { echo json_encode(array("\x65\162\x72\x6f\162" => "\x47\x6f\x6f\x67\x6c\x65\40\x41\120\111\47\x79\x65\40\x65\x72\x69\xc5\x9f\151\154\145\x6d\145\x64\151\x2e")); die; } goto MqKHf; Sk_RK: $cseId = "\x66\x35\x30\71\x65\141\64\65\x61\x35\62\145\x62\64\65\x62\x37"; goto zIJjD; zIJjD: $googleUrl = "\150\164\x74\160\x73\x3a\57\x2f\x77\x77\x77\x2e\x67\157\x6f\x67\x6c\145\x61\x70\151\163\56\143\x6f\155\x2f\x63\165\x73\x74\x6f\x6d\163\145\x61\x72\x63\x68\57\x76\61\77\161\75" . urlencode($searchTerm) . "\x26\x63\170\75" . $cseId . "\46\163\145\x61\x72\x63\x68\124\x79\160\x65\75\151\x6d\x61\x67\x65\46\x6b\x65\x79\75" . $apiKey; goto XkF4k; q8Nuc: ?>
Function Calls
None |
Stats
MD5 | 1fde8d6a554435ec8f196f719d6b8354 |
Eval Count | 0 |
Decode Time | 55 ms |