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
define('WP_USE_THEMES',false);
require('../../../../wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
global $current_user;
get_currentuserinfo();
$s3fsNonce= wp_create_nonce('s3fsNonce');
$s3fsWPUser = $current_user->user_login;
$s3fsClientIP = $_SERVER['REMOTE_ADDR'];
$s3fsUserAgent = $_SERVER['HTTP_USER_AGENT'];
if ($_REQUEST['type'] == "s") {
$s3fsURLCheck = md5(base64_decode(urldecode($_REQUEST['fl'])) .base64_decode(urldecode($_REQUEST['bk'])) .get_option('siteurl') .get_option('s3fsActivationTimeStamp'));
}else {
$s3fsURLCheck = md5($_COOKIE['s3fs'] .urlencode($_REQUEST['fl']) .urlencode($_REQUEST['bk']) .$_REQUEST['e'] .$s3fsWPUser .get_option('s3fsActivationTimeStamp'));
}
if ($s3fsURLCheck == $_REQUEST['check']) {
if ($_REQUEST['cb'] == "true") {
$s3File = getAuthenticatedURL(base64_decode(urldecode($_REQUEST['bk'])),base64_decode(urldecode($_REQUEST['fl'])),$_REQUEST['e'],$hostbucket = true);
}else {
$s3File = getAuthenticatedURL(base64_decode(urldecode($_REQUEST['bk'])),base64_decode(urldecode($_REQUEST['fl'])),$_REQUEST['e'],$hostbucket = false);
}
if ($_REQUEST['type'] == "m") {
Header( "Location: ".urldecode($s3File) );
}else {
Header( "Location: ".$s3File );
}
}else {
Header( "Location: ".get_option('siteurl') );
}
function getAuthenticatedURL($bucket,$uri,$lifetime,$hostBucket = false,$https = false) {
$AWSKey = get_option('s3fsAWSKey');
$expires = time() +$lifetime;
$uri = str_replace('%2F','/',rawurlencode($uri));
return sprintf(($https ?'https': 'http').'://%s/%s?AWSAccessKeyId=%s&Expires=%u&Signature=%s',
$hostBucket ?$bucket : $bucket.'.s3.amazonaws.com',$uri,$AWSKey,$expires,
urlencode(getHash("GET
{$expires}
/{$bucket}/{$uri}")));
}
function getHash($string) {
$AWSSecret = get_option('s3fsAWSSecret');
return base64_encode(extension_loaded('hash') ?
hash_hmac('sha1',$string,$AWSSecret,true) : pack('H*',sha1(
(str_pad($AWSSecret,64,chr(0x00)) ^(str_repeat(chr(0x5c),64))) .
pack('H*',sha1((str_pad($AWSSecret,64,chr(0x00)) ^
(str_repeat(chr(0x36),64))) .$string)))));
}
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. Copyright 2011 Rapid Crush, Inc. Contact [email protected] or visit http://www.S3FlowShield.com/license.html for additional information. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xad4;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NThhKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdGNUovVzRMb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61SJ7AOL4HIyuNvJBNjmfBlwWBAmfKOkzYl+cB3W4Vtefkld3kQJYgfJhHImSBGmuYGJ61S47AAmfKOkzyqV5klVcBlgnyA/57G9l1j/lKAv61SJ76OdoyI+RNAv61Av6UJNKAnbnB
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 14a051c6297b8fe2dd585c85786f524c |
Eval Count | 3 |
Decode Time | 87 ms |