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 /* This file is protected by copyright law and provided under license. Reverse engin..
Decoded Output download
$safavieh_url = 'https://safavieh.com/get-rug-info/?item=';
$api_url = 'http://13.234.230.11/newhtml/get-image.php?image=';
$item_sku = trim($_GET['item']);
$response = file_get_contents($safavieh_url.$item_sku);
if($response !== false) {
header('content-type: application/json');
$product = json_decode($response,true);
if($product['image_url']) {
$product['image_url'] = str_replace('https://cdn.safavieh.com/',$api_url,$product['image_url']);
}
if($product['detail_url']) {
$product['detail_url'] = str_replace('safavieh.com','qualdev.com',$product['detail_url']);
}
foreach($product['image_sizes'] as &$image) {
$image['image_url'] = str_replace('https://cdn.safavieh.com/',$api_url,$image['image_url']);
}
echo(json_encode($product));
}
else {
http_response_code(400);
};
Did this file decode correctly?
Original Code
<?php /* This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0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kKkH40MtNrNW4ViXHrdgHzioisRLPE5xusTmHbQhsBQ47xQykKCf78NW48Noe+iouYQhIf9M4+yL4t5Snp9yks547A9L0rdgHz9MC+ioisRLPE5xusTSD7FcPhCM2AQcpbJgHz9W4YQW4tzSNU5faHQMaHGykaRW0/TWIgRW2rCfIH9M78GfrA5fnxzlBuS1kgRh7pNMuHTmHb9xuE5s7pQMuEQW0+ioisRLPE5xusGoktNM0rdgHz9MC+ioPt5fkXCLk5ifsVCMNsyL4t5SNNzcPwmO+pRoiEQo4UNIBx9MXYQf4KNyiBiXHbFcPANoiKRh4g5WIUQcbx9okHRoe/Gt7UQWn8RfIhCyQrQMb8Cf7VGtRBiWIg947XRhgBioPt5fkXCLk5ifsVCMNsyL4t5SNNzlBuSxHuShshzSkgRh7pNMuHMtNpQykY9M2KNyiBiXHrToBuS1kgRh7pNMuHMtNpQykY9M2KNyiBiXHbFcPANoiKRh4g5WIUQcbxRfIhCyQrQMb8Cf7VitgxRy4Y5WksN1aU5fHxGSkgRh7pNMuHMtNpQykY9M2KNyiBiXHrdgHzKOHzQh7tQMIU9SbpRoiEQo4UNIBx9MXYQf4KRfs/QyexycPYRtjhiWsVCMNszcPwmO+p9MXYQf45ifsVCMNsyL4t5SNNTmHbRLktyLisRW2YCf0+ifYHNoPAd13ECfk8GxuYQhIf9M4+GhuE5c3xGSkYRWsKNyiBGSkr5MIxQ4Bx9MXYQf4KNyiBiXHrdgHzKOHzQMu+5tYqRf78yf48Cf7pQcbpRoiEQo4UNSprdgHzKOHzQM2AQcPwmOr+NokgyLisRLPE5xusyfuEQW0+umjgzlBuSxHwalVnRPIq
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | e08039775429077a321484bf1b904e46 |
Eval Count | 3 |
Decode Time | 137 ms |