Decoded Output
Download<?php
use App\Models\Setting;
use App\Models\Patient;
use App\Models\Group;
use App\Models\Doctor;
use App\Mail\PatientCodeMail;
use App\Mail\TestsNotification;
use App\Mail\ReceiptMail;
use App\Mail\ReportMail;
use App\Mail\ResetPasswordMail;
goto fCBgr;
KPbPW:
if (!function_exists("patient_code")) {
function patient_code($patient_id)
{
goto ygugh;
rqQWT:
patient_code($patient_id);
goto T9BD7;
ygugh:
$code = mt_rand(1000, 9999) . $patient_id;
goto cBQh6;
cBQh6:
$exist = Patient::where("code", $code)->count();
goto t_1TS;
vB_y3:
Patient::where("id", $patient_id)->update(["code" => $code]);
goto nyH03;
T9BD7:
iIYXC:
goto vB_y3;
t_1TS:
if (!$exist) {
goto iIYXC;
}
goto rqQWT;
nyH03:
}
} ?>
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
None
Variables
None
Stats
| MD5 | 7b7514a4d7a23294 |
|---|---|
| Eval Count | 0 |
| Decode Time | 41 ms |
Original Code
<?php
use App\Models\Setting;
use App\Models\Patient;
use App\Models\Group;
use App\Models\Doctor;
use App\Mail\PatientCodeMail;
use App\Mail\TestsNotification;
use App\Mail\ReceiptMail;
use App\Mail\ReportMail;
use App\Mail\ResetPasswordMail;
goto fCBgr;
KPbPW:
if (!function_exists("\160\141\164\x69\x65\x6e\x74\x5f\x63\157\x64\x65")) {
function patient_code($patient_id)
{
goto ygugh;
rqQWT:
patient_code($patient_id);
goto T9BD7;
ygugh:
$code = mt_rand(1000, 9999) . $patient_id;
goto cBQh6;
cBQh6:
$exist = Patient::where("\143\x6f\144\145", $code)->count();
goto t_1TS;
vB_y3:
Patient::where("\151\x64", $patient_id)->update(["\143\157\x64\x65" => $code]);
goto nyH03;
T9BD7:
iIYXC:
goto vB_y3;
t_1TS:
if (!$exist) {
goto iIYXC;
}
goto rqQWT;
nyH03:
}
}