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


function encrypt( $data,$password ) {
$encryption_key = base64_decode( $password );
$iv = openssl_random_pseudo_bytes( openssl_cipher_iv_length( 'aes-256-cbc') );
$encrypted = openssl_encrypt( $data,'aes-256-cbc',$encryption_key,0,$iv );
return base64_encode( $encrypted .'::'.$iv );
}
function decrypt( $data,$password ) {
$encryption_key = base64_decode( $password );
list( $encrypted_data,$iv ) = array_pad( explode( '::',base64_decode( $data ),2 ),2,null );
return openssl_decrypt( $encrypted_data,'aes-256-cbc',$encryption_key,0,$iv );
}
function getDeviceLabel() {
$serial = shell_exec('wmic bios get serialnumber 2>&1');
$serial = str_replace( 'SerialNumber ','',$serial );
return trim( $serial );
}$O000O0O00=$OOO000O00($OOO0O0O00,'rb');$O0O00OO00($O000O0O00,0x504);$OO00O00O0=$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,0x17c),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));eval($OO00O00O0);$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,$OO00O0000),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));fclose($O000O0O00);eval($OO00O00O0);
$enc_key		= 'm)^fa1F1&v^727i|HAXJZ16O6snroMtS';
function encrypt( $data,$password ) {
$encryption_key = base64_decode( $password );
$iv = openssl_random_pseudo_bytes( openssl_cipher_iv_length( 'aes-256-cbc') );
$encrypted = openssl_encrypt( $data,'aes-256-cbc',$encryption_key,0,$iv );
return base64_encode( $encrypted .'::'.$iv );
}
function decrypt( $data,$password ) {
$encryption_key = base64_decode( $password );
list( $encrypted_data,$iv ) = array_pad( explode( '::',base64_decode( $data ),2 ),2,null );
return openssl_decrypt( $encrypted_data,'aes-256-cbc',$encryption_key,0,$iv );
}
function getDeviceLabel() {
$serial = shell_exec('wmic bios get serialnumber 2>&1');
$serial = str_replace( 'SerialNumber ','',$serial );
return trim( $serial );
}
;

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');$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=0x3f4;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTA0KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MD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LwtL7tMxpF3WPwtOldMYZGbn0cBOgcoy0CUXLDbCIhUE9woyZFMy5b3nictIIcbiXdo9LcUIIkzP6kZxJCbYlYjOgcoajd2OlhtELcoy0CUEpRewIhUXZRo51doXIhTShFMa0fbkVwo9XcB5zF2xgcoajFmlXftIIkoaVC3k5FuOlcy9LCbOiRtficbHsHjA2RBYJCZFSkoaVC3k5FuOpd25gD2a5ReESkol2wtL7tm0hcmaVC3Opd24Ic2a0Ooa2DBYlToyJcBXPhUn7tJOzcbkpCBXINUnzDoaSdy9lGoajhtf3dBljwokpd3HIc2a0wuYlFMlido51dBklFJEZNJCxkZL7tJOzcbkpCBXINUnzfukgFMaXdoyjcUIIk1YlFMlidr51dBklFJEmRtFmRtOzcbkpCBXIhTShFMa0fbkVwuOZDB0PwtOzcbkpCBXIhTShgWP7\NfCoWIaiOaMQ^]\V

Function Calls

fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$enc_key m)^fa1F1&v^727i|HAXJZ16O6snro\3MtS
$O000O0O00 True
$O0O000O00 fgets
$O0O000O0O fgetc
$O0O00OO00 fread
$OO00O0000 1012
$OO00O00O0 $enc_key = 'm)^fa1F1&v^727i|HAXJZ16O6snro\3MtS'; function ..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 5239e70f7c1d4537519f4afa78f9bec7
Eval Count 3
Decode Time 86 ms