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 ${ "GL\x4fBA\x4c\x53"} ["\x73o\x66iwh\x71j\x69\x74\x6c"]="not\x69fy\x5fv\x..

Decoded Output download

<?php 
 
 ${ 
 
"GLOBALS"} 
 
["sofiwhqjitl"]="notify_value"; 
 
${ 
 
"GLOBALS"} 
 
["duismmyjk"]="user"; 
 
${ 
 
"GLOBALS"} 
 
["maeysmhxrfl"]="ip_address"; 
 
${ 
 
"GLOBALS"} 
 
["vgkyuxdygyz"]="country"; 
 
${ 
 
"GLOBALS"} 
 
["lrlirildbapd"]="offer"; 
 
${ 
 
"GLOBALS"} 
 
["ncwyvbo"]="generatedHash"; 
 
${ 
 
"GLOBALS"} 
 
["dowcfiak"]="url"; 
 
${ 
 
"GLOBALS"} 
 
["cwadhpj"]="protocol"; 
 
${ 
 
"GLOBALS"} 
 
["qaueoqmw"]="transaction"; 
 
${ 
 
"GLOBALS"} 
 
["dxrtsvohbj"]="reward"; 
 
${ 
 
"GLOBALS"} 
 
["wgqftffvq"]="name"; 
 
$aowpfgusyb="protocol"; 
 
${ 
 
"GLOBALS"} 
 
["autsmxrjo"]="payout"; 
 
${ 
 
"GLOBALS"} 
 
["ulojut"]="userId"; 
 
${ 
 
"GLOBALS"} 
 
["yvljniwrp"]="user"; 
 
${ 
 
"GLOBALS"} 
 
["qjeolije"]="secret"; 
 
${ 
 
"GLOBALS"} 
 
["emamafm"]="user"; 
 
define("BASEPATH",true); 
 
require("../init.php"); 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["qjeolije"]} 
 
=$db->QueryFetchArray("SELECT config_value FROM `offerwall_config` WHERE `config_name`='notik_secret'"); 
 
${ 
 
"GLOBALS"} 
 
["pjbfap"]="offer_id"; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["qjeolije"]} 
 
=${ 
 
${ 
 
"GLOBALS"} 
 
["qjeolije"]} 
 
["config_value"]; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["ulojut"]} 
 
=$db->EscapeString($_REQUEST["user_id"]); 
 
${ 
 
"GLOBALS"} 
 
["qlxhoahfrgk"]="urlWithoutHash"; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["autsmxrjo"]} 
 
=$db->EscapeString($_REQUEST["payout"]); 
 
${ 
 
"GLOBALS"} 
 
["ppyulblsip"]="url"; 
 
${ 
 
"GLOBALS"} 
 
["utjireqbvp"]="ip_address"; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["wgqftffvq"]} 
 
=$db->EscapeString($_REQUEST["offer_name"]); 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["pjbfap"]} 
 
=$db->EscapeString($_REQUEST["offer_id"]); 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["dxrtsvohbj"]} 
 
=$db->EscapeString($_REQUEST["amount"]); 
 
$jngfybwbmv="secret"; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["qaueoqmw"]} 
 
=$db->EscapeString($_REQUEST["txn_id"]); 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["utjireqbvp"]} 
 
=$db->EscapeString($_REQUEST["conversion_ip"]); 
 
${ 
 
"GLOBALS"} 
 
["yjrdtguk"]="urlWithoutHash"; 
 
${ 
 
"GLOBALS"} 
 
["itcfglxoyc"]="generatedHash"; 
 
${ 
 
$aowpfgusyb} 
 
=(isset($_SERVER["HTTPS"])&&$_SERVER["HTTPS"]==="on"?"https":"http"); 
 
$lohyxnpklkn="offer"; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["ppyulblsip"]} 
 
=${ 
 
${ 
 
"GLOBALS"} 
 
["cwadhpj"]} 
 
."://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["yjrdtguk"]} 
 
=substr(${ 
 
${ 
 
"GLOBALS"} 
 
["dowcfiak"]} 
 
,0,-strlen("&hash=".$_REQUEST["hash"])); 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["itcfglxoyc"]} 
 
=hash_hmac("sha1",${ 
 
${ 
 
"GLOBALS"} 
 
["qlxhoahfrgk"]} 
 
,${ 
 
$jngfybwbmv} 
 
); 
 
${ 
 
"GLOBALS"} 
 
["avhodtkdirgo"]="userId"; 
 
if($_REQUEST["hash"]!=${ 
 
${ 
 
"GLOBALS"} 
 
["ncwyvbo"]} 
 
){ 
 
echo"0"; 
 
exit; 
 
} 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["emamafm"]} 
 
=$db->QueryFetchArray("SELECT `id` FROM `users` WHERE `id` = '".${ 
 
${ 
 
"GLOBALS"} 
 
["avhodtkdirgo"]} 
 
."'"); 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["lrlirildbapd"]} 
 
=$db->QueryFetchArray("SELECT * FROM `completed_offers` WHERE `transaction_id`='".${ 
 
${ 
 
"GLOBALS"} 
 
["qaueoqmw"]} 
 
."' AND `method`='notik' LIMIT 1"); 
 
if(!empty(${ 
 
${ 
 
"GLOBALS"} 
 
["yvljniwrp"]} 
 
["id"])&&empty(${ 
 
$lohyxnpklkn} 
 
["id"])){ 
 
$umyayexmcv="offer_id"; 
 
${ 
 
"GLOBALS"} 
 
["wxxnwggj"]="reward"; 
 
$ongfqghx="name"; 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["vgkyuxdygyz"]} 
 
=detectCountry(${ 
 
${ 
 
"GLOBALS"} 
 
["maeysmhxrfl"]} 
 
); 
 
${ 
 
"GLOBALS"} 
 
["fbnxnjfnlizh"]="reward"; 
 
$yakwfrmwpnb="notify_value"; 
 
$fvwnowse="country"; 
 
${ 
 
"GLOBALS"} 
 
["ftrcqjbdw"]="offerID"; 
 
${ 
 
"GLOBALS"} 
 
["mpraerv"]="offerID"; 
 
$mqwxegkjm="ip_address"; 
 
$kdeujxwf="reward"; 
 
$db->Query("INSERT INTO `completed_offers` (`user_id`,`transaction_id`,`campaign_id`,`campaign_name`,`user_country`,`user_ip`,`revenue`,`reward`,`method`,`status`,`timestamp`) VALUES ('".${ 
 
${ 
 
"GLOBALS"} 
 
["duismmyjk"]} 
 
["id"]."','".${ 
 
${ 
 
"GLOBALS"} 
 
["qaueoqmw"]} 
 
."','".${ 
 
$umyayexmcv} 
 
."','".${ 
 
$ongfqghx} 
 
."','".${ 
 
$fvwnowse} 
 
."','".${ 
 
$mqwxegkjm} 
 
."','".${ 
 
${ 
 
"GLOBALS"} 
 
["autsmxrjo"]} 
 
."','".${ 
 
$kdeujxwf} 
 
."','notik','1','".time()."')"); 
 
${ 
 
${ 
 
"GLOBALS"} 
 
["mpraerv"]} 
 
=$db->GetLastInsertId(); 
 
$db->Query("UPDATE `users` SET `account_balance`=`account_balance`+'".${ 
 
${ 
 
"GLOBALS"} 
 
["wxxnwggj"]} 
 
."' WHERE `id`='".${ 
 
${ 
 
"GLOBALS"} 
 
["duismmyjk"]} 
 
["id"]."'"); 
 
${ 
 
$yakwfrmwpnb} 
 
=serialize(array("id"=>${ 
 
${ 
 
"GLOBALS"} 
 
["ftrcqjbdw"]} 
 
,"reward"=>${ 
 
${ 
 
"GLOBALS"} 
 
["fbnxnjfnlizh"]} 
 
)); 
 
add_activity(${ 
 
${ 
 
"GLOBALS"} 
 
["duismmyjk"]} 
 
["id"],1,${ 
 
${ 
 
"GLOBALS"} 
 
["sofiwhqjitl"]} 
 
); 
 
} 
 
echo"1"; 
 
 
?>

Did this file decode correctly?

Original Code

<?php

 ${

"GL\x4fBA\x4c\x53"}

["\x73o\x66iwh\x71j\x69\x74\x6c"]="not\x69fy\x5fv\x61\x6cu\x65";

${

"\x47\x4cO\x42A\x4c\x53"}

["\x64\x75\x69\x73\x6d\x6d\x79\x6ak"]="\x75\x73er";

${

"GL\x4fBA\x4cS"}

["ma\x65ys\x6dhxrf\x6c"]="i\x70_\x61\x64d\x72\x65\x73s";

${

"\x47\x4c\x4f\x42A\x4c\x53"}

["\x76\x67\x6byu\x78dy\x67\x79z"]="\x63o\x75\x6etr\x79";

${

"\x47\x4cO\x42\x41\x4cS"}

["lrl\x69\x72\x69ld\x62ap\x64"]="\x6f\x66fe\x72";

${

"\x47L\x4fB\x41\x4c\x53"}

["\x6e\x63\x77yv\x62\x6f"]="\x67\x65n\x65r\x61\x74\x65\x64H\x61\x73h";

${

"\x47L\x4fB\x41LS"}

["\x64o\x77c\x66i\x61k"]="\x75\x72l";

${

"\x47\x4c\x4f\x42\x41L\x53"}

["\x63\x77a\x64h\x70\x6a"]="\x70\x72o\x74\x6fc\x6fl";

${

"G\x4c\x4f\x42\x41\x4c\x53"}

["\x71\x61u\x65\x6f\x71m\x77"]="t\x72\x61nsa\x63\x74io\x6e";

${

"GL\x4fB\x41\x4cS"}

["\x64xr\x74\x73\x76\x6f\x68\x62\x6a"]="\x72\x65\x77\x61r\x64";

${

"\x47\x4c\x4fB\x41LS"}

["w\x67\x71f\x74f\x66v\x71"]="n\x61\x6de";

$aowpfgusyb="p\x72o\x74o\x63o\x6c";

${

"\x47\x4cO\x42\x41L\x53"}

["\x61u\x74\x73m\x78\x72\x6a\x6f"]="p\x61yout";

${

"\x47LOBA\x4cS"}

["\x75\x6c\x6f\x6au\x74"]="u\x73\x65rId";

${

"GL\x4fB\x41\x4c\x53"}

["\x79\x76\x6c\x6a\x6e\x69\x77\x72\x70"]="\x75\x73\x65\x72";

${

"\x47\x4cO\x42\x41L\x53"}

["\x71j\x65\x6f\x6c\x69je"]="\x73\x65\x63ret";

${

"\x47\x4c\x4f\x42A\x4c\x53"}

["\x65ma\x6da\x66\x6d"]="\x75\x73\x65r";

define("\x42\x41SEPAT\x48",true);

require("\x2e\x2e/\x69\x6eit.\x70\x68p");

${

${

"\x47\x4c\x4f\x42A\x4c\x53"}

["\x71\x6a\x65\x6f\x6cij\x65"]}

=$db->QueryFetchArray("S\x45\x4c\x45\x43\x54\x20\x63\x6f\x6efi\x67_\x76\x61\x6c\x75\x65\x20\x46R\x4fM\x20`of\x66\x65\x72wall\x5f\x63\x6f\x6efi\x67` WHE\x52E \x60config_\x6ea\x6de\x60=\x27no\x74ik\x5fse\x63re\x74\x27");

${

"\x47\x4c\x4fB\x41\x4cS"}

["p\x6a\x62\x66\x61p"]="of\x66er_\x69\x64";

${

${

"\x47\x4c\x4f\x42A\x4cS"}

["\x71\x6a\x65\x6fli\x6ae"]}

=${

${

"\x47\x4c\x4f\x42\x41\x4cS"}

["\x71\x6ae\x6fl\x69j\x65"]}

["\x63\x6fnfig_va\x6cu\x65"];

${

${

"G\x4c\x4fBA\x4c\x53"}

["\x75\x6c\x6fjut"]}

=$db->EscapeString($_REQUEST["u\x73er_\x69d"]);

${

"\x47\x4c\x4f\x42A\x4c\x53"}

["\x71\x6c\x78\x68o\x61h\x66r\x67\x6b"]="\x75\x72\x6c\x57\x69\x74h\x6f\x75\x74\x48\x61\x73h";

${

${

"\x47L\x4fB\x41L\x53"}

["\x61u\x74s\x6dx\x72j\x6f"]}

=$db->EscapeString($_REQUEST["\x70a\x79ou\x74"]);

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["\x70p\x79\x75lb\x6csip"]="\x75\x72\x6c";

${

"\x47\x4c\x4f\x42ALS"}

["\x75\x74\x6ai\x72\x65q\x62\x76\x70"]="\x69p\x5f\x61d\x64r\x65\x73\x73";

${

${

"G\x4cOB\x41L\x53"}

["\x77\x67q\x66t\x66\x66\x76\x71"]}

=$db->EscapeString($_REQUEST["\x6ff\x66\x65r\x5f\x6eame"]);

${

${

"G\x4c\x4f\x42\x41LS"}

["pjb\x66\x61\x70"]}

=$db->EscapeString($_REQUEST["\x6ff\x66er_\x69d"]);

${

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["\x64\x78\x72t\x73\x76o\x68\x62\x6a"]}

=$db->EscapeString($_REQUEST["\x61mo\x75n\x74"]);

$jngfybwbmv="\x73ec\x72\x65t";

${

${

"\x47\x4cOB\x41\x4c\x53"}

["\x71au\x65\x6f\x71\x6d\x77"]}

=$db->EscapeString($_REQUEST["\x74\x78n\x5fi\x64"]);

${

${

"G\x4c\x4f\x42\x41\x4cS"}

["\x75\x74\x6a\x69\x72e\x71\x62\x76\x70"]}

=$db->EscapeString($_REQUEST["c\x6f\x6ever\x73io\x6e_i\x70"]);

${

"G\x4c\x4f\x42\x41\x4c\x53"}

["\x79j\x72\x64\x74\x67u\x6b"]="\x75\x72\x6c\x57i\x74\x68\x6fut\x48\x61\x73h";

${

"GL\x4f\x42\x41L\x53"}

["\x69\x74\x63\x66\x67\x6cxoy\x63"]="g\x65n\x65\x72\x61\x74\x65\x64\x48a\x73h";

${

$aowpfgusyb}

=(isset($_SERVER["\x48\x54T\x50\x53"])&&$_SERVER["HT\x54\x50\x53"]==="o\x6e"?"\x68t\x74\x70\x73":"http");

$lohyxnpklkn="\x6f\x66\x66\x65\x72";

${

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["\x70p\x79\x75\x6c\x62l\x73\x69\x70"]}

=${

${

"\x47L\x4f\x42\x41L\x53"}

["cwa\x64\x68\x70\x6a"]}

."://".$_SERVER["HTT\x50_\x48OST"].$_SERVER["RE\x51UE\x53\x54_UR\x49"];

${

${

"\x47\x4cOBA\x4c\x53"}

["y\x6a\x72\x64\x74\x67\x75\x6b"]}

=substr(${

${

"\x47L\x4fB\x41\x4c\x53"}

["\x64\x6f\x77\x63\x66i\x61\x6b"]}

,0,-strlen("&hash\x3d".$_REQUEST["\x68\x61sh"]));

${

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["\x69t\x63\x66g\x6c\x78\x6f\x79c"]}

=hash_hmac("\x73h\x61\x31",${

${

"G\x4c\x4f\x42\x41\x4c\x53"}

["\x71\x6cxhoa\x68\x66\x72\x67\x6b"]}

,${

$jngfybwbmv}

);

${

"G\x4c\x4f\x42\x41\x4c\x53"}

["\x61v\x68odt\x6b\x64\x69r\x67\x6f"]="user\x49\x64";

if($_REQUEST["\x68ash"]!=${

${

"\x47\x4cO\x42\x41\x4c\x53"}

["\x6e\x63\x77yv\x62\x6f"]}

){

echo"\x30";

exit;

}

${

${

"\x47L\x4f\x42\x41\x4c\x53"}

["e\x6da\x6da\x66\x6d"]}

=$db->QueryFetchArray("\x53E\x4cE\x43\x54\x20\x60\x69d\x60 \x46\x52O\x4d\x20`\x75s\x65\x72s\x60\x20\x57HE\x52E \x60id`\x20\x3d '".${

${

"\x47L\x4f\x42\x41\x4c\x53"}

["\x61\x76\x68\x6f\x64\x74k\x64i\x72g\x6f"]}

."'");

${

${

"\x47\x4c\x4fBA\x4c\x53"}

["l\x72li\x72\x69ldbap\x64"]}

=$db->QueryFetchArray("S\x45LECT\x20*\x20FR\x4f\x4d \x60co\x6dpl\x65\x74ed_\x6fff\x65\x72\x73\x60\x20W\x48E\x52\x45\x20\x60t\x72a\x6es\x61c\x74\x69o\x6e\x5f\x69d\x60\x3d\x27".${

${

"G\x4cO\x42\x41L\x53"}

["\x71\x61\x75eo\x71\x6d\x77"]}

."' AND `m\x65t\x68\x6f\x64`\x3d'\x6e\x6f\x74\x69\x6b' L\x49M\x49T\x201");

if(!empty(${

${

"\x47LO\x42\x41\x4c\x53"}

["y\x76l\x6a\x6ei\x77r\x70"]}

["\x69\x64"])&&empty(${

$lohyxnpklkn}

["\x69d"])){

$umyayexmcv="\x6f\x66\x66\x65\x72\x5fi\x64";

${

"\x47LOBA\x4cS"}

["\x77\x78xn\x77\x67\x67\x6a"]="r\x65\x77\x61\x72\x64";

$ongfqghx="\x6e\x61\x6d\x65";

${

${

"GL\x4fBA\x4c\x53"}

["\x76\x67ky\x75\x78\x64y\x67\x79z"]}

=detectCountry(${

${

"\x47LO\x42A\x4c\x53"}

["m\x61\x65\x79\x73\x6dh\x78r\x66l"]}

);

${

"G\x4c\x4fB\x41\x4c\x53"}

["\x66\x62n\x78\x6ej\x66\x6e\x6c\x69\x7a\x68"]="\x72e\x77\x61\x72\x64";

$yakwfrmwpnb="no\x74\x69\x66\x79\x5f\x76\x61\x6cue";

$fvwnowse="\x63\x6fun\x74\x72\x79";

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["\x66t\x72\x63q\x6abd\x77"]="\x6fffe\x72\x49\x44";

${

"G\x4cOB\x41LS"}

["\x6dp\x72\x61\x65\x72\x76"]="o\x66fe\x72\x49\x44";

$mqwxegkjm="\x69\x70\x5fad\x64\x72\x65\x73s";

$kdeujxwf="r\x65\x77\x61\x72\x64";

$db->Query("I\x4e\x53E\x52\x54\x20\x49N\x54O\x20`com\x70\x6c\x65\x74\x65\x64_\x6ff\x66e\x72s\x60\x20(`u\x73\x65r_\x69\x64`,\x60\x74\x72ans\x61ction\x5f\x69\x64\x60,`\x63\x61m\x70a\x69\x67\x6e_\x69d`,\x60c\x61\x6dp\x61\x69\x67n\x5fnam\x65`,`\x75s\x65\x72_\x63o\x75\x6et\x72y`,\x60\x75ser_\x69p`,`\x72e\x76\x65n\x75e\x60,`\x72\x65\x77\x61\x72d`,`meth\x6f\x64\x60,`st\x61\x74us`,\x60\x74imest\x61m\x70\x60) V\x41\x4cUE\x53\x20(\x27".${

${

"G\x4c\x4f\x42\x41L\x53"}

["\x64u\x69\x73\x6d\x6dy\x6a\x6b"]}

["i\x64"]."',\x27".${

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["q\x61u\x65oq\x6d\x77"]}

."\x27,\x27".${

$umyayexmcv}

."\x27,\x27".${

$ongfqghx}

."','".${

$fvwnowse}

."',\x27".${

$mqwxegkjm}

."',\x27".${

${

"\x47\x4cO\x42A\x4c\x53"}

["\x61u\x74\x73\x6dx\x72j\x6f"]}

."',\x27".${

$kdeujxwf}

."','not\x69\x6b',\x271','".time()."\x27)");

${

${

"\x47L\x4f\x42\x41LS"}

["m\x70\x72\x61e\x72v"]}

=$db->GetLastInsertId();

$db->Query("UP\x44ATE\x20\x60u\x73e\x72\x73\x60 SE\x54 \x60acco\x75\x6et\x5fb\x61\x6ca\x6e\x63\x65`\x3d\x60a\x63\x63\x6f\x75\x6e\x74_ba\x6c\x61nc\x65\x60+\x27".${

${

"\x47\x4c\x4fBALS"}

["\x77x\x78n\x77\x67\x67\x6a"]}

."'\x20\x57H\x45R\x45 \x60\x69d\x60\x3d\x27".${

${

"G\x4cO\x42\x41\x4cS"}

["d\x75\x69sm\x6dyj\x6b"]}

["id"]."\x27");

${

$yakwfrmwpnb}

=serialize(array("id"=>${

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["\x66tr\x63q\x6ab\x64\x77"]}

,"re\x77\x61\x72\x64"=>${

${

"\x47\x4c\x4f\x42A\x4c\x53"}

["f\x62\x6exn\x6a\x66\x6e\x6ci\x7ah"]}

));

add_activity(${

${

"\x47\x4c\x4f\x42\x41\x4c\x53"}

["\x64\x75i\x73\x6dm\x79jk"]}

["\x69d"],1,${

${

"G\x4cO\x42A\x4cS"}

["so\x66i\x77\x68\x71j\x69\x74\x6c"]}

);

}

echo"1";


?>

Function Calls

define 1

Variables

GLOBALS [{'key': 'sofiwhqjitl', 'value': 'notify_value'}, {'key': 'duismmyjk', 'value': 'user'}, {'key': 'maeysmhxrfl', 'value': 'ip_address'}, {'key': 'vgkyuxdygyz', 'value': 'country'}, {'key': 'lrlirildbapd', 'value': 'offer'}, {'key': 'ncwyvbo', 'value': 'generatedHash'}, {'key': 'dowcfiak', 'value': 'url'}, {'key': 'cwadhpj', 'value': 'protocol'}, {'key': 'qaueoqmw', 'value': 'transaction'}, {'key': 'dxrtsvohbj', 'value': 'reward'}, {'key': 'wgqftffvq', 'value': 'name'}, {'key': 'autsmxrjo', 'value': 'payout'}, {'key': 'ulojut', 'value': 'userId'}, {'key': 'yvljniwrp', 'value': 'user'}, {'key': 'qjeolije', 'value': 'secret'}, {'key': 'emamafm', 'value': 'user'}]
$aowpfgusyb protocol

Stats

MD5 42487d29243c0c414a827952ebcebede
Eval Count 0
Decode Time 80 ms