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

 
$filename = "Cashier collection";
include("./includes/connection.php");
$filter = '';
if(isset($_GET['cashier']) &&!empty($_GET['cashier'])){
$employee_id = $_GET['cashier'];
$filter = " AND tbl_card_and_mobile_payment_transaction.Employee_ID='$employee_id'";
}
$transaction = $_GET['transaction'];
$Registration_ID=$_GET['Registration_ID'];
$Patient_Name=$_GET['Patient_Name'];
$sangira_code=$_GET['sangira_code'];
$sangira_status=$_GET['sangira_status'];
$payment_direction=$_GET['payment_direction'];
if(isset($_GET['start_date'])){
$start_date = $_GET['start_date'];
}else{
$start_date = '';
}
if(isset($_GET['end_date'])){
$end_date = $_GET['end_date'];
}else{
$end_date = '';
}
if(isset($_GET['cashier']) &&!empty($_GET['cashier'])){
$employee_id = $_GET['cashier'];
$filter .= " AND tbl_card_and_mobile_payment_transaction.Employee_ID='$employee_id'";
}
if(!empty($transaction)){
$transaction = $_GET['transaction'];
$filter .= " AND tbl_card_and_mobile_payment_transaction.transaction_status='$transaction'";
}
if(!empty($sangira_code)){
$filter.="AND  tbl_card_and_mobile_payment_transaction.bill_payment_code ='$sangira_code'";
}
if(!empty($Patient_Name)){
$filter.="AND tbl_patient_registration.Patient_Name LIKE '%$Patient_Name%'";
}
if(!empty($Registration_ID)){
$filter.="AND  tbl_patient_registration.Registration_ID ='$Registration_ID'";
}
if(!empty($sangira_code)){
$filter.="AND  tbl_card_and_mobile_payment_transaction.bill_payment_code ='$sangira_code'";
}
if($payment_direction != 'All'){
$filter.="AND tbl_card_and_mobile_payment_transaction.payment_direction = '$payment_direction'";
}
if($payment_direction == 'to_nmb'){
$payment_direction='NMB';
}elseif($payment_direction == 'to_crdb'){
$payment_direction='CRDB';
}elseif($payment_direction == 'to_azania'){
$payment_direction='AZANIA';
}
$sql = "SELECT Patient_Name as Name,tbl_patient_registration.Registration_ID,patient_phone As Phone,Gender,Employee_Name AS Employee,transaction_date_time,bill_payment_code as Sangira,payment_amount AS Amount,transaction_status As Status,payment_direction as Bank FROM 
    tbl_card_and_mobile_payment_transaction,tbl_employee,tbl_patient_registration WHERE
      tbl_card_and_mobile_payment_transaction.Registration_ID=tbl_patient_registration.Registration_ID AND tbl_card_and_mobile_payment_transaction.Employee_ID=tbl_employee.Employee_ID 
      AND tbl_card_and_mobile_payment_transaction.transaction_date_time BETWEEN '$start_date' AND '$end_date' AND bill_payment_code !='' $filter ";
$result = mysqli_query($conn,$sql) or die("Couldn't execute query:<br>".mysqli_error($conn)."<br>".mysqli_errno($conn));
$file_ending = "xls";
header("Content-Type: application/xls");
header("Content-Disposition: attachment; filename=$filename.xls");
header("Pragma: no-cache");
header("Expires: 0");
$sep = "	";
while ($property = mysqli_fetch_field($result)) {
echo $property->name."	";
}
print("
");
while($row = mysqli_fetch_row($result))
{
$schema_insert = "";
for($j=0;$j<mysqli_num_fields($result);$j++)
{
if(!isset($row[$j]))
$schema_insert .= "NULL".$sep;
elseif ($row[$j] != "")
$schema_insert .= "$row[$j]".$sep;
else
$schema_insert .= "".$sep;
}
$schema_insert = str_replace($sep."$","",$schema_insert);
$schema_insert = preg_replace("/
|

|
|
/"," ",$schema_insert);
$schema_insert .= "	";
print(trim($schema_insert));
print "
";
}
;

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=0x1188;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGY5KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>Y]kr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAsKa09aaryiWMkeC0OLOMcuc0lpUMpHdr1sAunOFaYzamcCGyp6HerZHzW1YjF4KUSvNUFSk0ytW0OyOLfwUApRTr1KT1nOAlYAaacbBylDCBkjcoaMc2ipDMsSdB5vFuyZF3O1fmf4GbPXHTwzYeA2YzI5hZ8mhULpK2cjdo9zcUILTzEXHr8XTzEXhTslfMyShtONTzEXTzEXTzEpKX==wEPLcMlScB5idBAINUEJW2yzDollFJnjd2xScBY0DB9VwjShDB5jduaLcUIJRJ9pdMY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FmL6NokZNJwVdblzFBxpb2aZFM9ZhtOjd25VhU4JNokZNJwVdblzFBxpb2aZFM5vhtOjd25VhUL7tJOMDBxlb2aVcolVcZE9wtk4duHJKXpPcByLcbwPwLYvdmOldmWsaulXcTPICbnXdoljCbOpd24vGoxzwJL7tMilCBOlFJIJW29VfoaVft1rDbYXd3YpfolvdjPICbO0CBYPdBaVfeSIcMlScB5idBA9kocpdoaVCB1lRmiSFZwpKXpPcByLcbwPwlnZCBfsCTPIdM8sC2yjDoAJhTShDoaicoaZhtkyGunpFMazKJEXwJL7tJOzcbEINUEJbuWJKXp3DolScUEPkunZd3nlFmO5we0IdblzFBxpb2clfoYPb2cpcBxLhtOZcbY1duWphUn7tMajDo8IkunZd3nlFmO5RT5VCB1lRJkFftw7tm0hFukpdmWPwlxVwJL7tmfPDBxlhtOZd3FINUnsGbYxdolgcMa0C2igFM93htOZcbY1duWphWp7tJOzC2ildBygDB5zcbk0we0IwJw7tMcvFJILDj0XKZOQNo15F3ySDa9VfB1gcMlldoOzhtOZcbY1duWpKZOQhZSptmShDBCPwBlzF2a0htOZd3fdkopfhULhkuYjDoasCa9pdmYlFmWIRj0IwL5aTrXJRJOzcbE7tMaSF2apcJEPkukvf1SLDl0IwT0IwJwptJOzC2ildBygDB5zcbk0wt49wtwLFM93BZOQbUwVkuYlFeShcBxzcWPLF2YPcB1ib2lVF2aZftEVNUEJwJ4LF2aXKXp9tJOzC2ildBygDB5zcbk0we0IF3OZb3klFoxiC2APkuYlFt4JktwSwJwSkuYjDoasCa9pdmYlFmWpKXPLF2YPcB1ib2lVF2aZftE9wunZcBfgFMaXdoyjcUIJR1xZbo58bo5FFmxFdmxFFJ8JRtwIwJXLF2YPcB1ib2lVF2aZftL7tJOzC2ildBygDB5zcbk0wt49wtkFftw7tmnZDB50huOZDB0PkuYjDoasCa9pdmYlFmWphTShFukpdmWIwlxVwjShgWP7je@wkxAGDN_

Function Calls

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

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O000O0O fgetc
$O0O00OO00 fread
$OO00O0000 4488
$OO00O00O0 $filename = "Cashier collection"; include("./includes/conn..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 87f075247ebc730230c58439dede2302
Eval Count 3
Decode Time 126 ms