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 /* LTaxSmartGroup Encrypted by Source Guardian */$OOO000000=urldecode('%66%67%36%73%..

Decoded Output download

<?php ?><?php
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
define('EOL', (PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Asia/Bangkok');
$app = 'SmartPDS';
$ver = '0.3';
$rev = '30';
session_start();
$site_name = "$app v$ver r$rev";
$targetDir = realpath('dol/') . "\";
$hostname="127.0.0.1:
    3307";
$user_name="root";
$pass_word="[email protected]";
$dbname="system";
@mysql_connect($hostname,$user_name,$pass_word)or die("");
@mysql_select_db($dbname)or die("");
@mysql_query("setnames'UTF8'");
$query="selectlt_val as current_yearfromlt_configwherelt_desc = 'current_year'";
$rs = mysql_query($query) or die(mysql_error());
if($r = mysql_fetch_array($rs)){
	$current_year = $tax_year = $r['current_year'];
} else {
	$current_year = $tax_year = date("Y") + 543;
}
$sql="SELECT * FROMmuni_detail;
    ";
$rs = mysql_query($sql) or die(mysql_error());
$ja = mysql_fetch_array($rs);
$js = json_encode($ja);
extract($ja);
$j = base64_encode($js);
// echo "$js";
// echo "$j";

$m_tambon_id = $tambon_id;
$m_amphoe_id = $amphoe_id;
$m_province_id = $province_id;

$sql = "SELECT * fromlt_configwhereannual = '$current_year'";
$rs = mysql_query($sql) or die(mysql_error());
$lt_config = array();
while($r = mysql_fetch_array($rs)){
	$lt_config[$r['lt_desc']] = $r['lt_val'];
}
require("function_new_v3 . php");
//
//stamp.txt
if(!file_exists('stamp.txt')){
	copy('stamp_template.txt','stamp.txt');
}
if(!file_exists('images/boss_sign.png')){
	copy('images/boss_sign_template.png','images/boss_sign.png');
}



?>

Did this file decode correctly?

Original Code

<?php /* LTaxSmartGroup Encrypted by Source Guardian */$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=0xee0;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGI2KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCcvcE8yMUxrMDk1OCtBVmNaM21NS0VlNnNTRjduZHdUeGxSckJmQ1V1RE5RaEhhV1BHcTRiaVhKeWpJdll0Z296PScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>T_TdY~uOrbtLOSPmH51gZA2pZA2pZA2Xbw05xdUeGnkLBFMlusXgkMEqLsXtu+O9u9rjfKigZA1tGKb/G+r9u9rGfKigZA2/GA1tG8OmZKitGA2/GA1tD51tGKb/GKitGAOlfKb/GA1tGKb/G+OmZKb/GKb/GA2/N+OdPd1t4AEqhA2fXcOapeUV7AJXVMieCVuVKmBwWF0wETkqMdf5U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NankIsTe5IeyCfdJmkc6a761IQMB1qF1C1Akw8M1NrMB5jALlb6URr3JmfKydGMJFmA1aBneFjFLwHTeNKFJC7nCFX6KVMdk94V6FrneSb62VFTfqW3UgB3iCGKydGMiqI+JwXMCRuwEa3Fye+FUwXM6NuwEa4Fye+AJwXMu5uwEaUFyeF7UwXK1quwEa9FyeA6kwX6emuwEDPFye+6kwX6sNuweC1Fye8ekwXKLmuwEa9Fye+AJwXMiquwEqWFyeF7UwXMyFuwEa3FyeAFUwXMbVuweCEFye+MkwX66wc3JfjwUAbEURr61LXF1RDA1mmd0p776wD6UXHdXN6c6qCmJqvF1RVniDbKBpFebLyKkIMVkm2Syp+60Vc3JwH7U9b3Be+3JmvF1wkwkVkcKp7ebLySfwkALNKVKpCMLLWK1VfTUm0mumB3bEGFERmnfaEdiI2nBpc3JXHnEa2mUXReyRH6256VkLSKBpBT6wWSedq7LD4euNAAfNJSbVcFUA4nkIr7KeySUXBnfaKn2w1E6g86K9IwJeKFJIRebLD6B56TfG4MuFBAiIUSb5HnU5HcKp7ebLySfwkALNKVswrn6VWK1Vfdk5smUI761XJ66iITUAqcsNReJmXKkIOweNISypZwbp+FC1GMimmniI2Fbp+E0DiZM9N8KHYSO

Function Calls

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

Variables

$OOO00000O strtr
$O000O0O00 True
$OOO0000O0 base64_decode
$O0O000O0O fgetc
$OOO000O00 fopen
$OO00O00O0 @eval("?>".base64_decode("PD9waHAgDQppbmlfc2V0KCdkaXNwbGF5X..
$OOO0O0O00 index.php
$OO00O0000 3808
$O0O000O00 fgets
$O0O00OO00 fread
$OOO000000 fg6sbehpra4co_tnd

Stats

MD5 2e7218d6be534410da8cf2959d50892a
Eval Count 4
Decode Time 82 ms