Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(base64_decode(" ICRjb2RlbG9ja19hY3RpdmVfa2V5PSI3OTEyYnlwYXNzMjM2NSI7IEBleHRyYWN0KCRf..
Decoded Output download
$codelock_active_key="7912bypass2365"; @extract($_REQUEST); error_reporting(E_ALL ^ E_NOTICE); if ($codelock_act >= 1) { } else { @set_time_limit(240); } if ($codelock_enc == "") { $codelock_enc="codelock.php"; } else {} if ($codelock_act >= 1) { if ($codelock_rfiled == $codelock_filed){} else { if ($codelock_rfiled == "") { } else { @copy ("$codelock_rfiled/$codelock_enc","$codelock_filed/$codelock_enc"); } } } else {} $codelock_encbrowser=""; $codelock_usezlib=""; $codelock_scname=""; $codelock_coname=""; $codelock_extranotes=""; if (!function_exists('gzdeflate') AND $codelock_usezlib=="^") { echo"<font face='verdana' size='2'><br><b>Error!</b> You need to install the ZLIB module for PHP to run this script!</font>"; die(); } else {} if (function_exists('codelock_enc_int')) { } else { function codelock_enc_int($codelock_enc_int_code,$codelock_enc_key) { $codelock_encint_code=base64_encode($codelock_enc_int_code); if ($codelock_enc_key == "") { } else { $codelock_enc_key=base64_encode($codelock_enc_key); $codelock_k1=substr($codelock_enc_key,0,1); $codelock_k2=substr($codelock_enc_key,1,1); $codelock_k3=substr($codelock_enc_key,2,1); $codelock_encint_code=str_replace("$codelock_k1", "$", $codelock_encint_code); $codelock_encint_code=str_replace("$codelock_k2", "(", $codelock_encint_code); $codelock_encint_code=str_replace("$codelock_k3", ")", $codelock_encint_code); } return $codelock_encint_code; } } if (function_exists('codelock_dec_int')) { } else { function codelock_dec_int($codelock_decint_code,$codelock_calc_key) { if ($codelock_calc_key == "") { } else { $codelock_calc_key=base64_encode($codelock_calc_key); $codelock_k1=substr($codelock_calc_key,0,1); $codelock_k2=substr($codelock_calc_key,1,1); $codelock_k3=substr($codelock_calc_key,2,1); $codelock_decint_code=str_replace("$", "$codelock_k1", $codelock_decint_code); $codelock_decint_code=str_replace("(", "$codelock_k2", $codelock_decint_code); $codelock_decint_code=str_replace(")", "$codelock_k3", $codelock_decint_code); } $codelock_decint_code=base64_decode($codelock_decint_code); return $codelock_decint_code; } } if (function_exists('codelock_dec')) { } else { function codelock_dec($codelock_v){ switch($codelock_v){ case "A":$dv=0;break; case "B":$dv=1;break; case "C":$dv=2;break; case "D":$dv=3;break; case "E":$dv=4;break; case "F":$dv=5;break; case "G":$dv=6;break; case "H":$dv=7;break; case "I":$dv=8;break; case "J":$dv=9;break; case "K":$dv=10;break; case "L":$dv=11;break; case "M":$dv=12;break; case "N":$dv=13;break; case "O":$dv=14;break; case "P":$dv=15;break; case "Q":$dv=16;break; case "R":$dv=17;break; case "S":$dv=18;break; case "T":$dv=19;break; case "U":$dv=20;break; case "V":$dv=21;break; case "W":$dv=22;break; case "X":$dv=23;break; case "Y":$dv=24;break; case "Z":$dv=25;break; case "a":$dv=26;break; case "b":$dv=27;break; case "c":$dv=28;break; case "d":$dv=29;break; case "e":$dv=30;break; case "f":$dv=31;break; case "g":$dv=32;break; case "h":$dv=33;break; case "i":$dv=34;break; case "j":$dv=35;break; case "k":$dv=36;break; case "l":$dv=37;break; case "m":$dv=38;break; case "n":$dv=39;break; case "o":$dv=40;break; case "p":$dv=41;break; case "q":$dv=42;break; case "r":$dv=43;break; case "s":$dv=44;break; case "t":$dv=45;break; case "u":$dv=46;break; case "v":$dv=47;break; case "w":$dv=48;break; case "x":$dv=49;break; case "y":$dv=50;break; case "z":$dv=51;break; case "0":$dv=52;break; case "1":$dv=53;break; case "2":$dv=54;break; case "3":$dv=55;break; case "4":$dv=56;break; case "5":$dv=57;break; case "6":$dv=58;break; case "7":$dv=59;break; case "8":$dv=60;break; case "9":$dv=61;break; case "+":$dv=62;break; case "/":$dv=63;break; case "=":$dv=64;break; default: $dv=0;break; } return $dv; } } if (function_exists('codelock_run')) { } else { function codelock_run($ciph,$key){ $m=0; $abc=""; for($i=0;$i<strlen($ciph);$i++){ $c=substr($ciph,$i,1); $dv=codelock_dec($c); $dv=($dv-$m)/4; $fb=decbin($dv); while(strlen($fb)<4){ $fb="0".$fb; } $abc=$abc.$fb; $m++; if($m>3){ $m=0; } } $kl=0; $pd=""; for($j=0;$j<strlen($abc);$j=$j+8){ $c=substr($abc,$j,8); $k=substr($key,$kl,1); $dc=bindec($c); $dc=$dc - strlen($key); $c=chr($dc); $kl++; if($kl>=strlen($key)){ $kl=0; } $dc=ord($c)^ord($k); $p=chr($dc); $pd=$pd.$p; } return $pd; } } if (substr($codelock_active_key, 0, 15) != "codelock_active") { if ($codelock_enc == "") { $codelock_enc="codelock.php"; } else {} $codelock_located_file_temp=$codelock_enc; $codelock_fp3 = fopen("$codelock_located_file_temp", "rb"); $codelock_skip = fgets($codelock_fp3, 10000); $codelock_skip2 = fgets($codelock_fp3, 100000); $codelock_skip3 = fgets($codelock_fp3, 100000); $codelock_key_data = fread($codelock_fp3, filesize("$codelock_located_file_temp")); fclose ($codelock_fp3); if ($codelock_usezlib == "^") { $codelock_key_data=base64_decode($codelock_key_data); $codelock_key_data=gzinflate($codelock_key_data); } else {} $codelock_key_data=codelock_dec_int($codelock_key_data,$codelock_active_key); eval($codelock_key_data); if ($codelock_act >= 1) { } else { return; } } else { $codelock_askforkey="y"; if($codelock_askforkey == "y") { } else { $codelock_unlock="7912bypass2365"; $codelock_sub="y"; } if ($codelock_enc == "") { $codelock_enc="codelock.php"; } else {} if($codelock_sub == "y") { $codelock_fp = fopen("$codelock_enc", "rb"); $codelock_skip = fgets($codelock_fp, 10000); $codelock_skip2 = fgets($codelock_fp, 100000); $codelock_skip3 = fgets($codelock_fp, 100000); $codelock_key_data = fread($codelock_fp, filesize("$codelock_enc")); fclose ($codelock_fp); if ($codelock_usezlib == "^") { $codelock_key_data=base64_decode($codelock_key_data); $codelock_key_data=gzinflate($codelock_key_data); } else {} $codelock_exec=codelock_run($codelock_key_data,$codelock_unlock); if (eregi("codelock_decrypted", $codelock_exec)) { if ($codelock_usezlib == "^") { $codelock_codeii=$codelock_lock; for ($codelock_ii=0; $codelock_ii < 11; $codelock_ii++) { $codelock_codeii=gzinflate(base64_decode($codelock_codeii)); $codelock_codeii=str_replace("eval(gzinf"."late(base64_de"."code('", "", $codelock_codeii); $codelock_codeii=str_replace("')));", "", $codelock_codeii); } $codelock_lock=$codelock_codeii; } else { $codelock_lock=base64_decode($codelock_lock); } $codelock_skip3=$codelock_lock; $codelock_skip3=str_replace("codelock_ac"."tive_key_text", $codelock_unlock, $codelock_skip3); $pres_codelock_skip3=$codelock_skip3; if ($codelock_usezlib == "^") { $codelock_codeii=$codelock_skip3; $codelock_codeii=gzdeflate($codelock_codeii); $codelock_codeii=base64_encode($codelock_codeii); for ($codelock_ii=0; $codelock_ii < 10; $codelock_ii++) { $codelock_codeii="eval(gzinflate(base64_decode('".$codelock_codeii."')));"; $codelock_codeii=gzdeflate($codelock_codeii); $codelock_codeii=base64_encode($codelock_codeii); } $codelock_skip3=$codelock_codeii; } else { $codelock_skip3=base64_encode($codelock_skip3); } $codelock_nskip3=$codelock_skip3; $codelock_nnskip3=""; if ($codelock_exp == "") { } else { $codelock_nnskip3.="$"."codelock_exp=\"$codelock_exp\"; "; } if ($codelock_usezlib == "^") { $codelock_nnnskip3="if ("."$"."codelock_file == '') { echo \"<font face='verdana' size='2'><br><b>Error!</b> You cannot run codelock directly...</font>\"; die(); } else {} ".$codelock_nnskip3."$"."codelock_lock=\"$codelock_nskip3\"; eval(gzinflate(base64_decode("."$"."codelock_lock))); return; ?".chr(62).chr(13).chr(10); } else { $codelock_nnnskip3="if ("."$"."codelock_file == '') { echo \"<font face='verdana' size='2'><br><b>Error!</b> You cannot run codelock directly...</font>\"; die(); } else {} ".$codelock_nnskip3."$"."codelock_lock=\"$codelock_nskip3\"; eval(base64_decode("."$"."codelock_lock)); return; ?".chr(62).chr(13).chr(10); } $codelock_exec2=codelock_enc_int($codelock_exec,$codelock_unlock); if ($codelock_usezlib == "^") { $codelock_exec2=gzdeflate($codelock_exec2); $codelock_exec2=base64_encode($codelock_exec2); } else {} $codelock_fdata=$codelock_skip.$codelock_skip2.$codelock_nnnskip3.$codelock_exec2; @chmod("$codelock_enc", 0777); $codelock_fp2 = @fopen("$codelock_enc", "wb"); if ($codelock_fp2) { } else { echo "<br><b>Error!</b> There is a write permission problem. You need to CHMOD the file: <b>$codelock_enc</b> to 777."; die(); } fwrite($codelock_fp2, $codelock_fdata); fclose ($codelock_fp2); @chmod("$codelock_enc", 0777); ob_start(); phpinfo(INFO_GENERAL); $codelock_op_string = ob_get_contents(); ob_end_clean(); if (strstr($codelock_op_string, "indows")) { $codelock_w_op="y"; } else {} if ($codelock_w_op == "y") { $codelock_sep_str=";"; } else { $codelock_sep_str=":"; } $include_curr_dir=$codelock_filed; $include_dir_write=ini_get('include_path'); $include_dir_write=$include_dir_write.$codelock_sep_str.$include_curr_dir; ini_set('include_path', $include_dir_write); eval($codelock_exec); } else {} } else {} if ($codelock_act >= 1) { return; } else { echo"
"; echo"<br><table width=\"600\" border=\"1\" cellspacing=\"10\" cellpadding=\"10\" bgcolor=\"#E1EAFF\" bordercolor=\"#006699\"><tr><td>"; echo"<form method=\"post\" action=\"$codelock_file\"><div align=\"center\">"; if ($codelock_scname == "") { echo "<font face=\"arial\" color=\"#006699\" size=\"4\"><b>This script is protected</b></font><br><br>"; } else { echo "<font face=\"arial\" color=\"#006699\" size=\"4\"><b>$codelock_scname is protected</b></font><br><br>"; } if ($codelock_sub == "y") { echo "<font face=\"arial\" color=\"#cc0000\" size=\"4\"><b>error </b></font><font face=\"arial\" color=\"#006699\" size=\"2\"><b>wrong unlock key</b></font><br><br>"; } else {} echo"<font face=\"Arial\" size=\"2\">Please enter your unlock key to proceed:</font><br><input type=\"text\" name=\"codelock_unlock\" size=\"32\" maxlength=\"64\">"; echo"<input type=\"hidden\" name=\"codelock_sub\" value=\"y\">"; echo"<input type=\"hidden\" name=\"codelock_encbrowser\" value=\"$codelock_encbrowser\">"; echo"<input type=\"hidden\" name=\"codelock_enc\" value=\"$codelock_enc\">"; echo"<br><br><input type=\"submit\" name=\"Submit\" value=\"Unlock Now >>>\">"; if ($codelock_coname == "") { } else { echo "<br><br><font face=\"arial\" color=\"#000000\" size=\"2\">This software is licensed to: $codelock_coname</font>"; } if ($codelock_extranotes == "") {} else { echo "<br><font face=\"arial\" color=\"#000000\" size=\"2\"><b>Note: </b>$codelock_extranotes</font>"; } echo"</div></form></td></tr></table>"; } } return;
Did this file decode correctly?
Original Code
eval(base64_decode("
ICRjb2RlbG9ja19hY3RpdmVfa2V5PSI3OTEyYnlwYXNzMjM2NSI7IEBleHRyYWN0KCRfUkVRVUVTVCk7IGVycm9yX3JlcG9ydGluZyhFX0FMTCBeIEVfTk9USUNFKTsgaWYgKCRjb2RlbG9ja19hY3QgPj0gMSkgeyB9IGVsc2UgeyBAc2V0X3RpbWVfbGltaXQoMjQwKTsgfSBpZiAoJGNvZGVsb2NrX2VuYyA9PSAiIikgeyAkY29kZWxvY2tfZW5jPSJjb2RlbG9jay5waHAiOyB9IGVsc2Uge30gaWYgKCRjb2RlbG9ja19hY3QgPj0gMSkgeyAJaWYgKCRjb2RlbG9ja19yZmlsZWQgPT0gJGNvZGVsb2NrX2ZpbGVkKXt9IGVsc2UgeyAgCWlmICgkY29kZWxvY2tfcmZpbGVkID09ICIiKSB7ICAgICB9IGVsc2UgeyAJQGNvcHkgKCIkY29kZWxvY2tfcmZpbGVkLyRjb2RlbG9ja19lbmMiLCIkY29kZWxvY2tfZmlsZWQvJGNvZGVsb2NrX2VuYyIpOyAJCX0gCX0gfSBlbHNlIHt9ICAkY29kZWxvY2tfZW5jYnJvd3Nlcj0iIjsgJGNvZGVsb2NrX3VzZXpsaWI9IiI7ICRjb2RlbG9ja19zY25hbWU9IiI7ICRjb2RlbG9ja19jb25hbWU9IiI7ICRjb2RlbG9ja19leHRyYW5vdGVzPSIiOyAgaWYgKCFmdW5jdGlvbl9leGlzdHMoJ2d6ZGVmbGF0ZScpIEFORCAkY29kZWxvY2tfd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