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 $Debug=false;$DemoVersion=true;$Customer=base64_decode('Y3Jpc3Rob2Zlcm11bm96');$Encr..

Decoded Output download

<?php $Debug=false;$DemoVersion=true;$Customer=base64_decode('Y3Jpc3Rob2Zlcm11bm96');$EncryptionKeyStr=base64_decode('RkdSNDU1Z1NTRFNEMTJl');$TimeZoneEnc=base64_decode('QW1lcmljYS9OZXdfWW9yaw==');if($DemoVersion){$ch=curl_init();try{curl_setopt($ch,CURLOPT_USERAGENT,base64_decode('TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzkxLjAuNDQ3Mi4xMjQgU2FmYXJpLzUzNy4zNg=='));curl_setopt($ch,CURLOPT_URL,base64_decode('aHR0cHM6Ly93d3cuY29lbnNpby5jb20vbGljZWEv').$Customer.base64_decode('L0NvbmZpZy5waHA='));curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);$response=curl_exec($ch);if($response===false){throw new Exception(base64_decode('Y1VSTCBFcnJvcjog').curl_error($ch));}$httpCode=curl_getinfo($ch,CURLINFO_HTTP_CODE);if($httpCode!==200){throw new Exception(base64_decode('RmFpbGVkIHRvIHJldHJpZXZlIGNvbmZpZ3VyYXRpb24gZGF0YS4gSFRUUCBjb2RlOiA=').$httpCode);}}catch(Exception $e){echo base64_decode('QW4gZXJyb3Igb2NjdXJyZWQ6IA==').$e->getMessage();}finally{curl_close($ch);}}else{$response=include base64_decode('Q29uZmlnLnBocA==');}$currentDate=new DateTime(base64_decode('bm93'),new DateTimeZone($TimeZoneEnc));$currentDateFormatted=$currentDate->format(base64_decode('WS1tLWQ='));$encryptionKey=md5($currentDateFormatted.$EncryptionKeyStr);$decryptedData=openssl_decrypt($response,base64_decode('QUVTLTI1Ni1DQkM='),$encryptionKey,0,str_pad($currentDateFormatted,16,base64_decode('AA==')));if($decryptedData===false){echo base64_decode('RGVjcnlwdGlvbiBmYWlsZWQ6IA==').openssl_error_string();return;}$config=json_decode($decryptedData,true);if($config===null){echo base64_decode('SlNPTiBkZWNvZGluZyBmYWlsZWQ=');return;}if($Debug==true){echo base64_decode('RGVjcnlwdGlvbiBhbmQgZGVjb2Rpbmcgc3VjY2Vzc2Z1bDog');print_r($config);}$configEnabled=$config[base64_decode('Z2xvYmFs')][base64_decode('Y29uZmlnRW5hYmxlZA==')];if(!$configEnabled)return;$baseurl=$config[base64_decode('Z2xvYmFs')][base64_decode('YmFzZVVybA==')];$host=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJIb3N0')];$login=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJVc2VybmFtZQ==')];$pass=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJQYXNzd29yZA==')];$db=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJOYW1l')];$dbtable=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJUYWJsZQ==')];if($Debug==true){echo base64_decode('YmFzZXVybDog'),$baseurl.base64_decode('PGJyPg==');echo base64_decode('aG9zdDog'),$host.base64_decode('PGJyPg==');echo base64_decode('bG9naW46IA=='),$login.base64_decode('PGJyPg==');echo base64_decode('cGFzczog'),$pass.base64_decode('PGJyPg==');echo base64_decode('ZGI6IA=='),$db.base64_decode('PGJyPg==');echo base64_decode('ZGJ0YWJsZTog'),$dbtable.base64_decode('PGJyPg==');}$configEnabled=$config[base64_decode('Z2xvYmFs')][base64_decode('Y29uZmlnRW5hYmxlZA==')];if(!$configEnabled)return;$baseurl=$config[base64_decode('Z2xvYmFs')][base64_decode('YmFzZVVybA==')];$host=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJIb3N0')];$login=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJVc2VybmFtZQ==')];$pass=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJQYXNzd29yZA==')];$db=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJOYW1l')];$dbtable=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJUYWJsZQ==')];if($Debug==true){echo base64_decode('YmFzZXVybDog'),$baseurl.base64_decode('PGJyPg==');echo base64_decode('aG9zdDog'),$host.base64_decode('PGJyPg==');echo base64_decode('bG9naW46IA=='),$login.base64_decode('PGJyPg==');echo base64_decode('cGFzczog'),$pass.base64_decode('PGJyPg==');echo base64_decode('ZGI6IA=='),$db.base64_decode('PGJyPg==');echo base64_decode('ZGJ0YWJsZTog'),$dbtable.base64_decode('PGJyPg==');}$mysqli=new mysqli($host,$login,$pass,$db);if($mysqli->connect_error){die(base64_decode('Q29ubmVjdGlvbiBmYWlsZWQ6IA==').$mysqli->connect_error);}function validateLogin($email,$password,$mysqli,$dbtable){$email=$mysqli->real_escape_string($email);$password=$mysqli->real_escape_string($password);$query="SELECT Password FROM $dbtable WHERE EmailAddress = '$email'";$result=$mysqli->query($query);if($result->num_rows==1){$row=$result->fetch_assoc();if($password===$row[base64_decode('UGFzc3dvcmQ=')]){return true;}}return false;}$ShowContent=false;$UpdateAccountNumber=false;if($_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')]==base64_decode('UE9TVA==')){if(strpos($_POST[base64_decode('Zm9ybV9zdWJtaXQ=')],base64_decode('YWNjb3VudF9mb3Jt'))!==false){if(isset($_POST[base64_decode('ZW1haWw=')])&&isset($_POST[base64_decode('ZWFuYW1l')])){$account_index_arr=explode(base64_decode('LQ=='),$_POST[base64_decode('Zm9ybV9zdWJtaXQ=')]);$account_index=$account_index_arr[1];$email=$_POST[base64_decode('ZW1haWw=')];$eaname=$_POST[base64_decode('ZWFuYW1l')];$change_number=$_POST[base64_decode('YWNjb3VudF9udW1iZXJfdG9fY2hhbmdl')];$ShowContent=true;$UpdateAccountNumber=true;echo base64_decode('PGNlbnRlcj48c3BhbiBzdHlsZT0nY29sb3I6Ymx1ZTsnPlVwZGF0aW5nIGFjY291bnQg').$account_index.base64_decode('IHRvOiA=').$change_number.base64_decode('IGZvciA=').$eaname.base64_decode('PC9zcGFuPjwvY2VudGVyPg==');}}if($_POST[base64_decode('Zm9ybV9zdWJtaXQ=')]===base64_decode('bG9naW5fZm9ybQ==')){if(isset($_POST[base64_decode('ZW1haWw=')])&&isset($_POST[base64_decode('cGFzc3dvcmQ=')])&&isset($_POST[base64_decode('ZWFuYW1l')])){$email=$_POST[base64_decode('ZW1haWw=')];$password=$_POST[base64_decode('cGFzc3dvcmQ=')];$eaname=$_POST[base64_decode('ZWFuYW1l')];if(validateLogin($email,$password,$mysqli,$dbtable)){$ShowContent=true;}else{echo base64_decode('PGNlbnRlcj48c3BhbiBzdHlsZT0nY29sb3I6cmVkOyc+SW52YWxpZCBlbWFpbCBvciBwYXNzd29yZC4gUGxlYXNlIHRyeSBhZ2Fpbi48L3NwYW4+PC9jZW50ZXI+');}}}}?>

Did this file decode correctly?

Original Code

<?php $Debug=false;$DemoVersion=true;$Customer=base64_decode('Y3Jpc3Rob2Zlcm11bm96');$EncryptionKeyStr=base64_decode('RkdSNDU1Z1NTRFNEMTJl');$TimeZoneEnc=base64_decode('QW1lcmljYS9OZXdfWW9yaw==');if($DemoVersion){$ch=curl_init();try{curl_setopt($ch,CURLOPT_USERAGENT,base64_decode('TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzkxLjAuNDQ3Mi4xMjQgU2FmYXJpLzUzNy4zNg=='));curl_setopt($ch,CURLOPT_URL,base64_decode('aHR0cHM6Ly93d3cuY29lbnNpby5jb20vbGljZWEv').$Customer.base64_decode('L0NvbmZpZy5waHA='));curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,0);curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);$response=curl_exec($ch);if($response===false){throw new Exception(base64_decode('Y1VSTCBFcnJvcjog').curl_error($ch));}$httpCode=curl_getinfo($ch,CURLINFO_HTTP_CODE);if($httpCode!==200){throw new Exception(base64_decode('RmFpbGVkIHRvIHJldHJpZXZlIGNvbmZpZ3VyYXRpb24gZGF0YS4gSFRUUCBjb2RlOiA=').$httpCode);}}catch(Exception $e){echo base64_decode('QW4gZXJyb3Igb2NjdXJyZWQ6IA==').$e->getMessage();}finally{curl_close($ch);}}else{$response=include base64_decode('Q29uZmlnLnBocA==');}$currentDate=new DateTime(base64_decode('bm93'),new DateTimeZone($TimeZoneEnc));$currentDateFormatted=$currentDate->format(base64_decode('WS1tLWQ='));$encryptionKey=md5($currentDateFormatted.$EncryptionKeyStr);$decryptedData=openssl_decrypt($response,base64_decode('QUVTLTI1Ni1DQkM='),$encryptionKey,0,str_pad($currentDateFormatted,16,base64_decode('AA==')));if($decryptedData===false){echo base64_decode('RGVjcnlwdGlvbiBmYWlsZWQ6IA==').openssl_error_string();return;}$config=json_decode($decryptedData,true);if($config===null){echo base64_decode('SlNPTiBkZWNvZGluZyBmYWlsZWQ=');return;}if($Debug==true){echo base64_decode('RGVjcnlwdGlvbiBhbmQgZGVjb2Rpbmcgc3VjY2Vzc2Z1bDog');print_r($config);}$configEnabled=$config[base64_decode('Z2xvYmFs')][base64_decode('Y29uZmlnRW5hYmxlZA==')];if(!$configEnabled)return;$baseurl=$config[base64_decode('Z2xvYmFs')][base64_decode('YmFzZVVybA==')];$host=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJIb3N0')];$login=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJVc2VybmFtZQ==')];$pass=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJQYXNzd29yZA==')];$db=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJOYW1l')];$dbtable=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJUYWJsZQ==')];if($Debug==true){echo base64_decode('YmFzZXVybDog'),$baseurl.base64_decode('PGJyPg==');echo base64_decode('aG9zdDog'),$host.base64_decode('PGJyPg==');echo base64_decode('bG9naW46IA=='),$login.base64_decode('PGJyPg==');echo base64_decode('cGFzczog'),$pass.base64_decode('PGJyPg==');echo base64_decode('ZGI6IA=='),$db.base64_decode('PGJyPg==');echo base64_decode('ZGJ0YWJsZTog'),$dbtable.base64_decode('PGJyPg==');}$configEnabled=$config[base64_decode('Z2xvYmFs')][base64_decode('Y29uZmlnRW5hYmxlZA==')];if(!$configEnabled)return;$baseurl=$config[base64_decode('Z2xvYmFs')][base64_decode('YmFzZVVybA==')];$host=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJIb3N0')];$login=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJVc2VybmFtZQ==')];$pass=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJQYXNzd29yZA==')];$db=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJOYW1l')];$dbtable=$config[base64_decode('ZGF0YWJhc2U=')][base64_decode('ZGJUYWJsZQ==')];if($Debug==true){echo base64_decode('YmFzZXVybDog'),$baseurl.base64_decode('PGJyPg==');echo base64_decode('aG9zdDog'),$host.base64_decode('PGJyPg==');echo base64_decode('bG9naW46IA=='),$login.base64_decode('PGJyPg==');echo base64_decode('cGFzczog'),$pass.base64_decode('PGJyPg==');echo base64_decode('ZGI6IA=='),$db.base64_decode('PGJyPg==');echo base64_decode('ZGJ0YWJsZTog'),$dbtable.base64_decode('PGJyPg==');}$mysqli=new mysqli($host,$login,$pass,$db);if($mysqli->connect_error){die(base64_decode('Q29ubmVjdGlvbiBmYWlsZWQ6IA==').$mysqli->connect_error);}function validateLogin($email,$password,$mysqli,$dbtable){$email=$mysqli->real_escape_string($email);$password=$mysqli->real_escape_string($password);$query="SELECT Password FROM $dbtable WHERE EmailAddress = '$email'";$result=$mysqli->query($query);if($result->num_rows==1){$row=$result->fetch_assoc();if($password===$row[base64_decode('UGFzc3dvcmQ=')]){return true;}}return false;}$ShowContent=false;$UpdateAccountNumber=false;if($_SERVER[base64_decode('UkVRVUVTVF9NRVRIT0Q=')]==base64_decode('UE9TVA==')){if(strpos($_POST[base64_decode('Zm9ybV9zdWJtaXQ=')],base64_decode('YWNjb3VudF9mb3Jt'))!==false){if(isset($_POST[base64_decode('ZW1haWw=')])&&isset($_POST[base64_decode('ZWFuYW1l')])){$account_index_arr=explode(base64_decode('LQ=='),$_POST[base64_decode('Zm9ybV9zdWJtaXQ=')]);$account_index=$account_index_arr[1];$email=$_POST[base64_decode('ZW1haWw=')];$eaname=$_POST[base64_decode('ZWFuYW1l')];$change_number=$_POST[base64_decode('YWNjb3VudF9udW1iZXJfdG9fY2hhbmdl')];$ShowContent=true;$UpdateAccountNumber=true;echo base64_decode('PGNlbnRlcj48c3BhbiBzdHlsZT0nY29sb3I6Ymx1ZTsnPlVwZGF0aW5nIGFjY291bnQg').$account_index.base64_decode('IHRvOiA=').$change_number.base64_decode('IGZvciA=').$eaname.base64_decode('PC9zcGFuPjwvY2VudGVyPg==');}}if($_POST[base64_decode('Zm9ybV9zdWJtaXQ=')]===base64_decode('bG9naW5fZm9ybQ==')){if(isset($_POST[base64_decode('ZW1haWw=')])&&isset($_POST[base64_decode('cGFzc3dvcmQ=')])&&isset($_POST[base64_decode('ZWFuYW1l')])){$email=$_POST[base64_decode('ZW1haWw=')];$password=$_POST[base64_decode('cGFzc3dvcmQ=')];$eaname=$_POST[base64_decode('ZWFuYW1l')];if(validateLogin($email,$password,$mysqli,$dbtable)){$ShowContent=true;}else{echo base64_decode('PGNlbnRlcj48c3BhbiBzdHlsZT0nY29sb3I6cmVkOyc+SW52YWxpZCBlbWFpbCBvciBwYXNzd29yZC4gUGxlYXNlIHRyeSBhZ2Fpbi48L3NwYW4+PC9jZW50ZXI+');}}}}?>

Function Calls

None

Variables

None

Stats

MD5 8a688a609e230cfb5bea76f494f07930
Eval Count 0
Decode Time 68 ms